How to execute a set of JCL statements from a COBOL program?
Answer Posted / 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 |
Post New Answer View All Answers
What is report-item in COBOL?
What is a scope terminator give example?
Write a cobol program making use of the redefine clause.
how can i see junk values in dclgen or in hostvariable of comp ?
Write the code implementing the perform … varying.
In COBOL, what is the different between index and subscript?
Explain how you can characterize tables in cobol?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
Which Search verb is equivalent to PERFORM…VARYING?
For rewrite, why is it mandatory that file needs to be opened?
Which is not true about evaluate statement
how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)
If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly
What is the difference between comp and comp-3 usage?