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



i have a jcl containing header body and trailer .in header i have viswa body 2 6 1 ..

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

Post New Answer

More JCL Interview Questions

how can we pass external data to instream procedures

5 Answers   IBM, Infosys, Ocwen,


what is symbolic parameters in jcl, what is a temparary data set ? where do u use ?

2 Answers   Verizon,


hi,i have joined in mainframe course recently. ihave a doubt ragarding restart parameter.what is d use of it. and what is d syntax for it. any one give me d answer pls.

3 Answers  


can we maintain 2 generations with different Lengths in Same GDG ?

3 Answers   RBS,


Can you execute a PROC from another PROC?

8 Answers   Keane India Ltd,






What you mean by skeleton JCl?

2 Answers  


In DCB, what is LRECL,BLKSIZE,DSORG

1 Answers   TCS,


what are the statements that are not valid to be included in an include statement?

0 Answers   IBM,


What statement can be used to send data to another mvs jes3 node?

0 Answers  


what are the ways of passing data to a cobol program from jcl?

1 Answers   IBM,


Explain the purpose of dd dummy statement?

0 Answers  


Explain about REXX

1 Answers  


Categories