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

How to execute a TSO command when I logon the TSO region?


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
cser_oxygen

New User


Joined: 25 Oct 2006
Posts: 33

PostPosted: Tue Jan 08, 2008 1:26 pm
Reply with quote

I 'd like to execute a TSO command automatically when I logon the TSO region, I can run some program in LOGONCMD by CLIST, can I run a TSO command as well??
Back to top
View user's profile Send private message
muhammad

New User


Joined: 25 Oct 2007
Posts: 19
Location: hyderabad

PostPosted: Tue Jan 08, 2008 2:28 pm
Reply with quote

Yes u can run tso commands on the main TSO region also! eg:- TSO SCAN etc...
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2359
Location: Israel

PostPosted: Tue Jan 08, 2008 2:32 pm
Reply with quote

Add you commands to a CLIST/REXX, and invoke it as part of your logon procedure.


muhammad - As far as I know, SCAN is not a TSO command.

O.
Back to top
View user's profile Send private message
cser_oxygen

New User


Joined: 25 Oct 2006
Posts: 33

PostPosted: Tue Jan 08, 2008 3:06 pm
Reply with quote

Muhammad, I am looking for an automatic way. Thanks anyway.

Hi O,

Follwing is from my logon procedure in ******.PDS.CLIST(LOGONCMD):

EXEC '******.PDS.CLIST(CGALLOC)'

EXEC '******.PDS.CLIST(SPECLOGN)'

EXEC '******.CLIST(ZJDLOGON)'

/* PANEL LIBRARIES */
/* WAAPCNCT '******.PDS.ISPPLIB' BEFORE (ISPPLIB) */
WAAPCNCT '******.MS7MA.ISPPLIB' BEFORE (ISPPLIB)

/* TABLE LIBRARIES */
/* WAAPCNCT PDS.ISPTLIB BEFORE (ISPTLIB) */
WAAPCNCT '******.PDS.CLIST' BEFORE (ISPTLIB)

/* SKELETON LIBRARIES */
WAAPCNCT '******.PDS.ISPSLIB' BEFORE (ISPSLIB)

/* CLIST LIBRARIES */
WAAPCNCT '******.PDS.CLIST' BEFORE (SYSPROC)

/* LOAD LIBRARIES */
/* WAAPCNCT '******.PDS.ISPLLIB' BEFORE (ISPLLIB) */

CLEAR

ISPF


How can I code a 'TSO ALLOCATE' ?
This issue in from my last qustion:
ibmmainframes.com/viewtopic.php?t=27170&highlight=

I found that I need to allocate the SYSIN every time when I logon TSO region...
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2359
Location: Israel

PostPosted: Tue Jan 08, 2008 3:14 pm
Reply with quote

You can code the TSO ALLOCATE command in any REXX (and you have at least three of them in the start of your procedure), or you can simply use the JCL DD statement and allocate the dataset directly in the procedure.

O.
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts TSO WHOIS Command in JCL Program JCL & VSAM 5
No new posts Help with CA7 Post Command CA Products 0
No new posts Execute REXX on logon with ISPF CLIST & REXX 3
No new posts EIBCALEN 0 even if we pass LEN and FR... CICS 4
No new posts CNTL= Command Syntax Documentation CA Products 3
Search our Forums:

Back to Top