Examples of REPLACE POINTER-VALUED ATTRIBUTE Statements

In the following example, the TITLE attribute of file FYLE is assigned "MASTER/PAYROLL.":

REPLACE FYLE.TITLE BY "MASTER/PAYROLL."

In the following example, the NAME attribute of the task TSK is assigned "SECOND/STACK.":

REPLACE TSK.NAME BY "SECOND/STACK."

In the following example, the NAME attribute of task T is assigned the value of the NAME attribute of task TS:

REPLACE T.NAME BY TS.NAME

In the following example, the NAME attribute of the task TSK is assigned the value of the NAME attribute of the task T.PARTNER:

REPLACE TSK.NAME BY T.PARTNER.NAME

In the following example, the INTNAME attribute of library L is assigned "INTLIB.":

REPLACE L.INTNAME BY "INTLIB."

In the following example, the TITLE attribute of library LIB_A is assigned the value of the TITLE attribute library LIB_B:

REPLACE LIB_A.TITLE BY LIB_B.TITLE