View previous topic :: View next topic
|
Author |
Message |
ramsri
Active User
Joined: 18 Oct 2008 Posts: 380 Location: India
|
|
|
|
Arun,
Quote: |
Are the HEADERs for the groups on the two files always identical for a group?
|
The file will have only one HEADER and yes.....they are identical.
Quote: |
Do the TRAILERs simply contain the word TRAILER, or some other "constant" value, or what?
|
Yes......it is just TRAILER and nothing.
Thanks. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
To Repeat:
Quote: |
What happened when you tried?
If you have not tried, do so and post the results if there is a question/problem. |
If you are unwilling to do things suggested and reply as to what happened, we should start locking your topics. . . |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Ramsri,
I've lost track of whether you can use JNFnCNTL files.
If not, use OMIT on the JOINKEYS for your F2 to get rid of the header and trailer.
They will then "pop up" on your F1,ONLY output. In the wrong order.
You'll have to SORT them. Append an X'00' to the header, X'FF' to the trailer and C'1' to each data record. SORT on with, with EQUALS.
Or make a sequence number, set to zero for the header, and all 9 for the trailer. SORT on that, with NOEQUALS.
Don't forget to cut the record back down afterwards (OUTREC BUILD=).
If you can use JNF1CNTL, then the processing to order the header and trailer can be done in there and the cut-down in the REFORMAT. |
|
Back to top |
|
|
|