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?
Answer Posted / 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 |
Post New Answer View All Answers
How to alter the parameters for the existing gdg?
Why block size is multiple of lrecl in jcl?
how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?
What is use of restart and how to use it?
Name what parameter directs the output of the job log dataset?
Differentiate between addressing mode and run mode.
what is the use of IEBGENER utility?
what is JCL?
Is it possible to left uncode disp?
What methodology can be adapted to transfer data to a program that is coded using the exec statement?
how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?
what is SOC4 error?
Explain the function of the steplib dd statement?
What is the syntax of JCL statement?
what is use of dsn parameter in dd statement?