i have a jcl containing header body and trailer .in header i
have viswa
body 2
6
1
9
7
trailer reddy .now i need to sort only body in either
asecending or descending order how can i do it
Answer Posted / vadivel r
ICETOOL will help you,
//S1 EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN DD *
viswa
2
6
1
9
7
reddy
/*
//OUT DD DSN=... output file
//TOOLIN DD *
* Sort detail records between the header and trailer
DATASORT FROM(IN) TO(OUT) HEADER TRAILER USING(CTL1)
//CTL1CNTL DD *
* Sort the detail records ascending by positions 14-23.
SORT FIELDS=(1,1,CH,A)
/*
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
what happens in execution stage in job processing?
Explain the function of the dd dcb keyword?
In job processing, what happens in execution stage?
What is the function of a dd statement?
How to find the UNIT and VOLUME of a (a) KEPT (b) UNCATALOGED and (c) CATALOGED dataset - using (i) JCL and using (ii) ISPF ?
what is the use of IEBGENER utility?
Explain the purpose of dd * statement in jcl?
Is automatic restart possible in jcl?
We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?
Explain the job statement in jcl?
How to execute 2nd and 4th steps among 5 steps in jcl proc?
Why block size is multiple of lrecl in jcl?
Where can program checkpoints be stored for use in a restart?
what is the JCL statement consists of?
When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?