Use the VARSIZE() function to set and return 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.
The VARSIZE() function has this syntax:
cursize = VARSIZE([value])
The VARSIZE() function takes these arguments.
Current or new size limit (or error text).
Maximum length to be permitted for a REXX variable string.
Default: The current value is returned and left unchanged.
The VARSIZE() function produces these return codes:
ARG 1 MISSING OR INVALID
Example
varsize() == '32767' /* Current maximum variable length */
| Copyright © 2012 CA. All rights reserved. | Tell Technical Publications how we can improve this information |