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
What is the function of job statement in jcl?
what is the resolution for sb37 error
Can we call instream to catalog and catalog to instream?
how can you check if a file is empty using jcl?
Explain how can a jobs execution priority be modified?
what happens in execution stage in job processing?
whats the diff bw the evaluate also and and?
what is use of disp parameter in dd statement?
What do you know about jcl?
Explain dd statement in jcl?
What are the utility programs in jcl?
Is their any limit for data sets?
what is the difference between JES3 and JES2?
How can values be passed from the job stream to an executable program?
What is jcl in mainframe?