Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

REXX to logoff instanly without closing multiple ISPF sessio

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: REXX to logoff instanly without closing multiple ISPF sessio
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    Post subject: Re: REXX to logoff instanly without closing multiple ISPF se
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    Post subject: REXX to logoff instanly without closing multiple ISPF se
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    Post subject: Re: REXX to logoff instanly without closing multiple ISPF se
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    Post subject: Re: REXX to logoff instanly without closing multiple ISPF se
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    Post subject:
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    Post subject:
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    Post subject: 1
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    Post subject:
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    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Tue Jul 31, 2007 6:30 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts Changeman get multiple "Browse C... elixir1986 Compuware & Other Tools 4 Fri Jul 14, 2017 1:48 am
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts How system know which REXX to excute? jackzhang75 CLIST & REXX 14 Thu Jul 06, 2017 1:09 am
No new posts REXX - Dynamic file Creation d_sarlie CLIST & REXX 7 Tue Jun 27, 2017 7:30 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us