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 |
what is full form of AIX
I have a File that has duplicate records. I need only those records that occur more than thrice.
how many max steps can we use in a job? pls answer to my question
What it does If we specify TYPRUN=P & it is not substituted by SCAN 0r HOLD in VALUE SET.
Is automatic restart possible in jcl?
01 GROUP-ITEM 05 AMOUNT-1 PIC 99V9 USAGE COMP VALUE 50 05 AMOUNT-2 PIC 9(4)V99 USAGE COMP MOVE ZERO TO GROUP-ITEM ADD 50 TO AMOUNT-1 what will be the content of AMOUNT-1? a.50 b.100 c.0 d.unpredictable
please could u tell me the difference between SORT, SYNCSORT,CA-SORT, DFSORT,
what is “Cond= even” and “Cond=only”?
what is the difference between return code and maxcc?
What does IEBGENER do?
What is DSNDB06 ?
Explain about ISPF/TSO Commands