Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
How to Include CICS start/stop command in rexx program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
Author Message
gargi koley

New User


Joined: 11 Jan 2008
Posts: 10
Location: satyam gateway,hi-tech citi,hyderabad

PostPosted: Fri Sep 05, 2008 5:41 pm    Post subject: How to Include CICS start/stop command in rexx program
Reply with quote

hi all,

i have got the requirment of executing the command for cics start/stop thru REXX program.

the command that is executable from the spool looks like this

for CICS Start:
/START CICSB1

for CICS Stop:
/C CICSB1

we have included the commands in our rexxx program as follws:

"/START CICSB1"

"/C CICSB1"

while executing the program the errors is thrown in line where the command is getting executed with the RC(-3).

can any one tell me how can one include those commands in my program
Back to top
View user's profile Send private message
References
Moved: Fri Sep 05, 2008 5:48 pm by superk From TSO/ISPF to CLIST & REXX
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 3304
Location: Charlotte,NC USA

PostPosted: Fri Sep 05, 2008 5:51 pm    Post subject: Reply to: How to Include CICS start/stop command in rexx pro
Reply with quote

What sort of address space are you running this REXX exec in? Obviously CICS start/stop commands would not be usable in a TSO/E or ISPF address space. Is this exec running from a console automation environment (i.e. Netview, AutopOperator, OPS/MVS, Tivoli).
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 536
Location: work

PostPosted: Fri Sep 05, 2008 10:59 pm    Post subject: Reply to: How to Include CICS start/stop command in rexx pro
Reply with quote

You need to setup and use the CONSOLE command.

See appendix C of the TSO/E REXX Reference manual.
http://www-03.ibm.com/systems/z/os/zos/bkserv/r10pdf/#tsoe
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 3304
Location: Charlotte,NC USA

PostPosted: Fri Sep 05, 2008 11:20 pm    Post subject: Reply to: How to Include CICS start/stop command in rexx pro
Reply with quote

Pedro, would there be a preference of using the CONSOLE command instead of the normal interface (i.e. SDSF, Sysview, or IOF)? My experience has been that normally CONSOLE is off-limits to the casual user, at least not without some audit controls.
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 536
Location: work

PostPosted: Sat Sep 06, 2008 1:25 am    Post subject: Reply to: How to Include CICS start/stop command in rexx pro
Reply with quote

CONSOLE is typically off limits to the normal user. But so should issuing operator commands from SDSF (most other features of SDSF should be free to use).

And commands, to start and stop CICS, in themselves, should be limited to authorized personnel. If the poster's job requires him to issue console commands, then the right permissions should be given. Get the right permissions instead of doing things which seemingly bypass controls.

My normal tack is to do whatever works... if you -have- to, use SDSF. But the first choice should be the most direct option. The poster needs to issue operator commands, so use CONSOLE and the GETMSG() function.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1