Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Change Object Change Request Activity (CHGOBJCRQA) command changes an object distribution activity in a change request description. The object referred to in the activity can be an i5/OS object identified by an i5/OS object name or a global name, or a non-i5/OS object such as a PS/2 file which is identified by a global name.
The activity can be conditioned so that it only runs after one or more other activities have completed (successfully or unsuccessfully). The activity can also be scheduled to run at a date and time in the future.
Restrictions:
Notes:
The following notes provide information on how the command works.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
CRQD | Change request description | Qualified object name | Required, Key, Positional 1 |
Qualifier 1: Change request description | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
ACTIVITY | Activity | Name, *LAST | Required, Key, Positional 2 |
ACTION | Action | *SND, *RTV, *DLT, *RUN, *SNDRUN, *INS, *SNDINS, *UNINS, *SAME | Optional |
OBJ | Object | Single values: *GLOBAL, *COMPNAME, *SAME Other values: Qualified object name |
Optional |
Qualifier 1: Object | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
GLBNAME | Global name | Single values: *SAME Other values: Element list |
Optional |
Element 1: Global name token 1 | Character value, *NETID, *SERVER, *TARGET, *MDDATE, *MDTIME | ||
Element 2: Global name token 2 | Character value, *ANY, *HIGHEST, *LOWEST, *NETID, *CPNAME, *SERVER, *TARGET, *MDDATE, *MDTIME | ||
Element 3: Global name token 3 | Character value, *ANY, *HIGHEST, *LOWEST, *NETID, *CPNAME, *SERVER, *TARGET, *MDDATE, *MDTIME | ||
Element 4: Global name token 4 | Character value, *ANY, *HIGHEST, *LOWEST, *NETID, *CPNAME, *SERVER, *TARGET, *MDDATE, *MDTIME | ||
Element 5: Global name token 5 | Character value, *ANY, *HIGHEST, *LOWEST, *NETID, *CPNAME, *SERVER, *TARGET, *MDDATE, *MDTIME | ||
Element 6: Global name token 6 | Character value, *ANY, *HIGHEST, *LOWEST, *NETID, *CPNAME, *SERVER, *TARGET, *MDDATE, *MDTIME | ||
Element 7: Global name token 7 | Character value, *ANY, *HIGHEST, *LOWEST, *NETID, *CPNAME, *SERVER, *TARGET, *MDDATE, *MDTIME | ||
Element 8: Global name token 8 | Character value, *ANY, *HIGHEST, *LOWEST, *NETID, *CPNAME, *SERVER, *TARGET, *MDDATE, *MDTIME | ||
Element 9: Global name token 9 | Character value, *ANY, *HIGHEST, *LOWEST, *NETID, *CPNAME, *SERVER, *TARGET, *MDDATE, *MDTIME | ||
Element 10: Global name token 10 | Character value, *ANY, *HIGHEST, *LOWEST, *NETID, *CPNAME, *SERVER, *TARGET, *MDDATE, *MDTIME | ||
OBJTYPE | Object type | Character value, *SAME | Optional |
MBR | Member | Name, *FIRST, *LAST, *ALL, *SAME | Optional |
DATATYPE | Data type | *UNSPEC, *CL, *REXX, *SAME | Optional |
COMPNAME | Component name | Single values: *SAME Other values: Element list |
Optional |
Element 1: Component name token 1 | Character value, *NETID | ||
Element 2: Component name token 2 | Character value, *NETID, *CPNAME | ||
Element 3: Component name token 3 | Character value, *NETID, *CPNAME | ||
Element 4: Component name token 4 | Character value, *NETID, *CPNAME | ||
Element 5: Component name token 5 | Character value, *NETID, *CPNAME | ||
Element 6: Component name token 6 | Character value, *NETID, *CPNAME | ||
Element 7: Component name token 7 | Character value, *NETID, *CPNAME | ||
REFLVL | Refresh level | Character value, *SAME, *ALL | Optional |
NODL | Managed systems node list | Element list | Optional |
Element 1: Node list |
Single values: *NONE, *SAME Other values: Qualified object name |
||
Qualifier 1: Node list | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
CPNAME | Managed system node names | Single values: *NONE, *SAME Other values (up to 50 repetitions): Element list |
Optional |
Element 1: Network identifier | Communications name, *NETATR | ||
Element 2: Control point | Character value | ||
TGTRLS | Target release | *CURRENT, *PRV, V5R2M0, V5R3M0, V5R4M0, *SAME | Optional |
REPLACE | Replace object | *NO, *YES, *SAME | Optional |
DTACPR | Data compression | *SNA, *NONE, *SAME | Optional |
KEEPCLGE | Keep catalog entry | *YES, *NO, *SAME | Optional |
PARM | Parameters | Values (up to 20 repetitions): Not restricted | Optional |
RMTSTRTIME | Start time on managed system | Element list | Optional |
Element 1: Time zone | *LCLSYS, *MGDSYS, *SAME | ||
Element 2: Start after | Element list | ||
Element 1: Time | Time, *CURRENT, *SAME | ||
Element 2: Date | Date, *CURRENT, *NEXT, *SAME | ||
TEXT | Text 'description' | Character value, *GEN, *BLANK, *SAME | Optional |
COND | Activity conditions | Single values: *NONE, *SAME Other values (up to 5 repetitions): Element list |
Optional |
Element 1: Activity | Generic name, name, *PRV | ||
Element 2: Relational operator | *EQ, *GT, *LT, *LE, *NE, *GE | ||
Element 3: End code | 0-99, *SUCCESS, *FAIL, *NOTRUN, *ANY | ||
Element 4: Condition mode | *ALLNODES, *SAMENODE | ||
STRTIME | Activity start time | Element list | Optional |
Element 1: Start after | Element list | ||
Element 1: Time | Time, *CURRENT, *SAME | ||
Element 2: Date | Date, *CURRENT, *NEXT, *SAME | ||
Element 2: Start before | Element list | ||
Element 1: Time | Time, *ANY, *CURRENT, *SAME | ||
Element 2: Date | Date, *ANY, *CURRENT, *NEXT, *SAME | ||
HOLD | Hold activity | *NO, *YES, *SAME | Optional |
Top |
Specifies the change request description object name. CRQD is a required parameter.
The possible library values are the following:
The possible values are:
Top |
Specifies the name of the activity to change in the change request description.
Top |
Specifies the object distribution functions to be performed.
Top |
Specifies the name of the object that is run, sent, retrieved, or deleted. For send and retrieve actions, the object name represents the name of the object on both the central site system and the managed systems.
The possible values are:
The possible library values are one of the following:
The possible object name value is:
Top |
Specifies a global name, which is a series of tokens that uniquely identify an object in an SNA network. The global name represents the name that is used to locate the appropriate catalog entry on both the central site system and the managed systems. The catalog entry specifies the object that is used on that system. For example, if a retrieve action is specified, the global name is used to determine the object that is retrieved on the managed system. Also, the global name shows the location where it is to be stored on the central site system.
Special values in a token position indicate how to search for the object. By specifying *ANY in a token position, the token is ignored when searching for the correct object. If multiple objects are found matching the tokens specified, an error is returned.
If an object is sent, the global name must have been previously cataloged so that it is associated with a local object name or loaded into the distribution repository. Retrieved objects for which no catalog entry exists are placed in the distribution repository. The GLBNAME parameter is are ignored if the object name is not *GLOBAL.
The GLBNAME parameter is not valid when the ACTION value is *UNINS. When the OBJ is *GLOBAL and the global name maps to an installable object, the global name must have the following structure.
ComponentName REF RefreshLevel
In this example,
The possible single value is:
Element 1: Token 1
Elements 2-10: Tokens 2-10
Note: For more detailed information about the Change Control Server support see the Managed System Services/400 Use book.
Top |
Specifies the object type. It is ignored if a global name is used.
Top |
Specifies the physical file member name. This is ignored unless the object type is *FILE or *FILEDATA.
Top |
Specifies the data type of the member. It is used to specify the type of source file that is run on the managed system. This parameter is ignored when a file is not being sent or run.
Top |
A component name, which is the set of tokens of a global name previous to the REF token. It is the object on which the *UNINS action acts on. COMPNAME is only valid when ACTION(*UNINS) and OBJ(*COMPNAME) are specified.
The possible single value is:
Element 1: Token 1
Elements 2-7: Tokens 2-7
Top |
The refresh level is the level of the installable object that will be uninstalled. REFLVL is only valid when ACTION(*UNINS) and OBJ(*COMPNAME) are specified.
Top |
Specifies the node list parameter is the object 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 APPN control point names of the managed systems on which this activity is to be performed. Control point names cannot be specified if a node list is specified.
The possible values are:
The possible control point name value is:
Top |
Specifies the release of the operating system on which you intend to use the object. This parameter is ignored for objects with global names that are in the SystemView distribution repository or for actions other than send or retrieve.
Note: Modification levels are not supported.
Valid values depend on the current version, release, and modification level, and they change with each new release.
Top |
Specifies whether the object should be replaced if it already exists. This parameter is ignored for actions other than for send, send and run, or retrieve.
Top |
Specifies that data be compressed when sending or retrieving. This parameter is ignored for actions other than for *SND, *SNDRUN, and *RTV of *FILEDATA object types. SNA compression with a prime compression character of blank is performed.
Objects that are globally named can also have compression information specified when they were added to the distribution catalog (ADDDSTCLGE command).
Top |
Specifies if the catalog entry and associated save file corresponding to the installable object will be kept in the specified system or systems. The KEEPCLGE parameter is only valid when ACTION(*SNDINS) or ACTION(*INS) is specified.
Top |
Specifies parameters to be passed when starting the program. This is ignored if the action is not *RUN or *SNDRUN. Up to 20 parameters can be specified.
Top |
Specifies the date and time when the activity can begin running on the managed system. The current date and time values and the next date values are determined when the activity begins running at the central site system based on the central site date and time.
The possible time zone of the remote start time values are:
The possible start after time values are:
This is the definition of the time after which the activity is to start.
The possible start after date values are:
Notes:
Top |
Specifies the activity description.
Top |
Specifies which conditions must be met before this activity can be performed. Each condition identifies an activity that must be run before this activity and the value the end code from that activity must have to allow this activity to run. The default condition is that the previous activity (in alphabetical order) must complete successfully before this activity can be run.
The possible single values are:
The possible conditioning activity values are:
The possible relational operator values are:
This element is the relational operator to use when comparing the end code from an activity.
The possible condition code results are:
This element is value compared to the actual end code of the conditioning activity.
The possible condition mode values are:
This element indicates which systems the conditioning activity must have completed on before this activity can be performed.
Top |
Specifies the date and the time when this activity can be started on the central site system. The current date and time values, and the next date values are determined when the change request is submitted.
The possible start after time values are:
The possible start after date values are:
The possible start before time values are:
This element is ignored if the start before date is *ANY.
The possible start before date values are:
Top |
Specifies that the activity be held when the change request is submitted.
Top |
Example 1: Retrieving a Job Description
CHGOBJCRQA CRQD(MYLIB/CR1) ACTIVITY(ACT01) ACTION(*RTV) OBJ(QGPL/QXYZ) OBJTYPE(*JOBD) CPNAME((*NETATR SYS1))
This command changes an activity to retrieve the QGPL/QXYZ job description from the iSeries server SYS1.
Example 2: Sending a File to All Systems in the Network
CHGOBJCRQA CRQD(MYLIB/CR2) ACTIVITY(ACT02) ACTION(*SND) OBJ(ACCTLIB/TAXFILE) OBJTYPE(*FILE) TGTRLS(*PRV) MBR(DEDUCTIONS) STRTIME(23:00:00 9/30/02)) NODL(MYLIB/ACCTSYS)
This command changes an activity to send a tax table to all of the iSeries accounting servers identified in the ACCTSYS node list at 11 p.m. on 30 September 2002. The accounting systems are at the previous release level.
Example 3: Retrieving a Program
CHGOBJCRQA CRQD(MYLIB/CR3) ACTIVITY(ACT03) ACTION(*RTV) OBJ(*GLOBAL) GLBNAME(CUSTNET PCSOFT WDWAPP VER5 020314) CPNAME((CUSTNET DEVPS2))
CHGOBJCRQA CRQD(MYLIB/CR3) ACTIVITY(ACT03) ACTION(*SND) OBJ(*GLOBAL) GLBNAME(CUSTNET PCSOFT WDWAPP VER5 020314) NODL(MYLIB/PS2SE)
CHGOBJCRQA CRQD(MYLIB/CR3) ACTIVITY(ACT03) ACTION(*RUN) OBJ(*GLOBAL) GLBNAME(CUSTNET PCSOFT WDWAPP VER5 020314) COND((*PRV *EQ *SUCCESS *SAMENODE)) RMTSTRTIME(*MGDSYS (23:00 10/21/02)) NODL(MYLIB/PS2SE)
This command changes activities to retrieve a program from a PS/2, send it to all of the PS/2s in the PS2SE node list, and run it on the PS/2s at 11 p.m. in the time zone where the PS/2 is located. The program runs at each PS/2 after October 21, 2002.
Example 4: Retrieving a File after 10 p.m.
CHGOBJCRQA CRQD(MYLIB/CR4) ACTIVITY(ACT04) ACTION(*RTV) OBJ(*GLOBAL) GLBNAME(CUSTNET SALES *ANY *HIGHEST) STRTIME((22:00:00 *CURRENT) (06:00:00 *NEXT)) NODL(MYLIB/STORES)
This command changes an activity to retrieve the most recent nightly sales file from each system identified in the STORES node list. The files are cataloged as CUSTNET SALES system-name date-created. The file must be retrieved after 10 p.m. on the day the request is submitted but before 6 a.m. the next morning when the stores open.
Example 5: Changing an Activity to Send and Install an Object
CHGOBJCRQA CRQD(MYLIB/CR1) ACTIVITY(ACT01) ACTION(*SNDINS) TEXT('New text for changed CRQ')
This command changes an activity from sending the object to sending and installing the object. The text is also changed.
Top |
None
Top |