&SYSADATA_VOLUME System Variable Symbol

Use &SYSADATA_VOLUME in a macro definition to obtain the volume identifier of the first volume containing the data set to which the assembler is writing the associated data.

The local-scope system variable symbol &SYSADATA_VOLUME is assigned a read-only value each time a macro definition is called.

z/VM®
If the assembler runs on the CMS component of the z/VM operating system, and the associated data is being written to a Shared File System CMS file, &SYSADATA_VOLUME is assigned the value “** SFS”.
If the volume on which the data set resides is not labeled, &SYSADATA_VOLUME is assigned a null character string.
Notes:
  1. The value of the type attribute of &SYSADATA_VOLUME (T'&SYSADATA_VOLUME) is U, unless &SYSADATA_VOLUME is assigned a null character string, in which case the value of the type attribute is O.
  2. The value of the count attribute of &SYSADATA_VOLUME (K'&SYSADATA_VOLUME) is equal to the number of characters assigned as a value to &SYSADATA_VOLUME. If &SYSADATA_VOLUME is assigned a null character string, the value of the count attribute is 0. The maximum length of this system variable symbol is 6.