SET GLOBAL STEM

Writes the data in the specified REXX stemmed arrays to the same named Global Storage stems.

Read syntax diagramSkip visual syntax diagramSETGLObalstem-name.
stem-name.
A REXX stemmed array name. Must have a terminating period.

Each REXX stemmed array must be in standard EXECIO READ/WRITE stem format.

Any existing Global Storage stem by the same name is dropped before the REXX stemmed array is inspected.

If the stemname.0 item is not a positive integer, an error message is issued. The new Global Storage stem is not created.

If a REXX stemmed array element is omitted, an error message is issued. The new Global Storage stem is not created.

REXX stemmed array elements with null values are supported.

If a REXX stemmed array element is longer than 4,096 bytes, an error message is issued. The new Global Storage stem is not created.

Examples

SET GLOBAL ptr-array.
SET GLOBAL data.buf1.stem.

REXX variables read

stemname.0
Number of items in the stemmed array
stemname.n
Information for the stemmed array element