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 |
How to remove 2 duplicate records and copy only one using job control language?
What are all the divisions of a COBOL program?
HELLO FRIENDS, THIS IS JANARDHAN.GADIRAJU, I FACED ONE INTERESTING QUESTION IN COBOL, THAT IS WHAT ARE THE VALUES WE CAN SEE IN HIGHVALUES AND LOWVALUES, CAN U PLEASE GIVE ME THE ANSWER
is it possible to pass an SQL query inside a jcl which is inside a cobol program?
wht do u mean by (*,intrdr) wht is * used for ?
OCCURS clause is used in the DATA DIVISION on data names at (a) 01 level (b) 77 level (c) 88 level (d) any level from 02 to 49
whats the disadvantage of search all over search?
RENAME clause takes new SPACE in memory.TRUE or FALSE? a)TRUE 2)FALSE
How to open and see copy book ?
copy 100 records without using ibm utilities
I have a sequential file of 100 records. How do I load the records into a two dimensional array ?
What is the difference between PIC 9.99 and PIC9v99?