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 are the statements that are not valid to be included in an include statement?
What statement marks the beginning of a job step; assigns a name to the step; identifies the program or catalogued or in-stream procedure to be executed in the step?
what is the JCL statement consists of?
What is the function of dd disp parameter?
We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?
Where & How Do You Code Identifier In Jcl?
Explain how can the submitting users racf authority be overridden in a job stream?
what is SOC4 error?
What is the purpose of the dd keylen parameter?
Explain how can an in-stream dataset be terminated?
Differentiate between the joblib and the steplib statements?
Name what parameter directs the output of the job log dataset?
What is the difference between the positional and keyword parameters? Give examples.
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 do you code a null statement?