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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: How to execute a TSO command when I logon the TSO region?
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    Post subject:
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: 2360
Location: Israel

PostPosted: Tue Jan 08, 2008 2:32 pm    Post subject:
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    Post subject:
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:
http://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: 2360
Location: Israel

PostPosted: Tue Jan 08, 2008 3:14 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts Customizing the ISPF HILITE Command Pedro TSO/ISPF 3 Fri Mar 03, 2017 11:49 pm
No new posts Determine Region with max bandwidth f... seahawk789 COBOL Programming 3 Mon Feb 27, 2017 8:26 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm


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