Invoking a REXX program from a console



IBM's Command List programming language & Restructured Extended Executor

Invoking a REXX program from a console

Postby gidonlando » Tue Sep 13, 2011 5:46 pm

Hello all,

The operators in my site use a custom sysview commnad that checks different stats in the system, for instance Data Set contentions.
I've been asked to change that command to a command that is not dependent on sysview.
The operators are used to invoke this command from a console. My problem is I don't know how to invoke a REXX from a console.
I was told there was somthing called "REXX Server" that is supposed to handle these sort of requests but I couldn't find any documentation on the subject. I looked for information in the "REXX Alternate Library" documentation but didn't find anything.

Anybody have any ideas?
gidonlando
 
Posts: 21
Joined: Wed Jun 15, 2011 10:22 am
Has thanked: 0 time
Been thanked: 0 time

Re: Invoking a REXX program from a console

 

Re: Invoking a REXX program from a console

Postby MrSpock » Tue Sep 13, 2011 5:57 pm

Maybe it's System REXX (SYSREXX) you're thinking of?
User avatar
MrSpock
Global moderator
 
Posts: 810
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 2 times

Re: Invoking a REXX program from a console

Postby gidonlando » Wed Sep 14, 2011 6:47 pm

Thanks alot MrSpock, "SYSTEM REXX" was exactly what I was looking for.
My boss mistakingly reffered to it as "REXX Server".
If anyone else is interested in documentation of "SYSTEM REXX" in z/OS 1.9, i found a pdf from a "SHARE" conference in 2008:
anikvn.homedns.org/IBM_Mainframe/S2814XX160019.pdf

Thanks again, your help is very much apreciated...
gidonlando
 
Posts: 21
Joined: Wed Jun 15, 2011 10:22 am
Has thanked: 0 time
Been thanked: 0 time

Re: Invoking a REXX program from a console

Postby Pedro » Fri Sep 16, 2011 7:27 pm

I recall having some success in running a rexx exec from the console. You need a member in sys1.proclib, something like this:
//OPREXX  PROC  PARMS=
//TSOREXX EXEC PGM=IKJEFT01,
//             PARM='EXEC ''MY.LOCAL.CLIST(REXXPROC)'' ''&PARMS'' '         
//SYSEXEC   DD DSNAME=MY.LOCAL.CLIST,DISP=SHR   
//SYSTSIN    DD DUMMY
//SYSTSPRT DD DUMMY


From the operator's console:
S OPREXX,PARMS=DEPT21

Your rexx program needs to parse the input parameters, do its processing, and use the SEND command to display text on the operator's console.

note: the above JCL is from memory...
Pedro Vera
User avatar
Pedro
 
Posts: 569
Joined: Thu Jul 31, 2008 9:59 pm
Location: Silicon Valley
Has thanked: 0 time
Been thanked: 39 times


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post