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
 

 

Invoke REXX by everyone

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: Invoke REXX by everyone
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

Site Director


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

PostPosted: Fri Aug 03, 2012 2:22 am    Post subject:
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    Post subject: Reply to: Invoke REXX by everyone
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

Site Director


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

PostPosted: Fri Aug 03, 2012 7:18 am    Post subject:
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    Post subject: Reply to: Invoke REXX by everyone
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    Post subject: Re: Reply to: Invoke REXX by everyone
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

Senior Member


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

PostPosted: Fri Aug 03, 2012 1:28 pm    Post subject:
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

Site Director


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

PostPosted: Fri Aug 03, 2012 6:55 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Invoke Webservice Fails with DFHPI100... divated CICS 2 Thu Nov 24, 2016 5:57 pm
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 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