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 / v khurana
One more bethod is there, i.e. by using SPLIT1R
OUTFIL FNAMES=(FILE1,FILE2), SPLIT1R=5000
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
what is use of space parameter in dd statement?
what is use of dsn parameter in dd statement?
Explain the function of //cntl statement?
In job processing, what happens in conversion stage?
Is their any set of rules for dd? Explain.
Which statement is used to identify the private libraries in job?
What does it mean by Restart and Checkpoint in JCL ? How are checkpoints being taken and what is their usage ? How to use Checkpoint macro on a JOBSTEP ?
I HAVE A VB BLOCK WHICH IS USED AS INPUT IN COBOL CONATINING SOME RECORDS CAN I CHANGE THE FILE FROM VB TO FB?
In sms datasets, what is the function of the dd mgmtclas keyword?
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?
what are JCLLIB and STEPLIB in JCL?
Explain how can an in-stream dataset be terminated?
I have a cobol db2 program(PGM A) where other program (PGM B) will call this program and passes some 50 fields data to PGM A. PGM A has some layout in which it receives the data from PGM B. And this layout has been copied in the linkage section pf PGM A. After getting the data, PGM A writes the data in a flat file in the same layout which it receives from PGM B. PGM B is a simple COBOL pgm. Please provide a JCL to run these programs.
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
What are the 2 types of parameters in dd statement?