How I sort the records in a file and copy the first 10
records to another file
Answer Posted / srinivasa yadav
//sysin dd *
sort fields=(starting postion,length,data-type,order)
skip rec=0
stop rec=10
/*
and also we can use file-aid tool. in file-aid
there is an option 3.3
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
what is DSN parameter and DISP parameter is used for?
What is jcl in mainframe?
What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?
Can an individual step be restricted from using all the jobs allowed cpu time?
A dd statement consists of 4 fields. Name them?
how can the same proc be re-used and called by many jobs?
What do you understand by the term notcat 2 – gs?
what JCL Procedures?
Differentiate between the joblib and the steplib statements?
Name what parameter directs the output of the job log dataset?
What do we mean by 'Virtual storage' for a dataset and for a JOBSTEP ? What is the significance of the following statement for a programmer 'Virtual storage results in program addresses being independent of the addresses that actually exist in a computer' ?
How is a type of file defined in the jcl that executes the cobol program?
I HAVE A VB BLOCK WHICH IS USED AS INPUT IN COBOL CONATINING SOME RECORDS CAN I CHANGE THE FILE FROM VB TO FB?
how to run batch program without jcl?
How dummy is used in jcl?