SET Statement

The SET statement can be used to:
  • Initialize the values of index-names or identifiers used to reference table elements
  • Increment or decrement an index-name
  • Set the status of an external switch to ON or OFF
  • Move data to make conditional variable conditions true
IBM Extension
IBM Extension
  • Set pointer and procedure-pointer data items and the ADDRESS OF special register
  • Set and query the locale categories of the current locale.
End of IBM Extension
End of IBM Extension

When the sending and receiving fields in a SET statement share part of their storage (that is, the operands overlap), the result of the execution of such a SET statement is undefined.

IBM Extension
End of IBM Extension