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 |
Suppose there r total 10 steps. Out of which i want to execute only the 7th step. How can i do that....????
Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?
If a JOBSTEP abends, AND without using COND also, all the subsequent steps execute, then what is the use of using EVEN ? Why do we use EVEN when without it also all the JOBSTEPs execute ?
How do you create a temporary dataset? Where will you use them?
A PROC has five steps. Step 3 has a condition code. How can you override/nullify this condition code?
in a series of 10 steps, i need to run only 1,3,5,7 & 9th steps only. how do u code?
What will happen if we write two STOP RUN's in a COBOL program?
Explain about LMMLIST�list a library's members
can u execute a proc from another proc?
What is JOBLIB ?
How Can we see all generations of a GDG ?
what if any ,is the syntax error in the following piece of code 01 B PIC A(7) 02 C PIC 9(4) ........ IF(B NUMERIC) ADD 10 TO C a.the condition in the if statement is wrong b.noting is wrong c.because C is initialised.ADD 10 TO C is wrong d.both B and C shoud have same size.