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 |
Why we us SYSTSIN DD with IKJEFT01 (TSO Utility) to execute a COBOL DB2 program? Why can't we use SYSIN DD?
How do You skip a Step In JCL?
List the different jcl statements that are not permitted in the procedures?
How is a new GDG coded?
How to delete AIX ? i) IEBGENER ii) IDCAMS iii) PURGE iv) All of the above
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?
What is NOTCAT 2
Explain about LMMLIST�list a library's members
What is DISP= (NEW,PASS,DELETE)?
Suppose I have seven jobs to do, but I want to hold one than how can I do this?
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?
what is DD statement is used in JCL?