&SYSTERM_DSN System Variable Symbol

Use &SYSTERM_DSN in a macro definition to obtain the name of the data set to which the assembler is writing the terminal records.

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

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

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

Table 47. Contents of &SYSTERM_DSN on CMS
SYSTERM Allocated To: Contents of &SYSTERM_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
Printer PRINTER
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.
Terminal TERMINAL

On z/VSE, the value of the character string assigned to &SYSTERM_DSN is always SYSLOG.

Examples:

On z/OS, &SYSTERM_DSN might be assigned a value such as:

IBMAPC.IBMAPCA.JOB06734.D0000104.?

On CMS, &SYSTERM_DSN might be assigned a value such as:

TERMINAL

Notes:
  1. If the TERM user exit provides the terminal data set information then the value in &SYSTERM_DSN is the value extracted from the Exit-Specific Information block described in the section "Exit-Specific Information Block" in the HLASM Programmer's Guide.
  2. The value of the type attribute of &SYSTERM_DSN (T'&SYSTERM_DSN) is always U.
  3. The value of the count attribute of &SYSTERM_DSN (K'&SYSTERM_DSN) is equal to the number of characters assigned as a value to &SYSTERM_DSN.

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