Posted: Sun Jun 03, 2012 6:38 am Post subject: Repeatable header and trailer using sort
Need to a create header and trailer for every 254 records read from input file. I have a sequential file with list of dataset. using a skeleton copy JCL's are created. Now need to insert a repeatable header (Job Card) and trailer (// ) for every 254 step. Please find the below sample data.
With the above, I'm able to create the required output. Now, I'm trying to write a header after 254 input read from input file. Tried achiving with LINES=N, but the max value for n is 255. where in STEP0255 ends at 3369 line number. _________________ magesh
The goal is to generate a set of sort JCL/Control Statements for each record in the input file. Each record contains the DSN to be used in that sort step.At the beginning should be a header and after each 254 "sets", generate a new header.
As i read the posted outrec info, the disps are not what is used.
What does the curent output look like?
But, maybe i misunderstand. _________________ Have a good one
As I mentioned earlier Header (job card) is repeated for every 255 line. Goal is to acheieve a Header (job card) for every 255 input record read from input rather than 255 line number on the output file. _________________ magesh
Joined: 24 Jul 2011 Posts: 651 Location: Down on the pig farm
Posted: Tue Jun 05, 2012 11:54 am Post subject:
Why 2 SYSOUT statements? Why a SYSABEND statement (I do not know if sort requires it)? Why a LIKE parameter - sort will sort out the dcb for you? Your &RETPD will cause a JCL error as you do not resolve it anywhere i.e. ther is no SET statement. _________________ Regards
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum