i have 1000 records in input file and i want to sort it and
the first 200 records to be placed in output file. how to
do that??
Answer Posted / rajesh
//SYSIN DD *
SORT FIELDS=COPY,
OUTREC FILEDS=(1,2,CH,A) --> WHATEVER U WANNT TO SORT
STOPAFT=100
//
hope this does..
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
How gdg are concatenated?
Can we call instream to catalog and catalog to instream?
how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?
How to submit a jcl from cics?
what is use of disp parameter in dd statement?
what is the purpose of coding class parameter in job statement?
Explain the function of the steplib dd statement?
What are the jcl procedures?
Must tape dataset definitions include vol=ser specifications?
Explain the function of //cntl statement?
What is concatenating?
is there any way to execute more than one proc in the same exec statement at the same time..?
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 the purpose of dd * statement in jcl?
What methodology can be adapted to transfer data to a program that is coded using the exec statement?