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

hello friends ,i have exam in Hsbc,pls any on send me placement papers and technical questions on mainframes,thank u

1672


Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?

727


What is the function of dd name parameter with a 2 part structure; audit.report?

711


how would you create a temporary dataset? And where will you use them?

773


I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one

1933






which utility is used a dummy utility?

801


Can I share my data with other jobs? How?

672


Are there any set of rules for the names of the steps used in a job? What are they?

617


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

783


How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?

673


What is notcat 2 - gs?

941


What is the motivation behind coding class parameter in job statement?

694


State the uses of syspring, sysin, sort fields, sum fields and dummy.

656


What is the purpose of the dd keylen parameter?

728


What is the function of the dd avgrec keyword in sms datasets?

843