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 |
What is SQL Code -904 and -903 in DB2 And how to handle it?
in cobol perform stmt whether it first checks the condition or not
whats the difference between search and search all?
What is the difference between a binary search and a sequential search?
is it mandatory to give data division before procedure division ? wht happens if i give procedure division first thn data division ? reply soon
I have 100 records in a file.. i want to sort the records from 5 to 5o... give the syntax...
in cobol main pgm is calling sub pgm but sub pgm does not exists , what abend i get if submit the job?
i want to learn mainframes. i completed MCA ,whats the future of mainframes
What guidelines should be followed to write a structured cobol prgm?
i have mainprogram and subgram...if i compile mainprogram without stop run..what will u get in compilation time?
01 var1 pic s9(9)v99. 01 var2 pic x(30). procedure division. move 12345.99 to var1. move12345.99 to var2. display var1. display var2. what is the output?
There are two flat files one having 10 records and other having 5 records. write a cobol pgm to find the duplicate records(matching records)from both files.