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


Please Help Members By Posting Answers For Below Questions

Must tape dataset definitions include vol=ser specifications?

988


what is use of dcb parameter in dd statement?

780


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 ?

9222


how do you code a null statement?

782


what is SOC4 error?

742






I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?

1361


What is jcl in mainframe?

696


Can I send output of job to my remote device careerride123?

672


List the different jcl statements that are not permitted in the procedures?

645


Why include statement is used in a jcl?

694


How can a fb file convert to vb file using sort program?

811


Name the statement which can be used to send data to another mvs jes3 node?

611


What parameters can be used to limit the number of records written to a sysout dataset?

758


I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?

715


How does jcl act on code(if you take a cobol program)?

713