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


Please Help Members By Posting Answers For Below Questions

Explain the purpose of dd * statement in jcl?

636


What is job control language?

607


In sms datasets, what is the function of the dd mgmtclas keyword?

857


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

705


For what purpose steplib and joblib are used ?

688






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?

8669


Must tape dataset definitions include vol=ser specifications?

979


Can an individual step be restricted from using all the jobs allowed cpu time?

1005


Explain dd statement in jcl?

642


what is use of space parameter in dd statement?

750


what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?

771


How can unused space allocation be returned to the system when a dataset is closed?

806


What do you understand by jcl?

625


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.

1947


What do you know about jcl?

645