We have a text file in this format
20020101KARL KILD 30 102 FLOOR STREET,CALAGRY US
00001 TAXDEPT 00001 34 XXXXXXXXXXXXXXXXXXXXXXXXXXX
20020111JOSEPH LIL 30 104 FLOOR STREET,NEW YORKUS
00001 TAXDEPT 00001 34 XXXXXXXXXXXXXXXXXXXXXXXXXXX
As you see here the textfile which i need to be imported is in not having a delimiter nor having fixed length.
Note: This text file contains information more than of one tables where fields are unevenly distributed among the textfile
But I know from where the fields start and end
Example :
1st and the 3rd line contains date (8 char),name (12 char),Record type(2 char),address (28 char)
2nd and 4th record contains employee number(5 char), Deptname (8 char),deptcode (6 char),Record type(2 char),
other information (25 char)
Can I write an Active Script in DTS where I can read line by line from the text file and update it to different tables
Thanks
NAREN
20020101KARL KILD 30 102 FLOOR STREET,CALAGRY US
00001 TAXDEPT 00001 34 XXXXXXXXXXXXXXXXXXXXXXXXXXX
20020111JOSEPH LIL 30 104 FLOOR STREET,NEW YORKUS
00001 TAXDEPT 00001 34 XXXXXXXXXXXXXXXXXXXXXXXXXXX
As you see here the textfile which i need to be imported is in not having a delimiter nor having fixed length.
Note: This text file contains information more than of one tables where fields are unevenly distributed among the textfile
But I know from where the fields start and end
Example :
1st and the 3rd line contains date (8 char),name (12 char),Record type(2 char),address (28 char)
2nd and 4th record contains employee number(5 char), Deptname (8 char),deptcode (6 char),Record type(2 char),
other information (25 char)
Can I write an Active Script in DTS where I can read line by line from the text file and update it to different tables
Thanks
NAREN