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 get the result of your program directly on your pc?
For rewrite, why is it mandatory that file needs to be opened?
input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.
Give some examples of command terminators?
Discuss about changing dataset name in proc.
What is the use of intialize verb?
how can i see junk values in dclgen or in hostvariable of comp ?
What is link edit in cobol?
What are the different types of condition in cobol and write their forms.
What rules are followed by the search verb.
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
i need a small 3d program using inline and outline.
What is comp-1 and comp-2?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
What rules are to be followed while using the corresponding options?