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 / msm

//SYSIN DD *
DEBUG ABEND
SORT FIELDS=(8,11,CH,A)
SORT FIELDS=COPY,STOPAFT=200
END

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does jcl support automatic restart?

759


Is their any limit for data sets?

699


What dd statement is used to supply the name of a dataset?

772


Explain the hierarchy levels in jcl?

1118


Is condition checking possible in jcl? If yes, how?

735






have in 100 records in a file i want to read first 3 records and skip next 3 records and agan i want to read 3 records and again i want to skip 3 records... run a loop from record one to 10 evaluate i/3 if comes even then skip else write to output file

923


What are steplib and joblib? What for they are used?

689


I had Records in file Like this Company Code IBM 2 IBM 1 IBM 4 WIPRO 3 WIPRO 2 WIPRO 9 TCS 4 TCS 6 TCS 3 i want the record of every company with highest code How can i do that?

8669


which parameter is use to declare the name of dataset in dd statement?

730


When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?

741


What does a disposition of (new,catlg,keep) for a dsn mean?

610


What do you understand by the term notcat 2 – gs?

751


Explain the purpose of dd dummy statement?

669


What are steplib and joblib?

721


Can we call instream to catalog and catalog to instream?

681