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 > Informix > Import text file with 4gl

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-01-06, 05:01
sge sge is offline
Registered User
 
Join Date: Jun 2006
Posts: 14
Import text file with 4gl

Hi,

I have to import a text file into a table. The problem is the text file, it looks like this: The number and order of the fields (F1, F2, ...) are always different.

#FILE;date;
#VERSION $..$
#DEF;DATA;F1;F2;F3;F6;
01;01;01;01;
02;02;02;02;
#END;
#FILE;date;
#VERSION $..$
#DEF;DATA;F1;F4;F5;F7;F8;
11;11;11;11;11;
12;12;12;12;12;
13;13;13;13;13;
#END;
#FILE;date;
#VERSION $..$
#DEF;DATA;F1;F3;F5;F6;
31;31;31;31;
#END;

The table should look like this:
F1 F2 F3 F4 F5 F6 F7 F8
01 01 01 01
02 02 02 02
11 11 11 11 11
12 12 12 12 12
13 13 13 13 13
31 31 31 31

Is this possible with 4gl??? Does anyone have an idea???
Reply With Quote
  #2 (permalink)  
Old 06-01-06, 11:59
gurey gurey is offline
Registered User
 
Join Date: Aug 2003
Location: Argentina
Posts: 780
Hi,

I suggest that use dbload utility.

Gustavo.
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