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
 

 

Alternative to CALL tso command

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
jerryte

Active User


Joined: 29 Oct 2010
Posts: 183
Location: Toronto, ON, Canada

PostPosted: Fri Aug 29, 2014 12:06 am    Post subject: Alternative to CALL tso command
Reply with quote

The tso CALL command requires that I specify the loadlib dataset along with the module name. ie
Code:
TSO CALL 'my.load.lib(mypgm)'

Is there an alternative command to run a program and tso will search the STEPLIB for the module?
Code:
//STEPLIB DD DSN=MY.LOAD.LIB,DISP=SHR
//SYSTSIN DD *
???? MYPGM

I plan to run this in batch. I browsed the TSO COMMAND manual but could not find such a command.
Back to top
View user's profile Send private message

Mickeydusaor

Active User


Joined: 24 May 2006
Posts: 258
Location: Salem, Oregon

PostPosted: Fri Aug 29, 2014 12:27 am    Post subject:
Reply with quote

//ISPFBTCH EXEC PGM=IKJEFT01,
// DYNAMNBR=30,REGION=4096K
//ISPLLIB DD DSN=MY.LOAD.LIB,DISP=SHR


TSO CALL *(MYPROG)
Back to top
View user's profile Send private message
jerryte

Active User


Joined: 29 Oct 2010
Posts: 183
Location: Toronto, ON, Canada

PostPosted: Fri Aug 29, 2014 12:29 am    Post subject:
Reply with quote

Thanks. Somehow I missed that part of the syntax.
Back to top
View user's profile Send private message
steve-myers

Active User


Joined: 30 Nov 2013
Posts: 461
Location: The Universe

PostPosted: Fri Aug 29, 2014 1:24 am    Post subject:
Reply with quote

CALL *(PROGRAM) is fairly recent.

Just about the first command processor I wrote for TSO (for MVT!) provided the equivalent of CALL *. Now I hardly ever use it.
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 29, 2014 1:29 am    Post subject: Reply to: Alternative to CALL tso command
Reply with quote

Sorry to nitpick... I question the title of the topic: "call TSO command"
You do not want to call a TSO command because it will call it with a standard MVS parameter list. A TSO command wants to be called with a CPPL parameter list.

To run as a TSO command, it should work just by specifying the member name.
Code:
//STEPLIB DD DSN=MY.LOAD.LIB,DISP=SHR
//SYSTSIN DD *
MYPGM


To run as an MVS program, specify the name in the EXEC JCL statement.
Back to top
View user's profile Send private message
jerryte

Active User


Joined: 29 Oct 2010
Posts: 183
Location: Toronto, ON, Canada

PostPosted: Fri Aug 29, 2014 1:50 am    Post subject:
Reply with quote

My mistake. The title should have been "Alternative to tso CALL command". Mickeydusaor showed that the CALL command can do what I wanted.
Back to top
View user's profile Send private message
steve-myers

Active User


Joined: 30 Nov 2013
Posts: 461
Location: The Universe

PostPosted: Fri Aug 29, 2014 2:43 am    Post subject:
Reply with quote

Pedro - I understood jerryte's intention right off. Among other things, CALL transforms a command line to the equivalent of // EXEC PGM=xxx,PARM=zz and then starts of the program using ATTACH. If you use the full form, CALL dataset(member), CALL allocates the data set using dynamic allocation, opens the data set, and uses ATTACH with the TASKLIB option to start the program.

The fullest form of my alternate to CALL tests if DD name USERLIB, or a DD name specified in the command line, is allocated, and uses it as a tasklib, which provides slightly more flexibility than the single library you can use with CALL. It also provides the ability to send either a specified or predefined DD list to the program, and it has an option to display the return code from the program. It also has an option to invoke a program as a command processor, though TSOLIB is a much better way to do this.
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 What is the command to check MODE of ... rohanthengal CLIST & REXX 6 Fri Nov 18, 2016 1:48 pm
No new posts Cobol EZASOKET call to SETSOCKOPT fails Andi1982 COBOL Programming 6 Thu Oct 06, 2016 7:12 pm
No new posts Strange EXEC function call in z/VM Willy Jensen CLIST & REXX 3 Wed Oct 05, 2016 2:07 pm
No new posts SDSF Command Avtrix CLIST & REXX 4 Fri Sep 30, 2016 11:13 am
No new posts How to find a CICS resource used in C... Arunkumar Chandrasekaran CICS 8 Thu Sep 29, 2016 1:45 pm


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