How do you submit JCL via a Cobol program?

Answers were Sorted based on User's Feedback



How do you submit JCL via a Cobol program?..

Answer / m.sukumar

Using internal reader....

Is This Answer Correct ?    8 Yes 1 No

How do you submit JCL via a Cobol program?..

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

How do you submit JCL via a Cobol program?..

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

How do you submit JCL via a Cobol program?..

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 do you submit JCL via a Cobol program?..

Answer / hugo

use call IKJETF01

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More COBOL Interview Questions

How to remove 2 duplicate records and copy only one using job control language?

0 Answers  


What are all the divisions of a COBOL program?

0 Answers  


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

7 Answers   Patni,


is it possible to pass an SQL query inside a jcl which is inside a cobol program?

5 Answers   CTS,


wht do u mean by (*,intrdr) wht is * used for ?

2 Answers  






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

13 Answers   TCS,


whats the disadvantage of search all over search?

4 Answers   Patni, TCS,


RENAME clause takes new SPACE in memory.TRUE or FALSE? a)TRUE 2)FALSE

12 Answers   TCS,


How to open and see copy book ?

3 Answers  


copy 100 records without using ibm utilities

3 Answers  


I have a sequential file of 100 records. How do I load the records into a two dimensional array ?

3 Answers   IBM, Xansa,


What is the difference between PIC 9.99 and PIC9v99?

0 Answers  


Categories