Changing storage access

With the IARVSERV macro, the SHARE and CHANGEACCESS parameters can change the views type of storage access. For SHARE, the current storage attribute of the source data affects the outcome of the target. Table 1 shows the permitted target views for different combinations with the source. A NO in the table means that an abend will occur if you request that target view with the current source view. For CHANGEACCESS, all combinations are permitted.

Table 1. Allowed Source/Target View Combinations for Share
Current Requested Target View
Source View READONLY SHAREDWRITE UNIQUEWRITE TARGETWRITE HIDDEN LIKESOURCE
READONLY Yes No Yes Yes Yes Yes
SHAREDWRITE Yes Yes Yes Yes Yes Yes
UNIQUEWRITE Yes Yes Yes Yes Yes Yes
TARGETWRITE No No Yes No No Yes
HIDDEN (Shared) No No No No No Yes
Non-Shared Yes Yes Yes Yes Yes Yes
HIDDEN (Non-Shared) No No No No No Yes
The following apply when using IARVSERV SHARE when changing storage access:
The following apply when changing the storage access with IARVSERV CHANGEACCESS: