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
What is notcat 2 - gs?
Explain in DD statement what is the use of DCB parameter?
if the submitter of a job wants to inform another user about the job completion, how can it be done?
How does the jcl specify the job to os?
Name the statement which can be used to send data to another mvs jes3 node?
what are the statements that are not valid to be included in an include statement?
Does jcl support automatic restart?
How to override loadlib?
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
Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE
Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?
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.
I need exexution process for JCL programs
Explain dd statement in jcl?
What is the function of dd name parameter with a 2 part structure; audit.report?