View previous topic :: View next topic
|
Author |
Message |
rsshanmugam
New User
Joined: 08 Mar 2005 Posts: 62 Location: Basildon
|
|
|
|
how to run/initiate a jcl from cics region.
i read ibm redbooks it says u can do i using spool commands but i tried it is not working, can anyone please help me in this regard. |
|
Back to top |
|
|
jayapriya
New User
Joined: 09 Mar 2005 Posts: 1
|
|
|
|
Pass all the JCL codes to a COBOL variable (should be declare using OCCURS clause) and the write the line one by one to the spool using CICS commands like SPOOLClose SPOOLOpen SPOOLWrite .
for example,
:arrow: [b]EXEC CICS SPOOL WRITE(var-name) END-EXEC.[/b]
var-name is a COBOL host structure containing JCL statements. |
|
Back to top |
|
|
|