View previous topic :: View next topic
|
Author |
Message |
krsk
New User
Joined: 24 Jun 2008 Posts: 23 Location: INDIA
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
How do you invoke it outside the command option (6)?
O. |
|
Back to top |
|
|
krsk
New User
Joined: 24 Jun 2008 Posts: 23 Location: INDIA
|
|
|
|
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 |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
Krsk,
Quote: |
But I want to invoke REXX routine without prefixing TSO. |
Any reason for not using prefixing TSO? |
|
Back to top |
|
|
krsk
New User
Joined: 24 Jun 2008 Posts: 23 Location: INDIA
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
The only way I know is to define your REXX as a command to ISPF.
O. |
|
Back to top |
|
|
krsk
New User
Joined: 24 Jun 2008 Posts: 23 Location: INDIA
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
Back to top |
|
|
MBabu
Active User
Joined: 03 Aug 2008 Posts: 400 Location: Mumbai
|
|
|
|
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 |
|
|
krsk
New User
Joined: 24 Jun 2008 Posts: 23 Location: INDIA
|
|
|
|
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 |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2546 Location: Silicon Valley
|
|
Back to top |
|
|
krsk
New User
Joined: 24 Jun 2008 Posts: 23 Location: INDIA
|
|
|
|
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 |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2546 Location: Silicon Valley
|
|
|
|
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 |
|
|
krsk
New User
Joined: 24 Jun 2008 Posts: 23 Location: INDIA
|
|
|
|
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 |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2546 Location: Silicon Valley
|
|
|
|
To share a table, move the xxxCMDS member from your ISPTABL dataset to a shared dataset in the ISPTLIB concatentation. |
|
Back to top |
|
|
krsk
New User
Joined: 24 Jun 2008 Posts: 23 Location: INDIA
|
|
|
|
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 |
|
|
PeD
Active User
Joined: 26 Nov 2005 Posts: 459 Location: Belgium
|
|
|
|
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 |
|
|
krsk
New User
Joined: 24 Jun 2008 Posts: 23 Location: INDIA
|
|
|
|
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 |
|
|
PeD
Active User
Joined: 26 Nov 2005 Posts: 459 Location: Belgium
|
|
|
|
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 |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi Pierre,
I think KRSK is saying dataset REXX.EXECLST is part of the SYSEXEC concatenation.
Gerry |
|
Back to top |
|
|
krsk
New User
Joined: 24 Jun 2008 Posts: 23 Location: INDIA
|
|
|
|
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 |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
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 |
|
|
PeD
Active User
Joined: 26 Nov 2005 Posts: 459 Location: Belgium
|
|
|
|
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 |
|
|
krsk
New User
Joined: 24 Jun 2008 Posts: 23 Location: INDIA
|
|
|
|
Hello Gcicchet,
I also thought like that. But it is not working, I tried it.
Thanking you,
KRSK |
|
Back to top |
|
|
krsk
New User
Joined: 24 Jun 2008 Posts: 23 Location: INDIA
|
|
|
|
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 |
|
|
|