This function allocates global variables that contain strings longer than 80 characters.
result = $GLOBAL(ALLOC,&name,length)
Parameters
Null string if the operation was successful. Otherwise, error text is returned.
Name of a global variable to be allocated. This variable must not have been previously used in any manner. If the name is coded directly in the function, it must be enclosed in single or double quotes. The name can also be placed in another variable and that variable name is specified as the argument.
Number of bytes to be reserved for data. The future assignments of data strings can take any length up to this value.
ARG n MISSING OR INVALID
Example
result = $global('alloc','&bigvar',1000)
vname = '&bigvar'
result = &global('alloc',vname,500)
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|