Change S/36 Proc Attributes (CHGS36PRCA)

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

The Change System/36 Procedure Attributes (CHGS36PRCA) command changes the attributes of the specified procedure.

Top

Parameters

Keyword Description Choices Notes
MBR S/36 procedure member Name Required, Key, Positional 1
FILE Source file Qualified object name Optional, Key, Positional 2
Qualifier 1: Source file Name, QS36PRC
Qualifier 2: Library Name, *LIBL, *CURLIB
MRT MRT procedure *SAME, *NO, *YES Optional
MRTDLY MRT delay *SAME, *NO, *YES Optional
LOG Log OCL statements *SAME, *NO, *YES Optional
PGMDTA Contains program data *SAME, *NO, *YES Optional
RCDLEN Logical record length 40-120, *SAME, *FILE Optional
REFNBR Reference number 0-999999, *SAME, *NEXT Optional
Top

S/36 procedure member (MBR)

Specifies the name of the procedure member that has its attributes changed.

This is a required parameter.

procedure-member-name
Specify the name of the procedure member having its attributes changed.
Top

Source file (FILE)

Specifies the name of the physical file containing the procedure member.

QS36PRC
Specifies the name of the default physical file.
source-file-name
Specify the name of the physical file.

The possible library values are:

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

MRT procedure (MRT)

Specifies whether the procedure is a multiple requester terminal (MRT) procedure.

*SAME
The MRT value does not change.
*NO
The procedure is not a multiple requester terminal procedure.
*YES
The procedure is a multiple requester terminal procedure.
Top

MRT delay (MRTDLY)

Specifies whether the procedure should use the default MRT delay value.

*SAME
The MRTDLY parameter does not change.
*YES
The procedure uses the default MRT delay value.
*NO
The procedure does not use the default MRT delay value.
Top

Log OCL statements (LOG)

Specifies whether the operator control language (OCL) statements are copied to the job log when the procedure is run.

*SAME
The LOG value does not change.
*NO
The OCL statements are not copied to the job log.
*YES
The OCL statements are copied to the job log.
Top

Contains program data (PGMDTA)

Specifies whether the procedure passed data or parameters to the program.

*SAME
The DTA value does not change.
*NO
The procedure passes parameters to the program.
*YES
The procedure passes data to the program.
Top

Logical record length (RCDLEN)

Specifies the logical record length of the statements in the procedure member.

*SAME
The RCDLEN value does not change.
*FILE
The record length of the file specified by the Source file prompt (FILE parameter) is used.
record-length
Specify the logical record length. Valid values range from 40 through 120.
Top

Reference number (REFNBR)

Specifies the reference number that is assigned to the procedure member.

*SAME
The REFNBR value does not change.
*NEXT
The current reference number is increased by one.
reference-number
Specify the reference number of the procedure member. Valid values range from 0 through 999,999.
Top

Examples

CHGS36PRCA   MBR(RPGPROC)  FILE(RPGLIB/QS36PRC)  MRT(*YES)
             RCDLEN(*FILE)  REFNBR(*NEXT)

This command changes procedure RPGPROC in file QS36PRC in library RPGLIB to be an MRT procedure with a logical record length the same as the QS36PRC file, and increments the current reference number by one.

Top

Error messages

*ESCAPE Messages

CPF2C0A
Member &3 attributes not changed.
CPF2C0B
Changing attributes not allowed for SSP member &3.
CPF2C08
File &1 is not a source file.
CPF9803
Cannot allocate object &2 in library &3.
CPF9812
File &1 in library &2 not found.
CPF9815
Member &5 file &2 in library &3 not found.
CPF9820
Not authorized to use library &1.
CPF9822
Not authorized to file &1 in library &2.
CPF9826
Cannot allocate file &2.
Top