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
Must tape dataset definitions include vol=ser specifications?
what is use of dcb parameter in dd statement?
What does it mean by Restart and Checkpoint in JCL ? How are checkpoints being taken and what is their usage ? How to use Checkpoint macro on a JOBSTEP ?
how do you code a null statement?
what is SOC4 error?
I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?
What is jcl in mainframe?
Can I send output of job to my remote device careerride123?
List the different jcl statements that are not permitted in the procedures?
Why include statement is used in a jcl?
How can a fb file convert to vb file using sort program?
Name the statement which can be used to send data to another mvs jes3 node?
What parameters can be used to limit the number of records written to a sysout dataset?
I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?
How does jcl act on code(if you take a cobol program)?