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
write a jcl to execute a job by 7:00 am on jan 20,1986?
What do you understand by the terms: joblib and steplib?
What do you understand by the term notcat 2 – gs?
List the different jcl statements that are not permitted in the procedures?
Name the parameters which can be used to limit the number of records written to a sysout dataset?
In job processing, what happens in conversion stage?
what JCL Procedures?
Can I send output of job to my remote device careerride123?
State the uses of syspring, sysin, sort fields, sum fields and dummy.
what is the purpose of coding class parameter in job statement?
How can a jobs execution priority be modified?
which utility is used a dummy utility?
When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?
Explain about ISPF/TSO Commands
what happens in conversion stage in job processing?