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
what EXEC statement is and what is the syntax of EXEC statement used in JCL?
What are the difference between jcl and jes?
Explain the function of job statement in jcl?
How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.
List the various advantages of using jcl language?
how can you check if a file is empty using jcl?
Explain about ISPF/TSO Commands
How can the attributes of one sms dataset be copied to another dataset?
Explain the purpose of the dd keylen parameter?
My Question is 1. How to cound no. of records in JCL. Please explain with an example. 2. How to execute only odd steps in JCL? I know EDIT TYPE = Inculde, Step Name = 1,3,5 and COND code for all even step. Anyone knows other than this.
What is Cataloged Procedures?
can any one plzzzzzz tell the jcl code for creating ps using idcams
Explain the job statement in jcl?
How do you create a temporary dataset?
What is jcl in mainframe?