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

Keep mainframe session from not being logged off


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

New User


Joined: 07 Aug 2007
Posts: 20
Location: chennai

PostPosted: Wed Aug 08, 2007 6:42 pm
Reply with quote

hi all,

Is there a way to keep my mainframe session from not being logged off.
I know few of my friends use certain tso command. It is not working on my system . Pls help !
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Wed Aug 08, 2007 8:24 pm
Reply with quote

sgiri wrote:
hi all,

Is there a way to keep my mainframe session from not being logged off.
I know few of my friends use certain tso command. It is not working on my system . Pls help !


That would be system dependent. Stay busy and you won't be logged off as inactive.
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: Thu Aug 09, 2007 12:13 am
Reply with quote

Hello,

Is there some reason you should remain logged on when you are not using the system?

If there is a valid reason, have your manager talk with the security or support people and have your timeout changed. Most places do not feel there is a compelling reason to allow an idle session to "just sit there" indefinitely.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Aug 09, 2007 12:16 am
Reply with quote

it is sorta like giving security to people who don't realize they need the protection.

if your session always stays active, that mean someone else can use your session when you leave your desk.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Thu Aug 09, 2007 2:43 am
Reply with quote

dbzTHEdinosauer wrote:
if your session always stays active, that mean someone else can use your session when you leave your desk.
That's what the three finger salute is for...
Those <blank> security people.......
I generally go to the SDSF ST screen and enter &120, which redisplays the screen every 120 seconds.....it taks a couple of PA1s or PA2s (mine is two shift-escapes) to stop it.....
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Nov 06, 2007 9:41 pm
Reply with quote

Hi,

I've got a similar requirement but bit strange. One of the client is asking, 'why the session is expired after these many seconds/minute, where it's defined, justify'...grin..!

Can anyone here please direct me to find some solutions, I've searched the Forum but in vain, may be I didn't use right 'key-words'.


CG,

I tried your suggestion (&120), but didn't get any result. I write '&120' on the 'command prompt' & pressed enter, is it what you have suggested or I've done something wrong, please suggest.
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Wed Nov 07, 2007 12:06 am
Reply with quote

I think it is proper to want to keep TSO from logging you off.

I may be positioned on up to 8 TSO screens, and if I'm called away (physically or to another application, or just on the phone) on another task, repositioning myself will be very time consuming.

By preventing the logoff using the &120 (refresh every 120 seconds) on the ST screen, I hold my place.

I can lock my terminal for security reasons via ctl-alt-del, so that's taken care of.

If this hogs resources others need at my installation, then I do have a responsibility not to do this when unnecessary, but that should go without saying in any professional organization.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Wed Nov 07, 2007 12:30 am
Reply with quote

Anuj D. wrote:
I tried your suggestion (&120), but didn't get any result. I write '&120' on the 'command prompt' & pressed enter, is it what you have suggested or I've done something wrong, please suggest.
I don't know, when I type it...
Code:
  Display  Filter  View  Print  Options
---------------------------------------
SDSF OUTPUT DISPLAY CICSPNAT STC08132 
COMMAND INPUT ===> &120                   
and hit enter, this is what I see...
Code:
COMMAND INPUT ===> **** AUTO UPDATE - 120 SECONDS ****     
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: Wed Nov 07, 2007 12:42 am
Reply with quote

Hello,

I believe that the requirement to be in sdsf has not been completely understood. It won't work from just anywhere in tso/ispf.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Mon Nov 12, 2007 12:41 am
Reply with quote

Hi Phil,

I set up 4 PF keys that get me going 123. OK maybe 1234.
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Mon Nov 12, 2007 8:13 pm
Reply with quote

I'm not sure what you mean Jack.

I set up Shift-F6 = &123, but I think you're talking about something else.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Tue Nov 13, 2007 2:54 am
Reply with quote

Sorry Phil,

Just a joke that bombed.

Here's the PF keys I use:
Code:
 *********************************************************************   
***************  USE TO FIRE UP 8 ISPF WINDOWS AFTER    *************   
***************  ISPF STARTUP                           *************   
*********************************************************************
Prep - on cmd line enter "keylist off", then enter 0
       Click on "Identifier"; press enter; select 3 (screen name)
       Then enter "keys" on cmd line and cut & paste lines below into
       KEYS slots. Use keys 13 thru 16.  C&P the next 2 into PF17&18
*********************************************************************     
SCRNAME SDSF1 PERM;SPLIT NEW;SCRNAME COMPILE PERM                       
SPLIT NEW;SCRNAME JOBJCL PERM;SPLIT NEW;SCRNAME PGMSRC PERM;           
SPLIT NEW;SCRNAME CPYBKS PERM;SPLIT NEW;SCRNAME MISC1 PERM             
SPLIT NEW;SCRNAME MISC2 PERM;SPLIT NEW;SCRNAME MISC3 PERM;;;           
*********************************************************************   
***************        USE TO FIRE UP A NEW WINDOW      *************   
*********************************************************************   
SPLIT NEW;SCRNAME                                                       
*********************************************************************   
***************      USE TO LIST ALL ACTIVE WINDOWS     *************   
*********************************************************************   
SWAP LIST

When you've got the keys set up exit SPF gracefully (logoff, etc.). Then come back in and hit PF keys 13 thru 16.
Back to top
View user's profile Send private message
Sameer Srivastava
Warnings : 1

New User


Joined: 28 Dec 2006
Posts: 4
Location: Chennai

PostPosted: Tue Nov 13, 2007 9:44 pm
Reply with quote

Hi,

Simple way to prevent your session from logging off:

Put Paper weight or stick tape, on any of the Arrow key and leave icon_lol.gif .

Till the time the key is getting pressed, the session won't logoff.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Nov 20, 2007 2:07 pm
Reply with quote

Well, enough discussion after I've started this thread..but only single suggestion & that's again not meeting my requirement..it disappionts me. icon_cry.gif

Quote:
"the session is expired after these many seconds/minute, where it's defined, justify'...


By the way instead of this crap
Quote:
Put Paper weight or stick tape, on any of the Arrow key and leave .

There are some better solutions to this. Not to allow the session being logged off, I use following macro under ISPF:
Code:
:loop
wait 3000 sec
[enter]
goto loop


This is a simple macro written by me (you know copy-righted mateial icon_smile.gif )
it makes the session feel as if "enter" key is pressed after every 3000 seconds & this'll save your tapes as well.

Bottom line is this, I know how to prevent my session being logged-off but where in the system it's written that session should be logged-off if left idle for so many seconds?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Nov 20, 2007 2:17 pm
Reply with quote

STRONG DISAGREEMENT ON THE WHOLE THREAD...

IF A SITE HAS THE POLICY OF LOGGING OFF A TERMINAL SESSION AFTER AN INACTIVITY PERIOD
THE ETHICS WOULD DICTATE NOT TO GIVE IN A FORUM ANY SUGGESTIONS ON HOW TO VIOLATE THE RULES


AND ... YES I AM SHOUTING
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Tue Nov 20, 2007 7:07 pm
Reply with quote

Good point, but there are sometimes exceptions.

Sorry this was so small - I was reading the screen thru inverted binoculars.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Nov 20, 2007 7:23 pm
Reply with quote

the large characters were a joke...

sometimes I am puzzled by the carelessness of people posting suggestions..

a forced logoff due to inactivity,
apart performance/usability issues - enqueues on datasets for example,
is normally a security related issue...
leaving a terminal unattended with sensitive data was/is considered
in many places I knew a breach of security practices
and a could be a lawful reason for termination,

That' s why I will not stop recommending, when answering,
not only to consider the technical issues, but also the organizational ones
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Tue Nov 20, 2007 9:40 pm
Reply with quote

As I mentioned earlier, on a Windows session, even though my m/f screen may be open, I've locked my computer screen via ctl-alt-del-LOCK COMPUTER - so that is a non-issue.

I do agree in general with your position however.

The small font was also a joke!
Back to top
View user's profile Send private message
Gursharan Khalsa

New User


Joined: 04 Sep 2007
Posts: 33
Location: Salinas

PostPosted: Fri Jan 25, 2008 3:52 pm
Reply with quote

Hi All,
&120 thing works,,, but i m not able to get out of this.When i press Shift+Escape twice i again get back to screen "**** AUTO UPDATE - 120 SECONDS **** .Can anyone tell me how to get out of it???

Thanx

Anuj,

Can u tell where to write the macro :loop
wait 3000 sec
[enter]
goto loop

Thanx
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Fri Jan 25, 2008 7:01 pm
Reply with quote

Try setting one of your keys to the ATTN setting. I do this via the EXTRA! emulator - settings - keyboard maps. I suppose other emulators can do this as well.

I hit ATTN to jump out to a sessions menu, then ATTN again to jump back into my ISPF session, now unlocked.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Jan 29, 2008 4:30 pm
Reply with quote

Phrzby Phil wrote:
I suppose other emulators can do this as well.
Yeah true, I use Personal Communication's Key Board map feacture for this.


Quote:
Can u tell where to write the macro
Emulators are meant for Windows Environment, so these type of macros shoud be written in editors of this OS..& that ios notepad.
In nutshell..

1. Write macro in a Notepad & paste it to the folder from where your emulator calls the other macro. In Personal communication this path is (usually) Drive name:\Personal Communications\private

OR

2. Record a macro using proper option of Your emulator (from here I cann't tell You what is 'proper option' for you unless You use personal communication.)
Back to top
View user's profile Send private message
Anurag Singh

New User


Joined: 20 Jan 2008
Posts: 25
Location: India

PostPosted: Mon Feb 04, 2008 9:46 pm
Reply with quote

Hi Anuj,

whether we can display a text message while this Macro is running ,
(i.e. When the Macro is running on the screen in Command Line "Refresh is On" should display)

I tried to modify the Macro with Settext("Refresh",02,015) , but it didnt work ,

Have you any idea regarding this , how we can display the message.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Feb 04, 2008 11:12 pm
Reply with quote

Code:
[home]"Refresh is On"
:loop
wait 3000 sec
[enter]
goto loop
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Feb 04, 2008 11:27 pm
Reply with quote

Hi,

I'm not in office just now, didn't check the code. However, it should work.. still I'll check it tomorrow.
Back to top
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 677
Location: NJ

PostPosted: Tue Feb 05, 2008 10:01 am
Reply with quote

Can you please tell me where should i need to type this macro???
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 Goto page 1, 2  Next

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 2
No new posts Mainframe openings in Techmahnidra fo... Mainframe Jobs 0
No new posts Mainframe Programmer with CICS Skill... Mainframe Jobs 0
No new posts How to Reformat a file using File Man... All Other Mainframe Topics 14
No new posts NDM getting stuck - mainframe/JCL All Other Mainframe Topics 13
Search our Forums:

Back to Top