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 |
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
What are different file OPEN modes available in COBOL?
01rec1. 05 a pic 999v99 value 123.12 05 b pic 99v9 value 45.9 02 rec2. 05 x pic 999v99 05 y pic 99v99 05 z pic x(3) value 'abc' if rec1 is moved to rec2 then what is the value of rec2?
What is the difference between PIC 9.99 and 9v99?
What is JOBLIB and STEPLIB in JCL? what is the purpose of using it?
What is the maximum size of a 01 level item in COBOL I? in COBOL II?
How to delete a front spaces in a data-name/variable in cobol Example:- 01 data-name-1 PIC x(20) value " cobol language". 01 data-name-2 PIC x(20). MOVE data-name-1 to data-name-2. would like the value of data-name-2 is "cobol language".
what do you mean by copybook? and what is the difference between the copybook which we are using in working storage and procedure division.
Difference between file status codes 02 and 22.... since both are for duplicate key detection.
can we use 77 level no for Redefines?if we use give an example?
how we can reverse the string in the cobol for example satheesh can be reveresed as hseehtas
what is s000 u4087 error? please give the all error codes in cobol,jcl.