Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

LOGON SCRIPT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: LOGON SCRIPT
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

Active Member


Joined: 07 Feb 2009
Posts: 982
Location: Oostende, Belgium

PostPosted: Fri Aug 19, 2011 11:51 am    Post subject: Re: LOGON SCRIPT
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    Post subject:
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

Site Director


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

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

Hello,

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

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

Global Moderator


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

PostPosted: Fri Aug 19, 2011 1:32 pm    Post subject:
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

Active Member


Joined: 07 Feb 2009
Posts: 982
Location: Oostende, Belgium

PostPosted: Fri Aug 19, 2011 1:37 pm    Post subject:
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    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7225

PostPosted: Fri Aug 19, 2011 2:32 pm    Post subject: Reply to: LOGON SCRIPT
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    Post subject:
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: 2422
Location: Netherlands, Amstelveen

PostPosted: Fri Aug 19, 2011 2:37 pm    Post subject:
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: 2422
Location: Netherlands, Amstelveen

PostPosted: Fri Aug 19, 2011 2:40 pm    Post subject:
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

Active Member


Joined: 07 Feb 2009
Posts: 982
Location: Oostende, Belgium

PostPosted: Fri Aug 19, 2011 2:48 pm    Post subject:
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    Post subject:
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    Post subject:
Reply with quote

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

Senior Member


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

PostPosted: Fri Aug 19, 2011 5:46 pm    Post subject: Reply to: LOGON SCRIPT
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7225

PostPosted: Fri Aug 19, 2011 6:04 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts TSO Logon Failing - Acount Not matching SLNewton TSO/ISPF 1 Thu Aug 25, 2016 9:37 pm
No new posts USS Shell script:Convert hex to binar... RSR2015 All Other Mainframe Topics 0 Fri Sep 18, 2015 2:00 am
No new posts Execution of Macro at Command Line on... RahulG31 TSO/ISPF 9 Mon Dec 22, 2014 7:47 pm
No new posts How to define TCTUA / USERAREALEN for... Alan Playford CICS 3 Wed Nov 26, 2014 3:30 pm
No new posts Last logon vs last use prino TSO/ISPF 15 Sun Nov 16, 2014 3:46 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us