How do you submit JCL via a Cobol program?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
How can we execute only one step in a job
22 Answers MAHINDRA, Mind Tree, Tech Mahindra,
What is the function of the dd mgmtclas keyword in sms datasets?
What are the basic JCL Statements for a Job?
How can a jobs execution priority be modified?
Write a jcl to execute a job by 7 a.m on Jan 20,1986 ?
How to run cobol program using jcl?
shall we concordinate two different length dataset in to a new date set.
How is a dataset passed from one step to another?
difference between internal sort and external sort
how to concatenate datasets
wht happens if blksize = 0 and lrec = 0 ?
What is the difference between primary and secondary allocations for a dataset?