View previous topic :: View next topic
|
Author |
Message |
sangiah
New User
Joined: 10 Jun 2005 Posts: 62
|
|
|
|
Does anyone has REXX to logoff instanly without closing multiple ISPF sessions |
|
Back to top |
|
|
Ravi gaur
New User
Joined: 12 Jul 2005 Posts: 38
|
|
|
|
Can you Please provide complete information what exactly you do want?
ie from which panel?,, any specific application ? |
|
Back to top |
|
|
barobaybay
New User
Joined: 22 Jul 2005 Posts: 12 Location: Philippines
|
|
|
|
I tried to scavenge around the mainframe for rexx programs, and i came across this inside the rexx code:
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 [/code] |
|
Back to top |
|
|
Ayyappan
New User
Joined: 05 Jul 2005 Posts: 31 Location: India
|
|
|
|
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 |
|
|
barobaybay
New User
Joined: 22 Jul 2005 Posts: 12 Location: Philippines
|
|
|
|
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 |
|
|
yason_china
New User
Joined: 02 Aug 2005 Posts: 4 Location: Dalian city, China
|
|
|
|
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 |
|
|
yason_china
New User
Joined: 02 Aug 2005 Posts: 4 Location: Dalian city, China
|
|
|
|
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 |
|
|
yason_china
New User
Joined: 02 Aug 2005 Posts: 4 Location: Dalian city, China
|
|
|
|
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 |
|
|
Ravi gaur
New User
Joined: 12 Jul 2005 Posts: 38
|
|
|
|
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 |
|
|
barobaybay
New User
Joined: 22 Jul 2005 Posts: 12 Location: Philippines
|
|
|
|
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. we named the program "BYEBYE" |
|
Back to top |
|
|
rakesh pattanayak
New User
Joined: 29 May 2007 Posts: 16 Location: bangalore
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|