View previous topic :: View next topic
|
Author |
Message |
KMV
New User
Joined: 15 May 2007 Posts: 22 Location: Coimbatore
|
|
|
|
Hi,
I have three files in the following format:
header denoted by 01
data denoted by 02
trailer denoted by 03
I need to concatenate all the three files and give a sequence number inorder to check the count of records in particular file, and finally sort it so that i get the file in following format.
trailer of file1
header of file1
data of file1
trail of file2
header of file2
data of file2
trailer of file3
header of file3
data of file3 |
|
Back to top |
|
|
Skolusu
Senior Member
Joined: 07 Dec 2007 Posts: 2205 Location: San Jose
|
|
|
|
Quote: |
I need to concatenate all the three files and give a sequence number inorder to check the count of records in particular file, and finally sort it so that i get the file in following format. |
KMV,
You need to provide more details. What is the LRECL and RECFM of the 3 files? How do you validate the count? Is it matching with the count on the trailer record from each file? |
|
Back to top |
|
|
KMV
New User
Joined: 15 May 2007 Posts: 22 Location: Coimbatore
|
|
|
|
Hi Skolusu,
Thanx for ur reply.
Input files will be having a lrecl of 359 and recfm is FB. |
|
Back to top |
|
|
Skolusu
Senior Member
Joined: 07 Dec 2007 Posts: 2205 Location: San Jose
|
|
|
|
KMV,
Please answer all the questions I asked
Thanks |
|
Back to top |
|
|
|