|
|
| Author |
Message |
rsshanmugam
Active User
Joined: 08 Mar 2005 Posts: 53 Location: Chennai
|
|
|
|
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 |
|
 |
References
|
Posted: Tue Mar 08, 2005 7:32 pm Post subject: Re: cics-jcl(to run a jcl from cics region) |
 |
|
|
 |
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 |
|
 |
|
|