Trailer1 and no detail records



IBM's flagship sort product DFSORT for sorting, merging, copying, data manipulation and reporting. Includes ICETOOL and ICEGENER

Trailer1 and no detail records

Postby johnwp53 » Wed Jul 24, 2019 10:39 pm

Hi,
Is it possible to bypass the writing of a Trailer1 record when no detail records are written to the output file?
Trying to avoid creating a file with only a trailer record.
Thanks
johnwp53
 
Posts: 5
Joined: Tue Nov 01, 2011 11:07 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Trailer1 and no detail records

Postby sergeyken » Wed Jul 24, 2019 11:16 pm

The only visible way is:
1) use parameter NULLOFL=RC4 to detect no data records, and
2) add next JCL step to erase previous output with empty dataset (using PGM=IEBGENER, or whatever, to write over the previous output dataset from SORT step)
Javas and Pythons come and go, but JCL and SORT stay forever.
User avatar
sergeyken
 
Posts: 436
Joined: Wed Jul 24, 2019 10:12 pm
Has thanked: 7 times
Been thanked: 40 times


Return to DFSORT/ICETOOL/ICEGENER

 


  • Related topics
    Replies
    Views
    Last post