How I sort the records in a file and copy the first 10
records to another file

Answer Posted / balasukumar

//SORTIN DD DSN=INF1
//SORTOT DD DSN=OTF
//SYSIN DD *
SORT FIELDS = COPY
SKIP=0
STOPAFT=10
/*

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the difference between JES3 and JES2?

673


Must tape dataset definitions include vol=ser specifications?

969


what is the resolution for sb37 error

7689


What is the syntax of JCL statement?

688


Is it possible to define dd statements as you want?

644






How to pass the parameter in parm using linkage section ? (syntax)?

643


what is DD statement is used in JCL?

675


A dd statement consists of 4 fields. Name them?

913


how you can direct the data to spool using SYSOUT option?

917


What is one line to pass PARM from JCL to COBOL?

480


how do you code a null statement?

768


which utility is used a dummy utility?

782


How to find the UNIT and VOLUME of a (a) KEPT (b) UNCATALOGED and (c) CATALOGED dataset - using (i) JCL and using (ii) ISPF ?

2158


Explain the purpose of dd dummy statement?

666


in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?

2050