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
Explain about ISPF/TSO Commands
whats the diff bw the evaluate also and and?
What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?
How to submit jcl through a cobol program?
what is the purpose of coding class parameter in job statement?
How does jcl act on a cobol code?
I had Records in file Like this Company Code IBM 2 IBM 1 IBM 4 WIPRO 3 WIPRO 2 WIPRO 9 TCS 4 TCS 6 TCS 3 i want the record of every company with highest code How can i do that?
What is condition checking in jcl? Is this possible?
What is the format of comment statement?
What parameter of the job statement is used to limit the cpu time consumed by the job?
What is Cataloged Procedures?
Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?
What is NOTCAT ?
What is the function of dd name parameter with a 2 part structure; audit.report?
Explain how can an in-stream dataset be terminated?