i have 10,000 records in one input file.i want to sort 1 to
5000 records in one outputfile and remaining records sort in
another output file write the syntax for this?
Answer Posted / muttaiah
@Albert:
IF we are using Outfil, we won't use Skiprec & stopaft.
My Answer:
Step1:
sort fields=copy
outfil files=01,endrec=5000
outfil files=02,startrec=5001,endrec=10000
Step2:
Sort fields=(pos,leng,cha,a or d)
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
For what purpose steplib and joblib are used ?
What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?
Describe the various parameters utilized in the creation of a gdg?
What is the function of //jcllib 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 ?
what is the compile process of cobol program expalin with code
how do you code a null statement?
When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?
Explain how can the disposition of sysout datasets be set for an entire jobstream?
What is timing concept in mainframe?
What is the function of the dd dcb keyword?
Name the statement which can be used to send data to another mvs jes3 node?
Is automatic restart possible in jcl? If yes, how?
What are steplib and joblib?
How can return codes be tested before execution of a job step?