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

in the TIME parameter we r giving hours r minutes

4 Answers   IBM,


What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?

0 Answers  


What is inspect in cobol ?

0 Answers   Infosys,


How do you define a sort file in JCL that runs the COBOL program?

6 Answers   Syntel,


What is the different between index and subscript?

3 Answers  


how to create temporary data set in jcl? what is the use?

3 Answers   Cap Gemini, Temenos,


how will u retreive value from a table.write it with syntex. 01 ws-table 05 ws-table1 occurs 10 times. 05 ws-table2 occurs 10 times. the above is 2 dimensional array..how will u retrieve 1st element of an array

3 Answers   ADP,


how to submit a jcl by cobol program. clear me with an example.

3 Answers   HCL,


give the examples of strings in cobol

1 Answers   IBM,


What is the difference between a binary search and a sequential search what are the pertinent cobol?

0 Answers  


I am sending values a and b with pic x(10) and pic x(10) by using call statement. In linkage section, I am receiving values with pic x(10) and pic x(11). Will my program fail? will it be compile error or run time abend?

3 Answers  


what if any ,is the syntex error in the following piece of code 01 B PIC A(7) 02 C PIC 9(4) ........ IF(B NUMERIC) ADD 10 TO C a.the condition in the if statement is wrong b.noting is wrong c.because C is initialised.ADD 10 TO C is wrong d.both B and C shoud have same size.

5 Answers   TCS,


Categories