Joined: 23 May 2005 Posts: 2 Topics: 1 Location: USA
Posted: Mon May 23, 2005 2:08 pm Post subject: Outfil header1
I am trying to get a syncsort step to output a header into the top of the sortout file. Not having much luck. It is abending but without an error code. I think I have the parms in the wrong order. Anyone help?
Here is my JCL. I need the include, sort and sum commands...can this be done in one step?
Joined: 26 Nov 2002 Posts: 12381 Topics: 75 Location: San Jose
Posted: Mon May 23, 2005 3:19 pm Post subject:
Uconnputz,
When you are using reporting features, the output dataset will created with ansi carriage control character. So the recfm will be FBA format. However you have hardcoded FB as the Recfm for the SORTOUT dataset. You don't have to code the DCB parameters for SORT. They will be automatically calculated by sort pgm itself.
I am not really sure about the pgm IERRCO00, but here is the JCl which will give you the desired results. I re-arranged the control cards for more readablity
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