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
 

 

Running REXX EXECS without prefixing TSO
Goto page 1, 2  Next
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
krsk

New User


Joined: 24 Jun 2008
Posts: 23
Location: INDIA

PostPosted: Mon Aug 11, 2008 12:18 pm    Post subject: Running REXX EXECS without prefixing TSO
Reply with quote

Hello,
I have some REXX EXECs, for using them anywhere else, except the Command option(option 6), I have to prefix the command with TSO, like TSO SQLCHELP. I wanted to know how we can use the routines without prefixing TSO, any where in the System.
Thanking you,

KRSK
Back to top
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Mon Aug 11, 2008 12:33 pm    Post subject:
Reply with quote

How do you invoke it outside the command option (6)?

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

New User


Joined: 24 Jun 2008
Posts: 23
Location: INDIA

PostPosted: Mon Aug 11, 2008 12:43 pm    Post subject:
Reply with quote

Hello,
Yeah, We can execute in the command lines where we give commands. For example, in the 3.4 option, a command line exists, there we can invoke the REXX routine, by prefixing it with TSO. But I want to invoke REXX routine without prefixing TSO.
Thank you,

KRSK
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Mon Aug 11, 2008 12:44 pm    Post subject: Reply to: Running REXX EXECS without prefixing TSO
Reply with quote

Krsk,

Quote:
But I want to invoke REXX routine without prefixing TSO.


Any reason for not using prefixing TSO?
Back to top
View user's profile Send private message
krsk

New User


Joined: 24 Jun 2008
Posts: 23
Location: INDIA

PostPosted: Mon Aug 11, 2008 1:04 pm    Post subject:
Reply with quote

Hello,
Yeah! I am developing some routines, to be used by other users also. So if prefixing by TSO is not required, it will be more convenient for users to use the routines.
Thanking you,

KRSK
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Mon Aug 11, 2008 3:19 pm    Post subject:
Reply with quote

The only way I know is to define your REXX as a command to ISPF.

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

New User


Joined: 24 Jun 2008
Posts: 23
Location: INDIA

PostPosted: Mon Aug 11, 2008 3:40 pm    Post subject:
Reply with quote

ofer71 wrote:
The only way I know is to define your REXX as a command to ISPF.


Can you please briefly explain me about this?

KRSK
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Mon Aug 11, 2008 3:43 pm    Post subject:
Reply with quote

What's wrong with the fine manual?

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

Active User


Joined: 03 Aug 2008
Posts: 401
Location: Mumbai

PostPosted: Mon Aug 11, 2008 8:02 pm    Post subject: Reply to: Running REXX EXECS without prefixing TSO
Reply with quote

Specifically, look in the manual for command tables. You may want to have your system programmer set up ISPF to allow you to use them or you can usually use ISRCMDS if the site is not using that already. Do NOT update ISPCMDS since that can change
Back to top
View user's profile Send private message
krsk

New User


Joined: 24 Jun 2008
Posts: 23
Location: INDIA

PostPosted: Tue Aug 12, 2008 3:49 pm    Post subject:
Reply with quote

Hello,
Yeah! For eliminating TSO prefix, we have to add it to the ISPF command table. But I could not find proper way of doing that. Can you please site me some examples of adding commands to ISPF table?

KRSK
Back to top
View user's profile Send private message
Pedro

Senior Member


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

PostPosted: Tue Aug 12, 2008 9:32 pm    Post subject: Reply to: Running REXX EXECS without prefixing TSO
Reply with quote

Use ISPF option 3.9 to add commands.

See also this previous post.
Back to top
View user's profile Send private message
krsk

New User


Joined: 24 Jun 2008
Posts: 23
Location: INDIA

PostPosted: Tue Aug 26, 2008 1:01 pm    Post subject:
Reply with quote

Hello....
I tried adding the command to the table. In our installation we have two tables, PDF and ISP. I used option 7,4 for adding the command to the table. But the problem is that, only I can use that command, for other users they have to prefix it with TSO. So how can I make that command usable to all the users?
Thanking you
Back to top
View user's profile Send private message
Pedro

Senior Member


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

PostPosted: Tue Aug 26, 2008 9:30 pm    Post subject: Reply to: Running REXX EXECS without prefixing TSO
Reply with quote

Quote:
So how can I make that command usable to all the users?

When you save a command table, it is a member named PDFCMDS or ISPCMDS in your ISPTABL dataset (or whatever prefix with suffix of 'CMDS').

But to actually use the command table, it needs to be in your ISPTLIB concatenation. It probably works for you because your ISPTABL dataset is in your ISPTLIB concatenation (that is the way it should be).

To share a command table, it has to also be in the other person's ISPTLIB concatenation. So move the xxxCMDS member from your IPSTABL dataset to a shared dataset.
Back to top
View user's profile Send private message
krsk

New User


Joined: 24 Jun 2008
Posts: 23
Location: INDIA

PostPosted: Tue Sep 16, 2008 4:20 pm    Post subject: Re: Reply to: Running REXX EXECS without prefixing TSO
Reply with quote

Hello,
Pedro wrote:
To share a command table, it has to also be in the other person's ISPTLIB concatenation. So move the xxxCMDS member from your IPSTABL dataset to a shared dataset.

In the ISPTABL dataset, there is only PDFCMDS, no ISPCMDS. So if I add any command to PDFCMDS, for making it sharable, I have to place PDFCMDS in one of the ISPTLIB allocated dataset(shared), isnt it the case?
Thanking you,
KRSK
Back to top
View user's profile Send private message
Pedro

Senior Member


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

PostPosted: Tue Sep 16, 2008 9:39 pm    Post subject: Reply to: Running REXX EXECS without prefixing TSO
Reply with quote

To share a table, move the xxxCMDS member from your ISPTABL dataset to a shared dataset in the ISPTLIB concatentation.
Back to top
View user's profile Send private message
krsk

New User


Joined: 24 Jun 2008
Posts: 23
Location: INDIA

PostPosted: Wed Sep 24, 2008 4:32 pm    Post subject:
Reply with quote

Hello,
There is one way to add commands to the ISPCMDS table itself.
1) We need to copy ISPCMDS from the ISPTLIB concatenation to our own PDS.
2) Rename ISPCMDS to XXX CMDS.
3) Allocate the PDS to ISPTABL concatenation.
4) In ISPF Option 3.9, give application id: XXXCMDS.
5) Add commands to the table.
6) Rename XXXCMDS to ISPCMDS.
7) Copy ISPCMDS to the original ISPTLIB concatenation. This might require higher access, or can be done by the System administrator. Another way is, we can add this to the ISPTLIB concatenation which are higher to the original PDS in the heirarchy(avoids changing the original ISPCMDS).

Thanking you,
KRSK
Back to top
View user's profile Send private message
PeD

Active User


Joined: 26 Nov 2005
Posts: 456
Location: Belgium

PostPosted: Wed Sep 24, 2008 4:59 pm    Post subject:
Reply with quote

Quote:
Hello,
I have some REXX EXECs, for using them anywhere else, except the Command option(option 6), I have to prefix the command with TSO, like TSO SQLCHELP. I wanted to know how we can use the routines without prefixing TSO, any where in the System.
Thanking you,

KRSK


Back to your first question, I would say : go in 3.4, edit the PDS where your REXX exec is, then type EXEC in front of it.

That's all.

Cheers
Pierre
Back to top
View user's profile Send private message
krsk

New User


Joined: 24 Jun 2008
Posts: 23
Location: INDIA

PostPosted: Wed Sep 24, 2008 5:11 pm    Post subject:
Reply with quote

Hello,
Quote:
Back to your first question, I would say : go in 3.4, edit the PDS where your REXX exec is, then type EXEC in front of it.

Our REXX EXECs are in the PDS REXX.EXECLST, which is a SYSEXEC allocated PDS. Now where I should type EXEC, please let me know.
Thanking you,
KRSK
Back to top
View user's profile Send private message
PeD

Active User


Joined: 26 Nov 2005
Posts: 456
Location: Belgium

PostPosted: Wed Sep 24, 2008 5:22 pm    Post subject:
Reply with quote

As said, go to 3.4 in ISPF, edit your REXX.EXECLST pds then type EXEC in front of the member you want to execute.

By the way, what is a SYSEXEC allocated PDS?

Regards
Pierre
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Wed Sep 24, 2008 5:35 pm    Post subject:
Reply with quote

Hi Pierre,

I think KRSK is saying dataset REXX.EXECLST is part of the SYSEXEC concatenation.


Gerry
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
Goto page 1, 2  Next
Page 1 of 2

 

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
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm
No new posts Problem in Running Query via JCL vickey_dw DB2 3 Tue Oct 18, 2016 11:11 pm
No new posts Replace repeated JCL with looping REXX prino CLIST & REXX 3 Thu Oct 13, 2016 5:30 am
This topic is locked: you cannot edit posts or make replies. Need to code a Rexx PGM sundaram.naveen CLIST & REXX 18 Thu Oct 06, 2016 6:45 pm


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