HomeForum
Welcome, Guest

Calculated fields
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Calculated fields

Calculated fields 5 years, 10 months ago #117

  • Kenneth Riviere207
I have a seven digit numeric field with 2 decimal positions I am trying to load into. Some of my input data has more than two decimal characters. When I simply mapped the incoming data to the target field this resulted in those records with extra decimal characters being rejected with nothing loaded. I tried using Round([F2],-2), but that just resulted in loading a value of zero in every row. I tried a variety of combinations like multiplying by 100 rounding to the zeroeth power of 10 (gave me nulls in about half the fields and zero in the rest), or multiplying by 1.00 hoping that would result in the truncation (unchanged data) but haven't found anything that worked. The Round formula above is straight out of the documentation. I've thought about trying some numeric to string conversions with a replace command, the results of which would be converted back to a number, but I haven't been able to find any documentation on whether regular expressions are supported in the replace function. I really don't want to have to introduce a pre-load formatting of my data files, because the flexibility of handling data was why we bought VImp. Running Vimp 7.2.0, loading into SQL Server ver. 8 (I think), on a Windows 2003 server, with pipe delimited data files.

RE: Calculated fields 5 years, 10 months ago #119

  • kriviere
  • OFFLINE
  • Junior Boarder
  • Posts: 31
  • Karma: 0
Forgot to login, sorry. I posted that "Guest" message to start this thread.

RE: Calculated fields 5 years, 10 months ago #121

  • mike8888
  • OFFLINE
  • Expert Boarder
  • Posts: 131
  • Karma: 0
Kenneth.

Please download latest version of Visual Importer Pro 7.2.3.
There used to be a bug in Round function.
It was fixed
Round([F2],-2) is a correct syntax to use.
I have tested it and it worked fine

If you have any sugestions or new requirements.
Feel free to contact us
Peter

RE: Calculated fields 5 years, 10 months ago #122

  • kriviere
  • OFFLINE
  • Junior Boarder
  • Posts: 31
  • Karma: 0
OK, so I downloaded and installed the latest version. However, it seems to have lost the multiple imports and packages I had declared. I had figured that was data for the application and wouldn't be overwritten by an upgrade. The application still remembers many things such as the parameters for my SQL Server connection and the directory for the text files I'm importing. Is there someplace that might not be obvious where I can look to find my other definitions? I don't remember changing repositories or whatever, but my menu of objects didn't have all of the various demo connections from the original installation. Can I look for alternate repositories? This is a bit frustrating.

RE: Calculated fields 5 years, 10 months ago #123

  • mike8888
  • OFFLINE
  • Expert Boarder
  • Posts: 131
  • Karma: 0
Hello.

All connections, packages, scripts ETC are stored in the repository.
Repository can be Ms Access (which is default), Oracle, MS Sql Server, MySql, FireBird(Interbase),PosgreSQL.
I guess you are using MS Acces as a repository.
Depending on your installation it can be

C:\Program Files\DB Software Laboratory\Repository\VImpRepository.mdb (for old versions)
or
C:\Program Files\DB Software Laboratory\Visual Importer Professional\Repository\VImpRepository.mdb (for new one)

During Installation Setup application asks if user wants to overwrirte repository.

I gues you may still have

C:\Program Files\DB Software Laboratory\Repository\VImpRepository.mdb

file on the hard disk.

In this case do the following.

Click file ->options
Click Repository connection options button. (thr one which neext to drop down box)
Choose different file
Click OK, OK and restart application.

Mike

RE: Calculated fields 5 years, 10 months ago #124

  • kriviere
  • OFFLINE
  • Junior Boarder
  • Posts: 31
  • Karma: 0
Thanks. Found it.
  • Page:
  • 1
Time to create page: 0.19 seconds

Testimonials

"Advanced ETL Processor is superior software... I highly recommend this to anyone who is building datawarehouse. I would and I  have recommended it to many colleagues and customers."

- Peter Jonson, Data Integration Consultant, MPI

User Login

You only need to log in or register to use our support forum



Our customers

BP

BBC

HSBC


Databases we work with

Go to top