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

If there are two copybooks which have same variables and we are using both the copybooks in our program. will there be an error and if i move values to the variable which copybook varibales gets the values i move in.

3 Answers   CTS,


What are the different open modes available in cobol?

0 Answers  


Without using move verb how to move one variable to another.

5 Answers  


Write some characteristics of cobol as means of business language.

0 Answers  


Syntax for JCLLIB & JOBLIB???

1 Answers  






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?

5 Answers   Amdocs,


How does IDMS insure data integrity?

1 Answers  


how will you define vsam file in select clause?

3 Answers   Patni,


What is SQL Code -904 and -903 in DB2 And how to handle it?

1 Answers   IBM,


what is difference between the sysabend and userabend?

2 Answers  


what is sysncpoint?

1 Answers   IBM,


When we code these comp,comp1,comp-2,comp-3 and comp4 values. I know the differnece.I mean when we will prefer if it is new program.Explain in detail with memory examples. Thanks in advance.

1 Answers   CTS,


Categories