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
How do you reference the following file formats from cobol programs?
What are the different open modes available in cobol?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
) how do u code after getting data?
What is perform what is varying?
What are literals?
Explain the configuration section of a cobol program with examples of syntax.
Which Search verb is equivalent to PERFORM…VARYING?
What is the default value(s) for an initialize and what keyword allows for an override of the default?
Mention the guidelines to write a structured cobol program?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
what is the use of outrecord?
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...)
Write down the divisions of cobol program?
Define static linking and dynamic linking.