How I sort the records in a file and copy the first 10
records to another file
Answer Posted / haleema
Keep first 10 sorted output records.
SUBSET FROM(IN1) TO(OUT1) OUTPUT KEEP FIRST(10)USING(CTL1)
//CTL1CNTL DD *
SORT FIELDS=(11,5,CH,A)
/*
Do this using ICETOOL job.
Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
I need exexution process for JCL programs
I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?
what is the use of JCL?
What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?
What do you understand by jcl?
what sort card you will use to copy the data from one dataset to another dataset?
what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?
what is the purpose of coding notify parameter in job statement?
which parameter is used to check the syntax of a jcl without executing it?
What is the function of //cntl statement?
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?
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
what are the statements that are not valid to be included in an include statement?
What is the function of dd name parameter with a 2 part structure; audit.report?
I HAVE A VB BLOCK WHICH IS USED AS INPUT IN COBOL CONATINING SOME RECORDS CAN I CHANGE THE FILE FROM VB TO FB?