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
How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.
What is job control language?
Explain the function of dd disp parameter?
How can a jobs execution priority be modified?
What is the function of //jcllib statement?
what is the purpose of coding notify parameter in job statement?
How dummy is used in jcl?
What is notcat 2 - gs?
What do you understand by the terms: joblib and steplib?
Explain the function of the dd dcb keyword?
define cond parameter in jcl?
how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?
What are steplib and joblib? What for they are used?
What is the use of symbol // in jcl?
how do you access an uncataloged dataset in a jcl?