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
a dd statement has 2 types of parameters. Name them?
Can we use DISP=SHR in output file in JCL
what is DSN parameter and DISP parameter is used for?
In job processing, what happens in execution stage?
What are the parameters that are used in creating a gdg?
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?
Must tape dataset definitions include vol=ser specifications?
Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?
how can you check if a file is empty using jcl?
What do you know about jcl?
Is it possible to left uncode disp? If yes, how?
what is SOC4 error?
I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?
How can the disposition of sysout datasets be set for an entire jobstream?
Explain dfsort utility?