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

Suppose i have a file with 10 recs and i want to skip only the 7 th record and copy the rest into another file. How do i do it using SORT?

7 Answers   VS, Wipro,


A dd statement consists of 4 fields. Name them?

0 Answers  


What is the meaning of the following declaration : DCB=BLKSIZE=, What is the difference between above declaration & not specifying DCB at all for a output file?

1 Answers  


i have 10steps and i want run step3 and based on step3 i want execute step7,8,9,10?in jcl

1 Answers  


in ways data can be passed to a COBOL program from JCL?

0 Answers  






What is the purpose of disp parameter?

0 Answers  


How Can we see all generations of a GDG ?

3 Answers   Polaris,


How to run cobol program using jcl?

0 Answers  


How is a new GDG coded?

2 Answers  


i have job card like this //job ***** //step1 exec pgm=iebgener //sysut1 dd dsn=main.sss,disp=shr // dd dsn=main1.sss,disp=shr // dd dsn=main2.sss,disp=shr //sysut2 dd dsn=out1.mmm ,disp=(new,catlg,delete) dcb=( ) // sysin dd * like this what i have to do to skip dsn=main1.sss please giveme answer asap

2 Answers   IBM, TetraSoft,


What is 'S0C7' abend?

9 Answers  


whats the difference between empty and noempty of GDG?

4 Answers   Patni,


Categories