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 the Purpose of Pointer in the string?
How you can read the file from bottom?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
How many sections are there in data division in COBOL?
i need a small 3d program using inline and outline.
What are the different rules for performing sort operation?
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
How are the next sentence and continue different from each other?
How do u write test cases?
How do we get current date from system with century in COBOL?
What is redefines clause in COBOL?
Discuss about changing dataset name in proc.
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
Why did you choose to work with ibm mainframe cobol programming?
) how do u code after getting data?