Page 1 of 1

Invoking a REXX program from a console

PostPosted: Tue Sep 13, 2011 5:46 pm
by gidonlando
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?

Re: Invoking a REXX program from a console

PostPosted: Tue Sep 13, 2011 5:57 pm
by MrSpock
Maybe it's System REXX (SYSREXX) you're thinking of?

Re: Invoking a REXX program from a console

PostPosted: Wed Sep 14, 2011 6:47 pm
by gidonlando
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...

Re: Invoking a REXX program from a console

PostPosted: Fri Sep 16, 2011 7:27 pm
by Pedro
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...