Page 1 of 1

When to use REXEC ?

Posted: Wed Jun 08, 2016 3:47 pm
by Nitin Gadge
Hi,

I have seen some PROCs making use of REXEC? I do not see this in the application program list. Can you please suggest when do we use it and what details are needed to call it?

Re: When to use REXEC ?

Posted: Wed Jun 08, 2016 4:37 pm
by Robert Sample
REXEC is used to connect to a remote server (usually Unix or Windows) and issue a command (which could be a script, of course).  The specifics of when to use it and the details needed will vary by site as well as by application. 

Re: When to use REXEC ?

Posted: Sat Jun 18, 2016 10:12 am
by Nitin Gadge
Robert Sample wrote:REXEC is used to connect to a remote server (usually Unix or Windows) and issue a command (which could be a script, of course).  The specifics of when to use it and the details needed will vary by site as well as by application. 
Thanks Robert. I thought it was project specific tool.

Re: When to use REXEC ?

Posted: Sat Jun 18, 2016 4:33 pm
by nicc
If you thought it was a project specific tool why did you ask on a general forum? No one here works at your place so no one here would know anything about your project and its tools. Of courxe, if you had Googled REXEC you would have found hits and that would indicate that it is a generally available utility and what it is used for.

Re: When to use REXEC ?

Posted: Wed Jun 22, 2016 6:10 pm
by Nitin Gadge
I used WHOHAS command in my shop and I thought it was universal but I was told it was not. We could never see the code for it but it always worked. I thought about REXEC similar so asked about it. Sorry if it was not appropriate to ask like this.

Re: When to use REXEC ?

Posted: Wed Jun 22, 2016 6:43 pm
by Robert Sample
If you're not sure whether or not a particular program / function is generic or not, check the IBM manuals.  REXEC, for example, is in the Communications Server bookshelf where its use and functioning is described.  WHOHAS is not in an IBM manual; it is generally implemented as a REXX program and hence resides in SYS1.SYSPROCS (or similar name) for those sites which use it.  Of course, some sites don't use it and don't have it installed.

Re: When to use REXEC ?

Posted: Mon Jun 27, 2016 3:26 pm
by Nitin Gadge
Robert Sample wrote:If you're not sure whether or not a particular program / function is generic or not, check the IBM manuals.  REXEC, for example, is in the Communications Server bookshelf where its use and functioning is described.  WHOHAS is not in an IBM manual; it is generally implemented as a REXX program and hence resides in SYS1.SYSPROCS (or similar name) for those sites which use it.  Of course, some sites don't use it and don't have it installed.
Thanks. This is great tip for me. Thanks again.