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

Invoke REXX by everyone


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Ronny John

New User


Joined: 30 Mar 2010
Posts: 33
Location: USA

PostPosted: Fri Aug 03, 2012 2:18 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Aug 03, 2012 2:22 am
Reply with quote

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
View user's profile Send private message
Ronny John

New User


Joined: 30 Mar 2010
Posts: 33
Location: USA

PostPosted: Fri Aug 03, 2012 7:06 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Aug 03, 2012 7:18 am
Reply with quote

You're welcome - but i do not understand this new question icon_confused.gif

What do you mean by "having REXX allocated"? Unless i completely misunderstand, REXX is not "allocated". . .
Back to top
View user's profile Send private message
Ronny John

New User


Joined: 30 Mar 2010
Posts: 33
Location: USA

PostPosted: Fri Aug 03, 2012 7:36 am
Reply with quote

BY allocated, I meant get a PDS configured such that, when we put rexx utilities inside it, everone can invoke it.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Aug 03, 2012 8:00 am
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Fri Aug 03, 2012 1:28 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Aug 03, 2012 6:55 pm
Reply with quote

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
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
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
Search our Forums:

Back to Top