CHGOPSAI
The CHGOPSAI instruction defines or modifies the system automation information associated with the operations of an application occurrence. The COMMTEXT keyword always must be specified; you can disable AUTFUNC, COMPINFO, and SECELEM by setting them to blank.
For a description of the keywords that can be used, see Keywords used in the Chgopsai Instructions.
| Keyword | Requirement | Multiple Values Allowed | Description | Abbreviation | Format |
|---|---|---|---|---|---|
| APPL() | Required | No | The name of the application to be modified. | ||
| OPNO() | Required | No | The number of the operation to be modified. | OP | |
| AUTFUNC | Optional | No | Automated function for the system automation integration. It can be up to 8 characters. | ||
| COMMTEXT | Optional² | No | Command text for the system automation integration. It can be up to 255 characters. | ||
| COMPINFO | Optional | No | Completion information for the system automation integration. It can be up to 64 characters. | ||
| IA() | Optional¹ | No | The input arrival date and time of the application occurrence. IA(=) assumes the current date and time. It defaults to the earliest or latest input arrival date and time of the application occurrences found in the current plan, depending on the SORT parameter. IA() cannot be used together with IADATE() or IATIME(). | YYMMDDHHMM | |
| IADATE() | Optional¹ | No | The input arrival date of the application occurrence. IADATE(=) assumes the current date. IADATE() and IA() are mutually exclusive. | IAD | YYMMDD |
| IATIME | Optional¹ | No | The input arrival time of the application occurrence. If IADATE(=) is specified, IATIME() assumes that the default input arrival time is specified in the DEFIAT parameter of the EQQYRPRM member. IADATE() and IA() are mutually exclusive. | IAT | HHMM |
| SECELEM | Optional | No | Security element for the system automation integration. It can be up to 8 characters. | ||
|
¹ Mutually exclusive with another keyword. | |||||
Examples:
- CHGOPSAI APPL(TEST01) COMMTEXT(DAILY PAYROLL JOB) SECELEM(AAA)
- Sets the command text and security element for the operations of application TEST01
- CHGOPSAI APPL(TEST01) AUTFUNC()
- Deletes the automated function for the operations of application TEST01
The CHGOPSAI instruction returns one of the following return codes:
- RESULT = 0
- Occurrence modified.
- RESULT = 4
- Occurrence or operations not found in the current plan.
- RESULT = 8
- Invalid instruction or PIF problem. Refer to the error messages.