SET statement

Other topics

Remarks:

The COBOL SET statement sets values, and operating environment data. It can be argued that SET was overused by the committee, as it has over a dozen documented syntax formats.

SET statement syntax diagrams

SET pointer example

SET handle TO returned-pointer
SET handle UP BY LENGTH(returned-pointer)
SET ADDRESS OF buffer-space TO handle
MOVE buffer-space TO work-store
DISPLAY "Second element is " work-store

Contributors

Topic Id: 7461

Example Ids: 24661

This site is not affiliated with any of the contributors.