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


Please Help Members By Posting Answers For Below Questions

What is notcat 2 - gs?

934


Explain in DD statement what is the use of DCB parameter?

656


if the submitter of a job wants to inform another user about the job completion, how can it be done?

756


How does the jcl specify the job to os?

694


Name the statement which can be used to send data to another mvs jes3 node?

604






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

776


Does jcl support automatic restart?

761


How to override loadlib?

1423


Step 1 RC 4 Step 2 Step 3 I want to know the COND parameter which can be coded in step 2 or 3. Step 2 should be executed based on Step 1 RC and Step 3 should not be executed based on step 1's RC

716


Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE

1969


Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?

669


I have mainpgm(abc) this is the only cobol pgm(non-db2).And this pgm calling subpgm name "acd" this also only cobol(non- Db)and this pgm calling some other subpgm this pgm has cobol-db2 pgm. 1) IF you calling static mode how to run and how to compile? 2) IF you calling dynamic mode how to run and how to compile? plz suggestion me.

1953


I need exexution process for JCL programs

1850


Explain dd statement in jcl?

642


What is the function of dd name parameter with a 2 part structure; audit.report?

700