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
Can I send output of job to my remote device careerride123?
Explain the hierarchy levels in jcl?
Can we call instream to catalog and catalog to instream?
What do we mean by 'Virtual storage' for a dataset and for a JOBSTEP ? What is the significance of the following statement for a programmer 'Virtual storage results in program addresses being independent of the addresses that actually exist in a computer' ?
How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.
by using cond parameter maximum 8 cond can be coded in single cond means ?explain
How to do automated restart when a job abend?
what is the difference between JES3 and JES2?
IIN APITUDE THEY GAVE ONLY 10 QUESTIONS.. THEY ARE SIMPLE ONE FROM NUMBER SERIES,BOATS,TIME & DISTANCE,PROFIT &LOSS,FIND OUT THE NUMBER ? 9 25 4 36 81 64 49 AND surveillance SPELLINGS E.T.C
What is the significance of addrspc parameter in exec statement?
what is a jcl?
How dummy is used in jcl?
How can an in-stream dataset be terminated?
A dd statement consists of 4 fields. Name them?
What is the use of disp parameter?