&SYSADATA_DSN System Variable Symbol

Use &SYSADATA_DSN in a macro definition to obtain the name of the data set to which the assembler is writing the associated data.

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

z/OS

When the assembler runs on the z/OS operating systems, the value of the character string assigned to &SYSADATA_DSN is always the value stored in the JFCB for SYSADATA. If SYSADATA is allocated to DUMMY, or a NULLFILE, the value in &SYSADATA_DSN is NULLFILE.

For example, &SYSADATA_DSN might be assigned a value such as:

IBMAPC.SYSADATA
End of z/OS
z/VM

When the assembler runs on the CMS component of the z/VM operating systems, the value of the character string assigned to &SYSADATA_DSN is determined as follows:

Table 38. Contents of &SYSADATA_DSN on CMS
SYSADATA Allocated To: Contents of &SYSADATA_DSN:
CMS file The 8-character filename, the 8-character filetype, and the 2-character filemode of the file, each separated by a space
Dummy file (no physical I/O) DUMMY
Labeled tape file The data set name of the tape file
Unlabeled tape file TAPn, where n is a value from 0 to 9, or A to F.

For example, &SYSADATA_DSN might be assigned a value such as:

SAMPLE   SYSADATA A1
End of z/VM
z/VSE

The value of the character string assigned to &SYSADATA_DSN is the file id from the SYSADAT dlbl.

For example, &SYSADATA_DSN might be assigned a value such as:

MYDATA
End of z/VSE
Notes:
  1. The value of the type attribute of &SYSADATA_DSN (T'&SYSADATA_DSN) is always U.
  2. The value of the count attribute of &SYSADATA_DSN (K'&SYSADATA_DSN) is equal to the number of characters assigned as a value to &SYSADATA_DSN. In the CMS example above, the count attribute of &SYSADATA_DSN is 20.

[ Top of Page | Previous Page | Next Page | Contents | Index ]