If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Adabas > data conversion for different format layout

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-14-04, 18:25
jesslyn103 jesslyn103 is offline
Registered User
 
Join Date: Mar 2004
Posts: 2
Red face data conversion for different format layout

I need to import file from one application to another, unfortunately the file format layout are different with my database, sometime it contains more/less character in a field, sometimes it can be different character type. How do i write a program to convert this issues.
Any idea is greatly appreciated.
Reply With Quote
  #2 (permalink)  
Old 03-15-04, 23:03
rickzoll rickzoll is offline
Registered User
 
Join Date: Aug 2002
Posts: 4
Re: data conversion for different format layout

Quote:
Originally posted by jesslyn103
I need to import file from one application to another, unfortunately the file format layout are different with my database, sometime it contains more/less character in a field, sometimes it can be different character type. How do i write a program to convert this issues.
Any idea is greatly appreciated.
Your situation soulnds like you would be best to build a conversion program. Load your new empty file with an approriate size to hold all the records from the existing file then write a simple conversion program that reads from one file, transfers the data to the new record then writes the record out. Good Luck.
Reply With Quote
  #3 (permalink)  
Old 03-16-04, 08:51
jesslyn103 jesslyn103 is offline
Registered User
 
Join Date: Mar 2004
Posts: 2
data conversion

The incoming file can be thousands of different format, do you think writing an empty file for those thousands different format can be very time consuming, do you have a better way?
thanks you so much.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On