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

A dd statement consists of 4 fields. Name them?

910


What is the function of dd disp parameter?

650


WORKING-STORAGE SECTION. 01 GROSS-PAY. 05 BASIC-PAY PIC 9(5). 05 ALLOWENCES PIC 9(3). PROCEDURE DIVISION. MOVE 1000 TO BASIC-PAY. MOVE 250 TO ALLOWENCES. DISPLAY GROSS-PAY. STOP RUN. 77 W-A PIC 9(3)V99 VALUE 23.75 77 W-B PIC ZZ9V99 VLAUE 123.45 after the statement MOVE W-A TO W-B what will be W-B's value? a.123.75 b.b23.75 (where b indicates space) c.023.75 d.invalid move

846


What is jcl in mainframe?

677


List in order the hierarchical levels of jcl?

662






In job processing, what happens in execution stage?

691


Does jcl support automatic restart?

743


How does jcl specify the job to the operating system?

740


what is use of disp parameter in dd statement?

650


What happens if both JOBLIB & STEPLIB is specified ?

598


when can a job time-out occur? How to overcome that?

740


Hello Guys, I have 1+ Year Experience in MAINFRAME TESTING. After 1 Week I have an Interview With a Company on Mainframe Testing. Please Could You Guys Please Suggest me What Sections Should I prepare ?? ___Tell Me the Topic Or Appropriate Site & Links. ?? ---------------Thank You

2256


What do you understand by the term notcat 2 – gs?

740


How dummy is used in jcl?

639


Explain the purpose of dd dummy statement?

662