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


Please Help Members By Posting Answers For Below Questions

what is DSN parameter and DISP parameter is used for?

764


What is jcl in mainframe?

833


What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?

765


Can an individual step be restricted from using all the jobs allowed cpu time?

1125


A dd statement consists of 4 fields. Name them?

1048






how can the same proc be re-used and called by many jobs?

1033


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

856


what JCL Procedures?

800


Differentiate between the joblib and the steplib statements?

952


Name what parameter directs the output of the job log dataset?

637


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' ?

1663


How is a type of file defined in the jcl that executes the cobol program?

817


I HAVE A VB BLOCK WHICH IS USED AS INPUT IN COBOL CONATINING SOME RECORDS CAN I CHANGE THE FILE FROM VB TO FB?

2211


how to run batch program without jcl?

10356


How dummy is used in jcl?

738