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

JCL to cancel any TSO Session


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
partha11

New User


Joined: 06 Jun 2005
Posts: 4

PostPosted: Mon May 21, 2007 12:55 pm
Reply with quote

Hi, Anybody can provide me a JCL that can cancel any TSO Session?
suppose my TSo ID is abc12345 and I want to cancel any ID like abc99999 or abc00001 etc.

i want the jcl to work in any mainframe.

partha
Back to top
View user's profile Send private message
acevedo

Active User


Joined: 11 May 2005
Posts: 344
Location: Spain

PostPosted: Mon May 21, 2007 2:09 pm
Reply with quote

Code:

//CANCELSE  JOB 'CANCEL SESION',MSGCLASS=V,TYPRUN=SCAN     
// COMMAND 'RO YOURSISTEM,C U=YOURUSERID'                 
//IEFBR14  EXEC PGM=IEFBR14                               
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 May 22, 2007 5:15 am
Reply with quote

Hello,

That jcl will not work in any mainframe - miny mainfrfames do not allow programers to submit any console commands via jcl.

Mainframes that are properly administered would flush the job and/or alert the security administrators..

If you believe it is proper for you to cancel various users, you need to talk with your system support and security administration people and they will provide you with a solution for your site.
Back to top
View user's profile Send private message
acevedo

Active User


Joined: 11 May 2005
Posts: 344
Location: Spain

PostPosted: Wed May 23, 2007 11:33 am
Reply with quote

That jcl will not work in any mainframe - miny mainfrfames do not allow programers to submit any console commands via jcl.

I carry that code to every shop... and, until now, have run in every of them.



Mainframes that are properly administered would flush the job and/or alert the security administrators..

just found this situtation in one shop... so I got the job running from CICS (spool)



If you believe it is proper for you to cancel various users, you need to talk with your system support and security administration people and they will provide you with a solution for your site.

totally agree with that, above all if you're not a systemer.

;)
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts JCL JOB Cancel/Purge Not Working JCL & VSAM 6
No new posts IBM Personal Communications session i... All Other Mainframe Topics 4
No new posts insert into session tables with UR DB2 0
No new posts Creating ISPF Screens with Scrname vi... TSO/ISPF 10
No new posts Display FTP Session Count within TSO TSO/ISPF 3
Search our Forums:

Back to Top