IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

REXX to logoff instanly without closing multiple ISPF sessio


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sangiah

New User


Joined: 10 Jun 2005
Posts: 62

PostPosted: Sat Jun 11, 2005 9:12 am
Reply with quote

Does anyone has REXX to logoff instanly without closing multiple ISPF sessions
Back to top
View user's profile Send private message
Ravi gaur

New User


Joined: 12 Jul 2005
Posts: 38

PostPosted: Thu Jul 21, 2005 8:37 am
Reply with quote

Can you Please provide complete information what exactly you do want?
ie from which panel?,, any specific application ?
Back to top
View user's profile Send private message
barobaybay

New User


Joined: 22 Jul 2005
Posts: 12
Location: Philippines

PostPosted: Fri Jul 22, 2005 1:56 pm
Reply with quote

I tried to scavenge around the mainframe for rexx programs, and i came across this inside the rexx code:

Code:
OPSCMD  C U=&SYSUID


therefore, it is also possible to just enter this in the command line:

Code:
tso OPSCMD  C U=&SYSUID


hope that helps for avoiding the need to close all your screens and typing =x many times icon_razz.gif [/code]
Back to top
View user's profile Send private message
Ayyappan

New User


Joined: 05 Jul 2005
Posts: 31
Location: India

PostPosted: Thu Jul 28, 2005 5:27 pm
Reply with quote

I am getting the following error message when i gave OPS.
"CURRENT MVS COMMAND NOT AUTHORIZED - REJECTED BY SECURITY RULE IBMSEC.SECAST"
Back to top
View user's profile Send private message
barobaybay

New User


Joined: 22 Jul 2005
Posts: 12
Location: Philippines

PostPosted: Tue Aug 02, 2005 9:12 am
Reply with quote

That message would be best addressed by your system administrator that defines which commands/programs you can run. the command that i suggested basically "kicks" yourself from a TSO session. your Sys admin may not want you to do that.
Back to top
View user's profile Send private message
yason_china

New User


Joined: 02 Aug 2005
Posts: 4
Location: Dalian city, China

PostPosted: Tue Aug 02, 2005 12:09 pm
Reply with quote

would you llke to explain how the rexx program:OPSCMD is manage in the system?
e.g I want to kown when I wirte a rexx program like OPSCMD, where i should put it into? need I edit&link the module? how the TSO execute them
Back to top
View user's profile Send private message
yason_china

New User


Joined: 02 Aug 2005
Posts: 4
Location: Dalian city, China

PostPosted: Tue Aug 02, 2005 12:11 pm
Reply with quote

would you llke to explain how the rexx program:OPSCMD is manage in the system?
e.g I want to kown when I wirte a rexx program like OPSCMD, where i should put it into? need I edit&link the module? how the TSO execute them
Back to top
View user's profile Send private message
yason_china

New User


Joined: 02 Aug 2005
Posts: 4
Location: Dalian city, China

PostPosted: Tue Aug 02, 2005 12:12 pm
Reply with quote

would you llke to explain how the rexx program:OPSCMD is manage in the system?
e.g I want to kown when I wirte a rexx program like OPSCMD, where i should put it into? need I edit&link the module? how the TSO execute them
Back to top
View user's profile Send private message
Ravi gaur

New User


Joined: 12 Jul 2005
Posts: 38

PostPosted: Tue Aug 02, 2005 12:29 pm
Reply with quote

Yason,

okay,, if i do understand your question rightly..

you can suppose use opscmd in rexx with the return code..suppose after one statement u put code like :-
if rc =8 then
opscmd c u=&sysuid

else

------
Back to top
View user's profile Send private message
barobaybay

New User


Joined: 22 Jul 2005
Posts: 12
Location: Philippines

PostPosted: Tue Aug 09, 2005 2:24 pm
Reply with quote

Code:

PROC 0                               
CONTROL NOFLUSH NOMSG NOLIST NOCAPS   
ISPEXEC CONTROL ERRORS RETURN         
UULOG BYEBYE                         
OPSCMD  C U=&SYSUID                   


that was all the code that's in the rexx program. icon_biggrin.gif we named the program "BYEBYE"
Back to top
View user's profile Send private message
rakesh pattanayak

New User


Joined: 29 May 2007
Posts: 16
Location: bangalore

PostPosted: Tue Jul 31, 2007 4:54 pm
Reply with quote

when i kept this code ina PDS

t6327rp.rexx.pds(byebye), and i executed this by giving command


tso ex 't6327rp.rexx.pds(byebye)'

its throwing error OPSCMD command not found.

what to do?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Jul 31, 2007 6:30 pm
Reply with quote

Hello,

Even if you find it, you may not have authorization to execute it.

Before trying more experiments, i's suggest you talk iwth your system sypport people and your security admin people to determine if it is available to you and where it is located.

Keep in mind that an ungraceful cancel may cause you problems because your sessions will not be "finishing up" whatever they were doing.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top