i have 10,000 records in one input file.i want to sort 1 to
5000 records in one outputfile and remaining records sort in
another output file write the syntax for this?
Answers were Sorted based on User's Feedback
Answer / albert
SORT FIELDS=COPY
OUTFIL FILES=1,STOPAFT=5000
OUTFIL FILES=2,SKIPREC=5000
| Is This Answer Correct ? | 28 Yes | 8 No |
Answer / muttaiah
@Albert:
IF we are using Outfil, we won't use Skiprec & stopaft.
My Answer:
Step1:
sort fields=copy
outfil files=01,endrec=5000
outfil files=02,startrec=5001,endrec=10000
Step2:
Sort fields=(pos,leng,cha,a or d)
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / prakash
sort fields=copy
outfil files=1,endrec=5000
outfil files=2,start rec=5001,endrec=10000
| Is This Answer Correct ? | 4 Yes | 2 No |
What 3 guidelines do we have to follow when concatenating DD statements?
What is a Generation Data Group (GDG)?
What is the syntax of JCL statement?
how to compare two datasets without using superce because output is limited to 133 bytes
MOD, DELETE; What does a disposition of (,DELETE) mean ?
HOW TO CONVERT VARIABLE BLOCK TO FIXED BLOCK ?
if you have big pgm. during compilation is abends with (soc7)how do you know which line has soc 7 error.
I want to JCL sort for Non-COMP and COMP-3 fields SORT FIELDS=(1,5,A,6,11,A,12,11,A,19,1,A,20,1,A),FORMAT=BI,EQUALS Length of comp bytes is 11 bytes which start at 6byte and 12 byte considering 11 bytes in comp-3 is 6 bytes. Can anyone tell if the above sort work SORT FIELDS=(1,5,A,6,6,A,12,6,A,19,1,A,20,1,A),FORMAT=BI,EQUALS does not works OK
What is the use of disp parameter?
how can we merge two input files from two different jobs into one output file ? Please ans any one ASAP?
I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?
Mainframes gets a text file that contains the name of the file. Now using JCL i want to locate that file name in the mainframe system and perform further processing. Please tell how to proceed