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

Running REXX EXECS without prefixing TSO


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
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
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: 2358
Location: Israel

PostPosted: Mon Aug 11, 2008 12:33 pm
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
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: 1287
Location: Chennai, India

PostPosted: Mon Aug 11, 2008 12:44 pm
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
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: 2358
Location: Israel

PostPosted: Mon Aug 11, 2008 3:19 pm
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
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: 2358
Location: Israel

PostPosted: Mon Aug 11, 2008 3:43 pm
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: 400
Location: Mumbai

PostPosted: Mon Aug 11, 2008 8:02 pm
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
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

Global Moderator


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

PostPosted: Tue Aug 12, 2008 9:32 pm
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
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

Global Moderator


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

PostPosted: Tue Aug 26, 2008 9:30 pm
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
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

Global Moderator


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

PostPosted: Tue Sep 16, 2008 9:39 pm
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
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: 459
Location: Belgium

PostPosted: Wed Sep 24, 2008 4:59 pm
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
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: 459
Location: Belgium

PostPosted: Wed Sep 24, 2008 5:22 pm
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: 1702
Location: Australia

PostPosted: Wed Sep 24, 2008 5:35 pm
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
krsk

New User


Joined: 24 Jun 2008
Posts: 23
Location: INDIA

PostPosted: Wed Sep 24, 2008 5:38 pm
Reply with quote

Hello,
I used SYSEXEC allocated dataset in the sense, it is in SYSEXEC concatenation.
Pierre, I am not getting you, please tell me where I should type EXEC. Suppose that I have a member ABCDE in REXX.EXECLST.
Thanking you,
KRSK
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Wed Sep 24, 2008 5:50 pm
Reply with quote

Hi KRSK,

I'm not sure if this is any clearer but I'll give it a go

1. in ispf otion 3.4 enter the dataset name

2. in the command field next to the dataset, type E for edit

3. you now have a member list

4. in the command field next to the member name type EXEC

Gerry
Back to top
View user's profile Send private message
PeD

Active User


Joined: 26 Nov 2005
Posts: 459
Location: Belgium

PostPosted: Wed Sep 24, 2008 5:53 pm
Reply with quote

This way

Code:
DSLIST - Data Sets Matching EVOLA.CMPV0301.SRC                      Row 1 of 1
Command ===>                                                  Scroll ===> CSR
                                                                             
Command - Enter "/" to select action                  Message           Volume
-------------------------------------------------------------------------------
 E       EVOLA.CMPV0301.SRC                                             SYS002
**************************** End of Data Set list ****************************




   Menu  Functions  Confirm  Utilities  Help                                 
 ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
 EDIT              EVOLA.CMPV0301.SRC                        Row 00001 of 00059
Command ===>                                                  Scroll ===> CSR
            Name     Prompt       Size   Created          Changed          ID
 _________ AMASPZAH                  8  2008/02/02  2008/02/02 15:21:39  ECSLA5
 _________ AMASPZAP                 33  2008/02/02  2008/02/02 15:23:14  ECSLA5
 _________ AMASPZA1                 11  2008/02/02  2008/02/02 16:00:00  ECSLA5
 _________ CMP314                21570  2007/04/24  2008/09/16 20:42:51  ECSLA5
 _________ DYNALOC                 936  2005/09/30  2006/11/27 01:16:42  ECSLA5
 exec_____ ECOMP03                                                             
 _________ ICMPEDI                                                             
 _________ ICMPSWF                  85  2006/12/06  2006/12/15 20:54:15  ECSLA5
 _________ ICMP021                  16  2007/04/18  2008/04/05 19:11:48  ECSLA5
 _________ ICMP341                                                             
 _________ ICMP612                 261  2007/12/04  2008/04/18 20:30:01  ECSLA5
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:54 pm
Reply with quote

Hello Gcicchet,
I also thought like that. But it is not working, I tried it.
Thanking you,
KRSK
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 6:04 pm
Reply with quote

Hello,
Sorry, for the previous post.
It is working, if we type EXEC in the command field next to the dataset name.
But, my requirement is that, the REXX routine should be accessible from anywhere, like if some one wants to execute it after he chooses ISPF option 1 also, it should execute there.
So for that the only option is to add it to add it to the command table. So, after a few posts the topic deviated towards adding a command to ISPF command tables.
Thank you.....
Thanking you,
KRSK
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 Goto page 1, 2  Next

 


Similar Topics
Topic Forum Replies
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
Search our Forums:

Back to Top