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
 

 

Trigger at Logoff Session

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
jsathishbabu84

New User


Joined: 07 Jun 2007
Posts: 22
Location: India

PostPosted: Wed Apr 29, 2009 11:47 pm    Post subject: Trigger at Logoff Session
Reply with quote

Hi,

Is there anyway to trigger a rexx routine or JCL during mainframe logoff

Thanks,
SJ
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Thu Apr 30, 2009 12:20 am    Post subject: Reply to: Trigger at Logoff Session
Reply with quote

You could have automation fire a rule for the $HASP395 message when that TSO session ends.
Back to top
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 401
Location: Mumbai

PostPosted: Thu Apr 30, 2009 12:28 am    Post subject: Reply to: Trigger at Logoff Session
Reply with quote

If you are running a logon clist or rexx that automatically logs you off after you exit ISPF then that clist/rexx can be changed to do anything you want between the time you exit ISPF and actually logoff. If not, write your own logon clist or rexx and run it from the logon screen.
Back to top
View user's profile Send private message
jsathishbabu84

New User


Joined: 07 Jun 2007
Posts: 22
Location: India

PostPosted: Sat May 02, 2009 1:43 pm    Post subject:
Reply with quote

Hi,

I have a logon Clist but can that be used for logoff too. If so, is there any command to recognize the logoff...

Thanks,
SJ
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7935
Location: Bellevue, IA

PostPosted: Sat May 02, 2009 8:15 pm    Post subject:
Reply with quote

There may be a TSO exit that can be invoked at logoff time -- I haven't looked into it so I don't know for sure. If so, and if you can convince your site support group to enable that exit, you could use it to trigger your logoff routine. However, it would be effective for everybody using TSO at your site. So you'd probably have to have an extremely good reason to have this implemented.
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2025
Location: Silicon Valley

PostPosted: Sat May 02, 2009 9:32 pm    Post subject: Reply to: Trigger at Logoff Session
Reply with quote

Quote:
However, it would be effective for everybody using TSO at your site.

It has been many years, but I think you can put some exits in a steplib dataset. That is, it might only affect the people using the same logon proc... easier to request from the system support.

You might also try putting your exit in a TSOLIB allocated dataset. If you try, let us know the result.
Back to top
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 401
Location: Mumbai

PostPosted: Sun May 03, 2009 1:51 pm    Post subject: Reply to: Trigger at Logoff Session
Reply with quote

The point about the logon clist is that if you start ISPF from the logon clist, then when you exit ISPF, the logon clist will still be running, so just put the commands in there. To be sure it will still be active after abends, start the clist with a CONTROL MAIN command. For example, a login clist like this would do it. I haven't used a login clist like this in years but the basic idea works
Code:

PROC 0
CONTROL MAIN NOFLUSH
ALLOC .... /* whatever you need to do before starting ISPF
ISPF
EX 'SOME.CLIST(LOGOFF1)' /* do whatever you want before logoff
LOGOFF /*force user off
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 -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. session stuck in TPX with status ACL amitc23 CA Products 1 Tue Dec 13, 2016 12:53 pm
No new posts How to track incoming input files tha... shreya19 JCL & VSAM 6 Thu Feb 25, 2016 6:15 pm
No new posts Issue in trigger vickey_dw DB2 3 Wed Feb 10, 2016 5:41 pm
No new posts Trigger a mainframe job by mail Praveen Thenraj IBM Tools 8 Wed Jan 13, 2016 12:05 pm
No new posts Setting up a new trigger krisprems DB2 4 Thu Dec 24, 2015 10:33 pm


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