View previous topic :: View next topic
|
Author |
Message |
gylbharat
Active Member
Joined: 31 Jul 2009 Posts: 565 Location: Bangalore
|
|
|
|
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 |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1315 Location: Vilnius, Lithuania
|
|
|
|
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 |
|
|
gylbharat
Active Member
Joined: 31 Jul 2009 Posts: 565 Location: Bangalore
|
|
|
|
This is not to wish the user...
I have to allocate some libraries and run some jobs. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
You could use the TSO logon panel to enter the command to be executed. |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1315 Location: Vilnius, Lithuania
|
|
|
|
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 |
|
|
gylbharat
Active Member
Joined: 31 Jul 2009 Posts: 565 Location: Bangalore
|
|
|
|
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 |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Do you only log-on once on Mondays? |
|
Back to top |
|
|
gylbharat
Active Member
Joined: 31 Jul 2009 Posts: 565 Location: Bangalore
|
|
|
|
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 |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
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 |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
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 |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1315 Location: Vilnius, Lithuania
|
|
|
|
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... |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
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 |
|
|
gylbharat
Active Member
Joined: 31 Jul 2009 Posts: 565 Location: Bangalore
|
|
|
|
Thanks Dick... |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2593 Location: Silicon Valley
|
|
|
|
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 |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|