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
Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE
How can the submitting users racf authority be overridden in a job stream?
In job processing, what happens in execution stage?
What is the maximum length of a single line of jcl?
In sms datasets, what is the function of the dd mgmtclas keyword?
Explain dd statement in jcl?
How jcl is used for testing batch programs?
whats the diff bw the evaluate also and and?
what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?
How to override loadlib?
How to do automated restart when a job abend?
Explain the purpose of dd * statement in jcl?
How does jcl specify the job to the operating system?
What is concatenating?
What is the motivation behind coding class parameter in job statement?