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 are the different types of condition in cobol and write their forms.
How do you reference the fixed block file formats from cobol programs
How do define dynamic array in cobol.
State the various causes of s0c1, s0c5 and s0c7.
How can you get the ksds file records into your cobol program?
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
What the difference is between continue and next sentence?
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
What kind of error is trapped by on size error option?
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue
What is the LINKAGE SECTION used in COBOL?
how do you reference the printer file formats from cobol programs
how to refer the data field?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?