View previous topic :: View next topic |
Author |
Message |
sub Beginner
Joined: 30 Jan 2007 Posts: 20 Topics: 12
|
Posted: Thu May 24, 2007 1:24 pm Post subject: Append data from file1 to file2 |
|
|
Hi,
I have 2 files. File1 has only 1 row which has the record header whose record length is 500. File1 is sequential file. File2 has 10000 of records whose record length is 20000. File2 is ESDS with variable length. First 500 characters of File2 is always spaces. I want to merge File1 and File2 such that all the records in File2 has first 500 characters of File1.
For example
File1 (say File1 record length is 16) - has only 1 record
1234545646547654
File2
...........................AAAAAAAAAAA
...........................BBBBBBBBBBBBBBB
...........................CCCCCCCCCCC
...........................DDDDDDDDDDDDDD
Output file: File3 with variable length
1234545646547654AAAAAAAAAAA
1234545646547654BBBBBBBBBBBBBBB
1234545646547654CCCCCCCCCCC
1234545646547654DDDDDDDDDDDDDD
Can someone please help.
Thanks
Sub |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
sub Beginner
Joined: 30 Jan 2007 Posts: 20 Topics: 12
|
Posted: Thu May 24, 2007 2:58 pm Post subject: |
|
|
Kolusu,
It worked. Thanks for your help.
sub |
|
Back to top |
|
 |
|
|