How do you submit JCL via a Cobol program?
Answers were Sorted based on User's Feedback
Answer / nihar ranjan karan
To elaborate further on the internal reader....
Put your JCL statements in DISPLAY statements in the COBOL
program...
In the Run JCL ....give the following DD statement...
//SYSOUT DD SYSOUT=(*,INTRDR)
as soon as your program is executed the DISPLAY statements
will be written to the SYSOUT and in turn the internal
reader picks up those statements from the SYSOUT and
executes them....
Is This Answer Correct ? | 9 Yes | 3 No |
Answer / s.vijay krishnan
Step 1 : write all the jcl statements in a file.
step 2 : in the jcl assign the dd statement to sysout with
intrdr.
Is This Answer Correct ? | 5 Yes | 1 No |
Answer / puneet pandhi
It is possible to submit a job from a DB2 Stored Procedure.
In the WLM start up procedure, ask your DBA to add this
//JCLJOB DD SYSOUT=(,INTRDR)
Create one file JCLFIL and populate the JCL that you want
to submit into this file. When you close this file, the job
should get submitted.
then as you close the file the job will be submitted and in
SP add SELECT JCLFIL ASSIGN TO JCLJOB
Is This Answer Correct ? | 1 Yes | 0 No |
TYPES OF SORTINGS. which is more prefarable.
what is level 66 means??
Why there is no questions in this column?
what is the coding difference between COBOL and CICS.
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
What should be the sorting order for SEARCH ALL?
In COBOL programming, what is PERFORM? What is VARYING?
what is the size of W-REC in the following 01 W-REC 05 A PIC 9(4)V99 05 B READLINES A 10 C PIC XX 10 D PIC S9(4) 05 E OCCURS 7 PIC ZZ.ZZ 05 F OCCURS 5 10 G PIC ZZ.ZZZ99 10 H OCCURS 3 15 J PIC 9(3) 15 K PIC V99
how many bytes do SPPPP999 will store?
what is Reentrancy and Quasi-reentrancy?
how to know that the file has 300 records how to acess it?
consider the following two statements MOVE 10 TO N PERFORM PARA-X N TIMES STOP RUN PARA-X MOVE 5 TO N how many times PARA-X willbe exicuted? a.10 b.5 c.infinate d.execution error