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 to point my proc to production dataset always though i keep jcllib order=development.dataset? Is it possible?
Explain about LMMLIST�list a library's members
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 ?
How to submit jcl through a cobol program?
How do you create a temporary dataset? Where will you use them?
can we bowse or edit the GDG dataset if it is a tape entry?
What is a GDG? How is it referenced? How is it defined? What is a MODELDSCB?
What is the use of DUMMY statement in the JCL? What is the use of DUMMY Utility in the JCL?
I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?
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.
Why block size is multiple of lrecl in jcl?