How to execute a set of JCL statements from a COBOL program?
Answers were Sorted based on User's Feedback
Answer / vishal
we can declare a record in file section and can pass the
statementa to that record as shown..
E.D
fole_control.
select jclfile assign to jcldd
file section.
fd jclfile
01 jcl_record pic x(80).
P.D.
mainpara.
open output jcl_record
move "//job job1, notify=&sysuid" to jcl_record.
move "//step1 exec pgm=pgm1" to jcl_record.
.......
.......
close jcl_record.
then route the file to internal reader INTRDR in jcl
as shown..
//step1 exec pgm=pgm1
//dd3 dd dsn.......
//jcldd dd sysout=(*,INTRDR)
(here the job will get submitted automatically FROM COBOL)
| Is This Answer Correct ? | 7 Yes | 2 No |
Answer / anoop
You can execute JCL from cobol programs.
Write the jcl statements into a file and open it in out put
mode.
| Is This Answer Correct ? | 8 Yes | 12 No |
how can i see junk values in dclgen or in hostvariable of comp ?
example for sub strings ? and refernce modifications whit output pls
0 Answers College School Exams Tests, IBM,
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
waht is inspect verb? where it can be in real time?
describe 805 error
How do define Dymanic array in cobol how do u define single demensional arry and multidymensional arry in ur cobol.
What is level 66 used for ?
COMP field occupy ?
How do pass the values to the parameters in cobol
what happens if we dont close cursor in db2-cobol pgm?
if a file has 1000 recods how copy the records from 1 to 100 records using sort
how to display the dataset information?