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 / bachee
//STEP1 EXEC PGM=SORT
//SYSPRINT DD SYSOUT=*
//SORTOUT DD DSN=TEST.SAMPLE.OUTPUT.VIN,DISP=SHR
//SORTIN DD DSN=TEST.SAMPLE.INPUT.VIN,DISP=SHR
//SYSIN DD *
SORT FIELDS=( , ,CH,A)
ENDREC=200
//
| Is This Answer Correct ? | 0 Yes | 5 No |
Post New Answer View All Answers
How can a jobs execution priority be modified?
How do you access an uncatalogued dataset in a jcl?
how you will the direct the data to spool using sysout option?
what is the purpose of coding class parameter in job statement?
What are hierarchy levels in jcl?
how to compare two datasets without using superce because output is limited to 133 bytes
What methodology can be adapted to transfer data to a program that is coded using the exec statement?
Mention the types of job control statements?
I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?
can any one plzzzzzz tell the jcl code for creating ps using idcams
I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?
Explain the function of //jcllib statement?
Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE
List in order the hierarchical levels of jcl?
A chkpt is the parameter coded for multi-volume qsam datasets in a dd statement. When a chkpt is coded as chkpt=eov, a checkpoint is written to the dataset specified in the sysckeov statement at the end of each volume of the input/output multi-volume dataset. State whether true or false?