22.02.2015 Views

HLASM Language Reference

HLASM Language Reference

HLASM Language Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

&SYSTERM_DSN System Variable Symbol<br />

&SYSTERM_DSN System Variable Symbol<br />

Use &SYSTERM_DSN in a macro definition to obtain the name of the data set to<br />

which the assembler is writing the terminal records.<br />

The local-scope system variable symbol &SYSTERM_DSN is assigned a read-only<br />

value each time a macro definition is called.<br />

When the assembler runs on the MVS operating systems, the value of the<br />

character string assigned to &SYSTERM_DSN is always the value stored in the<br />

JFCB for SYSTERM. If SYSTERM is allocated to DUMMY, or a NULLFILE, the<br />

value in &SYSTERM_DSN is NULLFILE.<br />

When the assembler runs on the CMS component of the VM operating systems,<br />

the value of the character string assigned to &SYSTERM_DSN is determined as<br />

follows:<br />

Figure 76. Contents of &SYSTERM_DSN on CMS<br />

SYSTERM Allocated To:<br />

CMS file<br />

Dummy file (no physical I/O)<br />

Printer<br />

Labeled tape file<br />

Contents of &SYSTERM_DSN:<br />

The 8-character filename, the<br />

8-character filetype, and the<br />

2-character filemode of the file, each<br />

separated by a space<br />

DUMMY<br />

PRINTER<br />

The data set name of the tape file<br />

Unlabeled tape file TAPn, where n is a value from 0 to 9,<br />

or A to F.<br />

Terminal<br />

TERMINAL<br />

On VSE, the value of the character string assigned to &SYSTERM_DSN is always<br />

SYSLOG.<br />

Examples:<br />

On MVS, &SYSTERM_DSN might be assigned a value such as:<br />

IBMAPC.IBMAPCA.JOB6734.D14.?<br />

On CMS, &SYSTERM_DSN might be assigned a value such as:<br />

TERMINAL<br />

Notes:<br />

1. If the TERM user exit provides the terminal data set information then the value<br />

in &SYSTERM_DSN is the value extracted from the Exit-Specific Information<br />

block described in the <strong>HLASM</strong> Programmer's Guide.<br />

2. The value of the type attribute of &SYSTERM_DSN (T'&SYSTERM_DSN) is<br />

always U.<br />

3. The value of the count attribute of &SYSTERM_DSN (K'&SYSTERM_DSN) is<br />

equal to the number of characters assigned as a value to &SYSTERM_DSN.<br />

294 <strong>HLASM</strong> V1R5 <strong>Language</strong> <strong>Reference</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!