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 / 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 |
How to pass the temp dataset form one JOB step to another?
how to compress the data set
what is static and dynamic call with examples?
How can the submitting users racf authority be overridden in a job stream?
how to eliminate the duplicates in sorting
What are isolation levels? Where do we need to specify them in compiling JCL?
What is COND=ONLY ?
Explain about CBL/PROCESS statement syntax
How can return codes be tested before execution of a job step?
in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?
Describe the DD statement, its meaning, syntax and keywords?
What is one line to pass PARM from JCL to COBOL?