How I sort the records in a file and copy the first 10
records to another file
Answer Posted / girish kumar
just write like this
sysin dd *
sort fields=copy
stop after=10
/*
//
i tryed it's working
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
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.
if we want to use a gdg which is already created by some job, then how to use the reference of the last generation in a jcl?
Explain how can return codes be tested before execution of a job step?
What do you understand by the term job time – out and how can you overcome that?
Explain dfsort utility?
What is NOTCAT ?
what happens in conversion stage in job processing?
what is the purpose of coding class parameter in job statement?
Explain the function of //jcllib statement?
how to compare two datasets without using superce because output is limited to 133 bytes
what are JCLLIB and STEPLIB in JCL?
What do you understand by jcl?
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
Explain how can a jobs execution priority be modified?
How does the jcl specify the job to os?