REPLACE POINTER-VALUED ATTRIBUTE Statement

The REPLACE POINTER-VALUED ATTRIBUTE statement changes the value of a pointer-valued attribute.

<replace pointer-valued attribute statement>

── REPLACE ──<pointer-valued attribute>── BY ──────────────────────────►
►─┬─<simple source>────────────┬───────────────────────────────────────┤
  └─<pointer-valued attribute>─┘

<pointer-valued attribute>

──┬─<pointer-valued file attribute>───┬────────────────────────────────┤
  ├─<pointer-valued task attribute>───┤
  └─<string-valued library attribute>─┘

<pointer-valued file attribute>

──<file designator>─┬─────────────────────────────────────┬─ . ────────►
                    └─<attribute parameter specification>─┘
►─<pointer-valued file attribute name>─────────────────────────────────►
►─┬─────────────────────────────────┬──────────────────────────────────┤
  └─ ( ──<arithmetic variable>── ) ─┘

The attribute error number returned from the operating system can be captured in the <arithmetic variable>.

<pointer-valued task attribute>

──<task designator>── . ──<pointer-valued task attribute name>─────────┤

<pointer-valued task attribute name>

Task attributes of type string can be used according to the constraints listed in the Task Attributes Programming Reference Manual.

<string-valued library attribute>

──<library attribute designator>── . ──────────────────────────────────►
►─<string-valued library attribute name>───────────────────────────────┤

When the REPLACE POINTER-VALUED ATTRIBUTE statement is executed, a call is made on an operating system procedure to perform the desired function.