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
Explain the purpose of dd * statement in jcl?
What is job control language?
In sms datasets, what is the function of the dd mgmtclas keyword?
How does jcl act on code(if you take a cobol program)?
For what purpose steplib and joblib are used ?
I had Records in file Like this Company Code IBM 2 IBM 1 IBM 4 WIPRO 3 WIPRO 2 WIPRO 9 TCS 4 TCS 6 TCS 3 i want the record of every company with highest code How can i do that?
Must tape dataset definitions include vol=ser specifications?
Can an individual step be restricted from using all the jobs allowed cpu time?
Explain dd statement in jcl?
what is use of space parameter in dd statement?
what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?
How can unused space allocation be returned to the system when a dataset is closed?
What do you understand by jcl?
I have mainpgm(abc) this is the only cobol pgm(non-db2).And this pgm calling subpgm name "acd" this also only cobol(non- Db)and this pgm calling some other subpgm this pgm has cobol-db2 pgm. 1) IF you calling static mode how to run and how to compile? 2) IF you calling dynamic mode how to run and how to compile? plz suggestion me.
What do you know about jcl?