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

Trigger at Logoff Session


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Thu Apr 30, 2009 12:20 am
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: 400
Location: Mumbai

PostPosted: Thu Apr 30, 2009 12:28 am
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
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Sat May 02, 2009 8:15 pm
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

Global Moderator


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

PostPosted: Sat May 02, 2009 9:32 pm
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: 400
Location: Mumbai

PostPosted: Sun May 03, 2009 1:51 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts IBM Personal Communications session i... All Other Mainframe Topics 4
No new posts How to define transaction that trigge... CICS 3
No new posts insert into session tables with UR DB2 0
No new posts Trigger mainframe job , when file pla... All Other Mainframe Topics 2
No new posts trigger enter key automatically call ... CICS 17
Search our Forums:

Back to Top