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 |
i have mainprogram and subgram...if i compile mainprogram without stop run..what will u get in compilation time?
What is R-mode and A-mode?
Can we use goto statement in inline_perform ?
What do you do to resolve SOC-7 error?
Can we redefine the field of x(200) to less than 200?
What are VS COBOL 11 special features?
How To move a value to an array using move verb?
Can we change the password using ALTER? anyone tried and changed?
how do you reference the esds vsam file formats from cobol programs
have in 100 records in a file i want to move only matched records to one output_file1 and nonmathed records are moved to another output_file2 ... any one can provide logic code
Difference between cobol and cobol-ii?
What is CALL statement in COBOL?