Change S/36 Program Attributes (CHGS36PGMA)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

The Change System/36 Program Attributes (CHGS36PGMA) command changes the attributes of the specified program.

Top

Parameters

Keyword Description Choices Notes
PGM S/36 program Qualified object name Required, Key, Positional 1
Qualifier 1: S/36 program Name
Qualifier 2: Library Name, *LIBL, *CURLIB
MRTMAX Maximum MRT's 1-255, *NONE Optional
NEP Never-ending program *SAME, *NO, *YES Optional
Top

S/36 program (PGM)

Specifies the name of the program whose attributes you want to change.

This is a required parameter.

The possible library values are:

*LIBL
The library list is used to locate the program.
*CURLIB
The current library for the job is used to locate the program. If no library is specified as the current library for the job, QGPL is used.
library-name
Specify the library where the program is located.
Top

Maximum MRT's (MRTMAX)

Specifies the maximum number of multiple requester terminals that can be attached to the program.

*SAME
The MRTMAX value is not changed.
number-of-requesters
Specify the maximum number of requesters for a program. Possible values range from 1 through 256. The value cannot be increased beyond the current value.
Top

Never-ending program (NEP)

Specifies whether the program is a never-ending program (NEP). NEP is defined as a long-running program.

*SAME
The NEP value does not change.
*NO
The program is not a never-ending program.
*YES
The program is a never-ending program.
Top

Examples

CHGS36PGMA   PGM(RPGLIB/RPGPGM)  MRTMAX(3)  NEP(*YES)

This command changes program RPGPGM in RPGLIB to allow up to three MRTs and to be a never-ending program.

Top

Error messages

*ESCAPE Messages

CPF2C01
Program &1 attributes not changed.
CPF2C02
Changing attributes not allowed for SSP program &1.
CPF2C03
MRTMAX parameter value &3 not correct.
CPF2C05
Program name *ALL not allowed with library *LIBL.
CPF9803
Cannot allocate object &2 in library &3.
CPF9811
Program &1 in library &2 not found.
CPF9820
Not authorized to use library &1.
CPF9830
Cannot assign library &1.
Top