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 are the parameters that are used in creating a gdg?
how you can access an uncataloged dataset in a JCL?
if the submitter of a job wants to inform another user about the job completion, how can it be done?
What statement can be used to send data to another mvs jes3 node?
Explain dfsort utility?
How jcl is used for testing batch programs?
What is the syntax of JCL statement?
Differentiate between addressing mode and run mode.
Explain how can a jobs execution priority be modified?
What is the function of dd name parameter with a 2 part structure; audit.report?
Explain how can the submitting users racf authority be overridden in a job stream?
how can the same proc be re-used and called by many jobs?
What is the maximum length of a single line of jcl?
What is the purpose of dd * statement in jcl?
When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?