Previous Topic: Sample Output from OPSTATUS

Next Topic: OPSUBMIT Function

OPSTORE Function

The OPSTORE function returns a character string of the specified length containing a copy of the virtual storage at the specified address.

At present, the only func value supported is S for Storage.

Note: The OPSTORE function can be used in OPS/REXX or AOF rules.

This function has the following format:

var = OPSTORE(func,address,length)
address

Address may be any virtual storage address in the home address space. When a REXX program runs in an APF-authorized environment, all virtual storage locations in the home address space can be accessed. Under usual circumstances, only production (not test) AOF rules run as APF-authorized. However, CA OPS/MVS TSO command processors that have been added to the TSO authorization tables are an exception to this rule. When a REXX program running in a non-APF-authorized environment invokes the OPSTORE function to access fetch-protected storage, a zero-length result is returned.

length

The length argument can be any non-negative integer value up to 256 (inclusive). This specifies the length of the virtual storage data to be returned in the result character string.

Examples: OPSTORE

The following are examples of the OPSTORE function: