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 / guest

Use a file //dd1 DD sysout=(*,intrdr)write your JCL to this
file. Pl some one try this out.

Is This Answer Correct ?    7 Yes 2 No

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

Answer / raghavendra

Before doing this alll the JCl statements shud be written to
the file mentioned in DD1 by the cobol pgm

Is This Answer Correct ?    4 Yes 2 No

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

Answer / satish.m.s

Use a file //dd1 DD sysout=(*,intrdr)

Is This Answer Correct ?    2 Yes 0 No

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

Answer / bala

Jcl:
JOB: //STEP1 EXEC PGM=MAINPM
//DD1 DD DSN=MUTHU.TEST,DISP=SHR
//JCLDD DD SYSOUT=(*,INTRDR)

Cobol:
PROGRAM:MAINPGM
SELECT JCLFILE ASSIGN TO JCLDD…. (Environment Division)
FD JCLFILE.
01 JCL-REC PIC X(80). (File Section)
OPEN OUTPUT JCLFILE. (Open in output and write JCL statements)
MOVE ‘//TESTJOB JOB 1111’ TO JCLREC.
MOVE ‘//STEP01 EXEC PGM=IEFBR14’ TO JCLREC.
CLOSE JCLFILE (TESTJOB will be submitted automatically)

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More JCL Interview Questions

How to point my proc to production dataset always though i keep jcllib order=development.dataset? Is it possible?

3 Answers  


Explain about LMMLIST�list a library's members

1 Answers  


A. Job Abended in STEP03. Now run job again to execute STEP03, STEP04 (STEP01,STEP02 should not execute again)

3 Answers   Cap Gemini, CSC, Xchanging,


wht do u mean by inrec and outrec ?

1 Answers   IBM,


How to submit jcl through a cobol program?

0 Answers  






How do you create a temporary dataset? Where will you use them?

2 Answers   IBM,


can we bowse or edit the GDG dataset if it is a tape entry?

4 Answers  


What is a GDG? How is it referenced? How is it defined? What is a MODELDSCB?

3 Answers  


What is the use of DUMMY statement in the JCL? What is the use of DUMMY Utility in the JCL?

12 Answers   Convergys,


I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?

0 Answers  


My JCL contains four steps //STP1 A(+1), DISP = NEW //STP2 A(+2), DISP = NEW //STP3 A(+3), DISP = NEW //STP4 A(+1), DISP = OLD STP3 was abended and I want restart my JCL from STP3 onwards & what are the precaution I want to take & what are the changes I need to make. Pls let me know.

4 Answers   CTS,


Why block size is multiple of lrecl in jcl?

0 Answers  


Categories