View previous topic :: View next topic
|
Author |
Message |
Ronny John
New User
Joined: 30 Mar 2010 Posts: 33 Location: USA
|
|
|
|
Hi Folks,
I have created some REXX tools. I need to how to set up a REXX created by me, to be able to be used by everyone of he same mainframe LPAR or server ie everyone can invoke it using simple commands on their TSO session. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Talk with your system support and they will be able to tell you how this is done on your system. Generically it is straightforward, but most systems have their own standard so the system support people should advise. |
|
Back to top |
|
|
Ronny John
New User
Joined: 30 Mar 2010 Posts: 33 Location: USA
|
|
|
|
Thanks scherrer. I am already on that path. But just to know, is there a way to get the dataset having REXX alloacted somehow?> |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
You're welcome - but i do not understand this new question
What do you mean by "having REXX allocated"? Unless i completely misunderstand, REXX is not "allocated". . . |
|
Back to top |
|
|
Ronny John
New User
Joined: 30 Mar 2010 Posts: 33 Location: USA
|
|
|
|
BY allocated, I meant get a PDS configured such that, when we put rexx utilities inside it, everone can invoke it. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
Ronny John wrote: |
BY allocated, I meant get a PDS configured such that, when we put rexx utilities inside it, everone can invoke it. |
that will be accomplished after you
dick scherrer wrote: |
Talk with your system support and they will be able to tell you how this is done on your system. Generically it is straightforward, but most systems have their own standard so the system support people should advise. |
when you do an isdrsn (or whatever) to see all the datasets that are allocated to your tso session,
the system support people will tell you which SYSEXEC or SYSPROC ds to use.
everywhere that I have ever worked,
there has been some document promulgated
(that everybody is supposed to read)
which outlines this kind of stuff.
so before you go pissing someone off,
by obviously not having read the site standards document,
you should ask around you team, or team mgr.
not a suggested short cut:
but the isdrn (or whatever) output will indicate the authority that you have been granted
for each DS.
If you have UPDATE authority on a PDS in SYSEXEC or SYSPROC
that is where you add your scripts. the /* REXX */ comment in the first line is mandatory (well if you want your scripts to run) in SYSPROC,
not in SYSEXEC.
But it is good practice to always include the /* REXX */ first line comment. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
I strongly agree with Dick and Enrico. If you don't follow what they say, you might burn yourslef badly.
However, per this
Quote: |
I need to how to set up a REXX created by me, to be able to be used by everyone of he same mainframe LPAR or server ie everyone can invoke it using simple commands on their TSO session. |
how do you,yourself, invoke some of your REXX tools as a "TSO command"? If you wanted to do this even for yourself, these tools should be available in SYSPROC, SYSEXEC concatenation for your TSO session too, as Enrico indicates.
/Play with your own risk On
Most of the sites, I've used this to concatenate my own REXX to the SYSPROC and it works great, but yes if you're not aware of site policies then play safe:
Code: |
/* REXX */
"ALLOC F(MYPDS) DA('HLQ.SLQ.EXEC') SHR REU"
"ALLOC F(MYPDS1) DA('HLQ.SLQ.PANELS') SHR REU"
CALL BPXWDYN "CONCAT DDLIST(SYSPROC,MYPDS) MSG(2)"
CALL BPXWDYN "CONCAT DDLIST(ISPPLIB,MYPDS1) MSG(2)"
EXIT 0 |
In this 'HLQ.SLQ.EXEC' is the PDS having REXX code (tools) of my choice and 'HLQ.SLQ.PANELS' will have ISPF panles if you've created some.
/Play with your own risk Off |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
If your code is for general use, you probably will relocate it into some "standard" user library.
Once your code is "standardized", part of the task will be to ensure none of your names conflict with anything already on the system. As long as you run out of your own library, you might not see a problem, but it you just dump your code into some common library, you may break something that already works - and will have people very unhappy about it. . .
There is NO good reason to try to do this by yourself. |
|
Back to top |
|
|
|