18.08.2013 Views

(SYSLIB) Programming Reference Manual - Public Support Login ...

(SYSLIB) Programming Reference Manual - Public Support Login ...

(SYSLIB) Programming Reference Manual - Public Support Login ...

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.

Section 16<br />

SAR$–Symbolic Access Routines<br />

The Symbolic Access Routines (SAR$) allow the calling program to read and write<br />

system data format (SDF) files.<br />

SAR$ has four main functions:<br />

• READ<br />

Read symbolic images from SDF files, SDF elements, the READ$ file, or an alternate<br />

READ$ file.<br />

• WRITE<br />

Write symbolic images to SDF files, SDF elements, the standard PRINT$ file, the<br />

standard PUNCH$ file, alternate PRINT$ files, or alternate PUNCH$ files.<br />

• ATREAD<br />

Write a symbolic image to the current output stream and read a symbolic image<br />

from the current input stream.<br />

• COM<br />

Write a symbolic image to the operator's console and read a symbolic image from<br />

the operator's console.<br />

Symbolic images have traditionally been in the Fieldata, ASCII/ISO, or attributed<br />

character data (ACD) character sets. Additional coded character sets (CCS) have now<br />

been defined and are supported by the Symbolic Access Routines. A total of 63 CCSs<br />

are currently defined. Forty of these are referred to as ASCII-like. This means that the<br />

character set is essentially identical to the ASCII/ISO character set in the octal range 000<br />

through 0177, with any differences being minor. Refer to the ER <strong>Programming</strong><br />

<strong>Reference</strong> <strong>Manual</strong>, Table 14–1, for a detailed description of the CCSs. Throughout<br />

Section 16, wherever ASCII or ASCII/ISO is used, the SAR$ capabilities apply equally to<br />

all ASCII-like character sets.<br />

The SAR$ functions may be called from either PLUS or MASM programs. These<br />

functions are described in the following subsections.<br />

SAR$ is available in relocatable elements and in the <strong>SYSLIB</strong> common banks. The READ,<br />

ATREAD, and COM functions are in the common bank absolute <strong>SYSLIB</strong>$3. The WRITE<br />

function is in the common bank absolute <strong>SYSLIB</strong>$4. Appendix E lists the relocatable and<br />

common bank entry points for SAR$.<br />

7833 1733–004 16–1

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

Saved successfully!

Ooh no, something went wrong!