Previous Topic: UNIQUE()Next Topic: VSAM()


VARSIZE()

This function sets and returns the maximum length of a REXX variable string. Typically, REXX variable strings have a maximum allowed length of 4096 bytes. Use VARSIZE() to specify a larger value. This specification applies only to the IMOD in which you set it. The value is not propagated across the CALL/RETURN interface.

Important! Be careful when specifying a larger value. Error conditions such as unplanned loops can temporarily deplete storage.

Syntax

cursize = VARSIZE([value])

Parameters

cursize

Current or new size limit (or error text).

value

Maximum length to be permitted for a REXX variable string.

Default: The current value is returned and left unchanged.

Return Codes

101

ARG 1 MISSING OR INVALID

Example

varsize() == '32767'   /* Current maximum variable length  */