CHGS36PGMA (Change System/36 Program Attributes)

CHGS36PGMA Command syntax diagram

 

Purpose

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

 

Required Parameters

PGM
Specifies the qualified name of the program having its attributes changed.

The name of the program can be qualified by one of the following library values:

*LIBL: All libraries in the job's library list are searched until the first match is found.

*CURLIB: The current library for the job is searched. If no library is specified as the current library for the job, the QGPL library is used.

library-name: Specify the name of the library to be searched.

program-name: Specify the name of the program.

 

Optional Parameters

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

*SAME: The value does not change.

number-of-requesters: Specify the maximum number of requesters for a program. Valid values range from 1 through 256. The value cannot be increased beyond the current value.

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

*SAME: The value does not change.

*NO: The program is not a never-ending program.

*YES: The program is a never-ending program.

Example for CHGS36PGMA

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.

Error messages for CHGS36PGMA

*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
Program &1 in library &2 not found.
CPF9830
Cannot assign library &1.