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

Why we us SYSTSIN DD with IKJEFT01 (TSO Utility) to execute a COBOL DB2 program? Why can't we use SYSIN DD?  

1 Answers   TCS,


How do You skip a Step In JCL?

9 Answers   HTC,


List the different jcl statements that are not permitted in the procedures?

0 Answers  


How is a new GDG coded?

2 Answers  


How to delete AIX ? i) IEBGENER ii) IDCAMS iii) PURGE iv) All of the above

3 Answers   HSBC,






I have a job called careerride and some steps in it as step1,step2. But I want to execute step2 before step1 ? How do I do that?

0 Answers  


What is NOTCAT 2

2 Answers   IBM,


Explain about LMMLIST�list a library's members

1 Answers  


What is DISP= (NEW,PASS,DELETE)?

3 Answers   HCL,


Suppose I have seven jobs to do, but I want to hold one than how can I do this?

1 Answers  


JCL Example: // //RUNJCL JOB CLASS=5,MSGCLASS=6,NOTIFY=&SYSUID //STEP01 EXEC PGM=IEFBR14 // .. .. If this JCL will run or it'll throw the ERROR?

4 Answers   HCL,


what is DD statement is used in JCL?

0 Answers  


Categories