Saturday, May 21, 2011

How to keep your mainframes session always active?

The question raised by many freshers and new joiners in a organization who work in mainframes. All freshers and new joiners in a organization get the mainframe ID's from their colleagues and start doing their work. When they keep their session idle for sometime, their session get locked and they need to provide password to unlock. You can ask one or two times to the password owner to type his password in your system, but what if its goes beyond that, don't you feel little bad to ask. I got the solution to avoid such a feeling and it is pretty simple.




In the command input in your spool, just type &(seconds). Example: &60 (i.e) Your session will get auto updated for every 60 seconds(1 minute). Hence, your session will not get locked.

Summary:

From the start screen:
i. type s.st
ii. &seconds

But the real use of this option is to update your spool and to know whether the job execution is over or not. But no where it is written that we need to use this option only for this purpose.

4 comments:

  1. if i use this option in cdev then i cannot use any other screens in cdev. I have to press the Attn key and start using some other Dev like DDev.
    is there a way around fa this like i could swap screens after giving &60 in s.st ?

    ReplyDelete
  2. Hi vivek... I like to thank you for reading our articles and posting comments...

    Let me tell the purpose of this &seconds command first...

    i) A job involving huge amount of data take long time to run(i.e) might be a day or more than a day...

    for which you need not keep on checking whether the job has ended or not... it will be boring to check manually whether the job has ended or not...

    the use of this option is to refresh the spool... and to know whether the job has completed or not..

    ii)for new users, they would have not got their id's .. they would have got the id's and password from some others and will be using it.. if they go for a break, the mainframe session tends to get lock and requires authentication... just to keep the session active.. we can use this option...

    Now answering your question, you cannot swap screens when this option is in force...

    Hope this would have helped you!!

    ReplyDelete
    Replies
    1. I am using EJES spool. There &(time) wont work so after a long search i have found 'REFRESH' is the command to hold the screen. but to come out of it i have used several combinations of KEYS nothing working. Can you please let me know how to come out from auto refresh in EJES? I have tried SHIFT+ESC, ALT+A, ALT+SHIFT+ESC, ALT+ESC, CNTL+SHIFT+A.

      Delete
  3. Hi Goldking ,
    Thanks for the reply..
    So once i give &s command in b.s.st
    then after that longer job has completed
    i have to manually purge that session and start a new session right .. ?
    What i m trying to know is If its possible to reuse the session in which i gave &S command or not .. ?

    ReplyDelete