LIKE


9.0B, ANSI

 

The LIKE compiler directive allows a new DIM, FORM, or INTEGER data variable to be declared that has the same data variable type, variable size, and value as a previously declared data variable. The instruction uses the format:

 

 

label

LIKE

{var}

 

Where:

label

Required. A Data Definition Label.

var

Required. A previously declared DIM, FORM, or INTEGER variable label reference.

Flags Affected: NONE

Note the following:

  1. The {var} label reference can be an array label reference without an index.

 

 

See Also: Example Code, Compiler Directives

 



PL/B Language Reference INCLUDE LISTON and LISTOFF