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
Differentiate between the joblib and the steplib statements?
is there any way to execute more than one proc in the same exec statement at the same time..?
How can the disposition of sysout datasets be set for an entire jobstream?
What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?
What is the syntax of JCL statement?
When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?
what sort card you will use to copy the data from one dataset to another dataset?
How to override loadlib?
In job processing, what happens in execution stage?
Is it possible to left uncode disp?
what is use of space parameter in dd statement?
what are the statements that are not valid to be included in an include statement?
when can a job time-out occur? How to overcome that?
Explain the function of dd name parameter with a 2 part structure; audit.report?
what are the types of abends that occur on job failure? And explain the possible causes of these