I have input with LRECL=10 and RECFM=FB
Want output as LRECL=10 and RECFM=FB
I am using DFSORT\ICETOOL.
Input is having some detail records needs to be grouped based on some count of records(here 5). Header and trailer is to be added for each group.
I have coded below sortcard and working fine for cases when there are some records in input dataset. But when dataset is empty spos=9,len=2 is having spaces at header since no records and hence no ID value.
I want this to come as 01 in case of empty file.
Joined: 07 Dec 2007 Posts: 2205 Location: San Jose
Sambhaji,
You need to check for empty file and then accordingly process the header3.
Btw you don't need that much of processing to group records based on number. When=Group can do it all very easily