View previous topic :: View next topic
|
Author |
Message |
Bhuvaneswari K
New User
Joined: 15 Sep 2008 Posts: 17 Location: Chennai
|
|
|
|
Hi,
I'm writing a sort job to merge the data records of 4 different files. The 4 files will not have header and trailer record.
But the merged output file should have a header record with current date in it and a trailer record with the count of records.
Please advise on how this can achieved .
thanks,
bhuvana |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Are you MERGEing the files based on any key? If yes, what about the starting position,length and format of the key field in the input files? And remember in order to do a 'MERGE' the files must be presorted on the key field.
Or you just want to concatenate all the input files?
What about the LRECL/RECFM of input files?
And the format of Date that you want in the header-ddmmyy? mmddyy or mmddyyyy or what? |
|
Back to top |
|
|
Bhuvaneswari K
New User
Joined: 15 Sep 2008 Posts: 17 Location: Chennai
|
|
|
|
The date format is yyyymmdd. the files are of lenght 80, q-sam files.
thanks,
bhuvana |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Arun Raj wrote: |
Are you MERGEing the files based on any key? If yes, what about the starting position,length and format of the key field in the input files? And remember in order to do a 'MERGE' the files must be presorted on the key field.
Or you just want to concatenate all the input files? |
And what about this part?. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
bhuvana,
Please show an example of the records in each input file (relevant fields only) and what you expect for output. Explain the "rules" for getting from input to output. Give the starting position, length and format of each relevant field. Give the RECFM and LRECL of the input files. If a file can have duplicates within it, show that in your example. |
|
Back to top |
|
|
|