How do you submit JCL via a Cobol program?
Answer Posted / guest
In your JCL define as //JOBA JOB 1111, JOB1 //STEP01 EXEC
PGM=PROG1 //ddname DD SYSOUT=(*,INTRDR)....and your
COBOL(PROG should look like this SELECT JCL-FILE ASSIGN TO
ddname. Open this file and write the JCL statements into
this file. E.g. MOVE '//TESTJOB JOB 1111,VISVEISH' TO
JCL-REC.MOVE '//STEP01 EXEC PGM=IEFBR14' TO JCL- REC and
close this file. Then TESTJOB will be submitted.
| Is This Answer Correct ? | 14 Yes | 0 No |
Post New Answer View All Answers
In sms datasets, what is the function of the dd mgmtclas keyword?
hello friends ,i have exam in Hsbc,pls any on send me placement papers and technical questions on mainframes,thank u
Is their any limit for data sets?
How can unused space allocation be returned to the system when a dataset is closed?
What is the significance of addrspc parameter in exec statement?
what is use of space parameter in dd statement?
what operation is performed by job statement?
What is the purpose of the dd keylen parameter?
We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?
what is DD statement is used in JCL?
How to resolve the error "WER488A JOIN CAPACITY EXCEEDED" I am using SYNCSORT with JOINKEYS to compare 2 files. I am Getting error - > WER488A JOIN CAPACITY EXCEEDED There are 2 files to be compared with about 2 million records each. LRECL is 3665. Can somebody give a pointer as to how to resolve this problem? I am using SYNCSORT with JOINKEYS to compare 2 files. I am Getting error - > WER488A JOIN CAPACITY EXCEEDED There are 2 files to be compared with about 2 million records each. LRECL is 3665. Can somebody give a pointer as to how to resolve this problem?
what is DSN in JCL and what are the parameters to declare the DSN?
What is Cataloged Procedures?
what JCL Procedures?
a dd statement has 2 types of parameters. Name them?