ADDRESS SET

Set the address of a structure or pointer.

Read syntax diagramSkip visual syntax diagram
ADDRESS SET

>>-ADDRESS--+-SET(data-area)--USING(ptr-ref)-+-----------------><
            '-SET(ptr-ref)--USING(data-area)-'   

 

Description

The value from the USING option is used to set the reference in the SET option.

Options

SET(data-area/ptr-ref)
sets a pointer reference.
USING(ptr-ref/data-area)
supplies a pointer value.

COBOL example of ADDRESS SET

To set the address of a structure to a known pointer value:
EXEC CICS ADDRESS SET(address of struc)
          USING(ptr)
To set a pointer variable to the address of a structure:
EXEC CICS ADDRESS SET(ptr)
          USING(address of struc01)


dfhp4_addressset.html | Timestamp icon Last updated: Thursday, 27 June 2019