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
Explain how can values be passed from the job stream to an executable program?
what are JCLLIB and STEPLIB in JCL?
Give the syntax of job specifying jcl statement.
how you will the direct the data to spool using sysout option?
which utility is used a dummy utility?
How is the record format of an output dataset specified?
Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?
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?
I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?
Explain how can the attributes of one sms dataset be copied to another dataset?
in ways data can be passed to a COBOL program from JCL?
define cond parameter in jcl?
Is it possible to left uncode disp?
List the various advantages of using jcl language?
I have a job called careerride and some steps in it as step1,step2. But I want to execute step2 before step1 ? How do I do that?