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 / prakash

sort fields=copy
outfil files=1,endrec=5000
outfil files=2,start rec=5001,endrec=10000

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Mention the types of job control statements?

682


how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?

799


How to pass the parameter in parm using linkage section ? (syntax)?

645


How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?

713


What is catelog procedure and how many catelog procedure to use in one job?

7441






how you can access an uncataloged dataset in a JCL?

651


What is the purpose of dd?

724


Explain how can the submitting users racf authority be overridden in a job stream?

668


Is it possible to define dd statements as you want?

644


In job processing, what happens in execution stage?

696


Is their any limit for data sets?

699


Explain how can values be passed from the job stream to an executable program?

615


How do you overcome this limitation ?

693


How do you access an uncatalogued dataset in a jcl?

724


What is the difference between run mode and addressing mode?

631