Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
STORAGE z/OS TSO/E REXX Reference SA32-0972-00 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
>>-STORAGE(address-+------------------------+-)---------------->< '-,-+--------+-+-------+-' '-length-' '-,data-' STORAGE returns length bytes of data from the specified address in storage. The address is a character string containing the hexadecimal representation of the storage address from which data is retrieved. The address can be a 31-bit address, represented by 1 to 8 hexadecimal characters. The address can also be a 64-bit address represented by 9 to 17 characters which consists of 8 to 16 hexadecimal characters plus an optional underscore ("_") character separating the high order half and low order half of the 64-bit address. If an "_" is part of the 64-bit address, it must be followed by exactly 8 hexadecimal digits in the low order (or right) half of the 64-bit address. Optionally, you can specify length, which is the decimal number of bytes to be retrieved from address. The default length is one byte. When length is 0, STORAGE returns a null character string. If you specify data, STORAGE returns the information from address and then overwrites the storage starting at address with data you specified on the function call. The data is the character string to be stored at address. The length argument has no effect on how much storage is overwritten; the entire data is written. If the REXX environment under which STORAGE is executing is configured to allow STORAGE to run in read-only mode, then the STORAGE function can be used to read but not alter storage. In this case, do not specify a data argument. If you do specify a new value in the third argument while executing in read-only mode, error message IRX0241I will be issued and the STORAGE function will end in error. You can use the STORAGE function in REXX execs that run in any MVS™ address space (TSO/E and non-TSO/E). If the STORAGE function tries to retrieve or change data beyond the storage limit, only the storage up to the limit is retrieved or changed. Virtual storage addresses may be fetch protected, update protected, or may not be defined as valid addresses to the system. Any particular invocation of the STORAGE function may fail if it references a non-existent address, attempts to retrieve the contents of fetch protected storage, or attempts to update non-existent storage or is attempting to modify store protected storage. In all cases, a null string is returned to the REXX exec. The STORAGE function returns a null string if any part of the request fails. Because the STORAGE function can both retrieve and update virtual storage at the same time, it is not evident whether the retrieve or update caused the null string to be returned. In addition, a request for retrieving or updating storage of a shorter length might have been successful. When part of a request fails, the failure point is on a decimal 4096 boundary. Examples: The following are some examples of using STORAGE:
|
Copyright IBM Corporation 1990, 2014
|