LIKE Example


Example:

 

D1

DIM

1

FX

FORM

123.456

IARR

INTEGER

1(3),("1"),("2"),("3")

DATA

INIT

"THIS IS A TEST!"

.

 

 

nD1

LIKE

D1

nFX

LIKE

FX

nIARR

LIKE

IARR

nData

LIKE

DATA

 

This code shows the creations of new variables based on existing variables using the LIKE compiler directive.

 



PL/B Language Reference