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

LOGON SCRIPT


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

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Fri Aug 19, 2011 11:38 am
Reply with quote

Hi,

I have a requirement where i need to run a rexx scripts as soon as i logon to my tso session. These scripts should get kicked off automatically i logon to the tso session.

Can you please let me know how to do this?
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1315
Location: Vilnius, Lithuania

PostPosted: Fri Aug 19, 2011 11:51 am
Reply with quote

gylbharat wrote:
I have a requirement where i need to run a rexx scripts as soon as i logon to my tso session.


And what is the requirement? To wish you a good day? Sheesh, you're the second person in as many days to come up with this nonsense, so same advice:

Go back to your Winblows world (where you can run whatever you want after starting the system).

Mainframes are used for real work, and real work comes with rules. One of them is not to tinker with systems for your own pleasure.
Back to top
View user's profile Send private message
gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Fri Aug 19, 2011 12:27 pm
Reply with quote

This is not to wish the user...

I have to allocate some libraries and run some jobs.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Fri Aug 19, 2011 12:30 pm
Reply with quote

Hello,

Who decided this was a requirement? What business reason might there be to do this?

See my reply here:
ibmmainframes.com/viewtopic.php?t=55742
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Fri Aug 19, 2011 1:32 pm
Reply with quote

You could use the TSO logon panel to enter the command to be executed.
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1315
Location: Vilnius, Lithuania

PostPosted: Fri Aug 19, 2011 1:37 pm
Reply with quote

PeterHolland wrote:
You could use the TSO logon panel to enter the command to be executed.

This is useless at most sites, as the command will only be executed after the site-specific clist/exec (that usually starts ISPF) has finished. In many cases this clist/exec will actually log you off, or if not, drop you back at the READY prompt.
Back to top
View user's profile Send private message
gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Fri Aug 19, 2011 2:29 pm
Reply with quote

Well.... Every week I am supposed to submit some jobs for the reporting... and I wanted to know is there any way to automate it? except scheduling ....

I want a rexx or clist to check if today is Monday then submit the job automatically. when i logon to my tso session on Monday.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri Aug 19, 2011 2:32 pm
Reply with quote

Do you only log-on once on Mondays?
Back to top
View user's profile Send private message
gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Fri Aug 19, 2011 2:36 pm
Reply with quote

No.... It can be multiple times... as session gets expired... So can't i make use of Global variables to make sure the job execute only once?
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Fri Aug 19, 2011 2:37 pm
Reply with quote

gylbharat wrote:
Well.... Every week I am supposed to submit some jobs for the reporting... and I wanted to know is there any way to automate it? except scheduling ....

I want a rexx or clist to check if today is Monday then submit the job automatically. when i logon to my tso session on Monday.


How about a scheduler?
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Fri Aug 19, 2011 2:40 pm
Reply with quote

prino wrote:
PeterHolland wrote:
You could use the TSO logon panel to enter the command to be executed.

This is useless at most sites, as the command will only be executed after the site-specific clist/exec (that usually starts ISPF) has finished. In many cases this clist/exec will actually log you off, or if not, drop you back at the READY prompt.


Sure,

where i worked i could do almost anything with logon procedures/commands. But then i was one of those special
users (maybe the TS is too).
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1315
Location: Vilnius, Lithuania

PostPosted: Fri Aug 19, 2011 2:48 pm
Reply with quote

PeterHolland wrote:
... But then i was one of those special
users (maybe the TS is too).

He is special, but I think we both know what kind of special... icon_lol.gif
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Fri Aug 19, 2011 3:27 pm
Reply with quote

gylbharat,

I posted some articles about tso here.
though some are old,
the info is still current,
and there are a lot of links to manuals,

where you could learn a little about what you are being required todo.
Back to top
View user's profile Send private message
gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Fri Aug 19, 2011 5:13 pm
Reply with quote

Thanks Dick...
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Fri Aug 19, 2011 5:46 pm
Reply with quote

Our system allows for user customization of the logon. The system logon exec looks for '&user.logon(setup)' and if there, executes it. Perhaps your system has something similar. Ask your system support.

And if you could do that... here is a crude example:
Code:
/* rexx */                             
say 'starting FRSTTIME'               
if date('w') \= 'Monday' then Exit     
if time('H') > 9         then Exit     
Address TSO 'SUBMIT JCL.CNTL(winblows)'
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri Aug 19, 2011 6:04 pm
Reply with quote

gylbharat,

Just be careful of the chance of accidental submission. If you are on support, you don't want to arrive at 00:01, start the log-on to TSO, go and get a cup of coffee, and find the reports submitted by the time you get back (or, maybe you do?). You could have one of those "Do you really mean to do this?" questions. Starts to get a bit tedious.

Remember, someone also has to do this when you are off ill/on holiday/found a better job.

To be honest, I'd probably just stick a piece of paper in my keyboad saying "don't forget those fine reports for Monday".
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 Execute REXX on logon with ISPF CLIST & REXX 3
No new posts Embeding DB2 sql statements in scirpt... DB2 7
No new posts OMVS Shell Script not working properly. All Other Mainframe Topics 1
No new posts Alter User LOGON Script Parameters CLIST & REXX 11
No new posts REXX script to beautify XML CLIST & REXX 1
Search our Forums:

Back to Top