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 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?
Where & How Do You Code Identifier In Jcl?
define cond parameter in jcl?
how do you access an uncataloged dataset in a jcl?
How is a type of file defined in the jcl that executes the cobol program?
in ways data can be passed to a COBOL program from JCL?
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?
can any one plzzzzzz tell the jcl code for creating ps using idcams
Explain about ISPF/TSO Commands
what are the types of abends that occur on job failure? And explain the possible causes of these
what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?
What are the parameters that are used in creating a gdg?
in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?
Step 1 RC 4 Step 2 Step 3 I want to know the COND parameter which can be coded in step 2 or 3. Step 2 should be executed based on Step 1 RC and Step 3 should not be executed based on step 1's RC
What are the rules employed while naming the steps in a job?