RENAME control statement

The RENAME control statement has the following syntax:

Read syntax diagramSkip visual syntax diagram
Syntax

>>-RENAME--L-name--S-name--+--------+--------------------------><
                           '-SEARCH-'   

L-name
The name of the input L-name to be renamed on output. All occurrences of this L-name are renamed.
S-name
The name of the output S-name to which the L-name will be changed. This name can be at most 8 characters and case is respected.
SEARCH
An optional parameter specifying that if the S-name is undefined, the prelinker searches by an automatic library call for the definition of the S-name. SEARCH is not supported under z/OS UNIX.
The RENAME control statement is processed by the prelinker and can be used for several purposes:

RENAME control statements can be placed before, between, or after other control statements or object modules. An object module can contain only RENAME statements. Also, RENAME statements can be placed in input that is included because of other RENAME statements.