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
What is the significance of addrspc parameter in the exec statement?
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 is the use of symbol // in jcl?
Explain the function of dd disp parameter?
Can I send output of job to my remote device careerride123?
Must tape dataset definitions include vol=ser specifications?
how do you code a null statement?
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 statement marks the beginning of a job step; assigns a name to the step; identifies the program or catalogued or in-stream procedure to be executed in the step?
What is the function of //jcllib statement?
write a jcl to execute a job by 7:00 am on jan 20,1986?
In job processing, what happens in conversion stage?
How does jcl act on a cobol code?
What are the parameters that are used in creating a gdg?
what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?