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 can you check if a file is empty using jcl?
A dd statement consists of 4 fields. Name them?
what is SOC4 error?
How is a type of file defined in the jcl that executes the cobol program?
What statement marks the beginning of an in-stream or cataloged procedure in jcl and assigns default values to parameters defined in the procedure?
What is multithreading in jcl?
I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?
How to read and write a single record into a file. I would like to use it to enter a single 8-character piece of information and use it to put it into a variable for processing in JCL. Thank you
What are some jcl statements that are not allowed in procedures?
Explain how can an in-stream dataset be terminated?
List the various advantages of using jcl language?
Name what parameter directs the output of the job log dataset?
How can a fb file convert to vb file using sort program?
What is the function of the dd avgrec keyword in sms datasets?
What do you understand by jcl?