Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Run System Manager Object (RUNSMGOBJ) command provides the capability of running an object or sending a command from the central site system to one or more managed systems.
Note:
A change request is automatically submitted that can be viewed to determine the status of this command. A message is returned identifying the name of the change request.
Restrictions:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
OBJ | Object | Qualified object name | Required, Positional 1 |
Qualifier 1: Object | Name | ||
Qualifier 2: Library | Name, *CURLIB | ||
OBJTYPE | Object type | *FILE, *FILEDATA, *PGM | Required, Positional 2 |
MBR | Member | Name | Optional |
DATATYPE | Data type | *UNSPEC, *CL, *REXX | Optional |
NODL | Managed systems node list | Element list | Optional |
Element 1: Node list |
Single values: *NONE Other values: Qualified object name |
||
Qualifier 1: Node list | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
CPNAME | Managed system node names | Single values: *NONE Other values (up to 50 repetitions): Element list |
Optional |
Element 1: Network identifier | Communications name, *NETATR | ||
Element 2: Control point | Communications name | ||
PARM | Parameters | Values (up to 20 repetitions): Not restricted | Optional |
Top |
Specifies the qualified program to be run.
The possible library values are one of the following:
The possible object name value is:
Top |
Specifies the object to be used.
Top |
Specifies the i5/OS physical file member. It is ignored unless the object type is *FILE. (Example: i5/OS CL input stream.)
Top |
Specifies the data type of the member. This parameter specifies the type of source file that runs on the managed system.
Top |
Specifies the node list name that contains a list of systems which are the destinations for the activity. This parameter cannot be specified if the control point name (CPNAME) parameter is also specified.
The possible values are:
The possible library values are one of the following:
The possible node list name value is:
Top |
Specifies the managed systems APPN control point names on which this activity is performed. Control point names cannot be specified if a node list is specified.
The possible control point name value is:
Top |
Specifies that the parameters to be passed when starting the program. Up to 20 parameters can be specified.
The possible values are:
Top |
Example 1: Running a REXX Procedure
RUNSMGOBJ OBJ(DEVLIB/QREXSRC) OBJTYPE(*FILEDATA) MBR(REPORT1) CPNAME((*NETATR DEVSYS))
This command runs the REXX procedure in member REPORT1 of file QREXSRC in library DEVLIB on the development system.
Example 2: Running a Program
RUNSMGOBJ OBJ(SALESLIB/GENRPTS) OBJTYPE(*PGM) NODL(SYSLIB/ALLSTORES) PARM('SALES ONLY' 'TODAY')
This command runs a program called GENRPTS in library SALELIB on all systems listed in the node list ALLSTORES in library SYSLIB. Two parameters are passed as input to the program. The first parameter has the value 'SALES ONLY' and the second parameter has the value 'TODAY'.
Top |
None
Top |