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 |
What is DYNAMBR in jcl?
What is GDG and what is the maximum limit of versions that can be created?
Is condition checking possible in jcl?
i have 10,000 records in one input file.i want to sort 1 to 5000 records in one outputfile and remaining records sort in another output file write the syntax for this?
How can u know the current date using jcl?
Explain the function of the dd dcb keyword?
how you can direct the data to spool using SYSOUT option?
Can anyone tell me the syntax for printing two files at two different destinations in a single step?
Can you execute a PROC from another PROC?
What are s0c1, s0c4, s0c5, s0c7 and socb?
Is there GOTO and SWITCH-CASE available in JCL ? Is IF-THEN-ELSE available in JCL also just like it is available for VSAM datasets under Model Commands category ?
In job processing, what happens in execution stage?