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.

SAR$ READ<br />

CONTROL_RECORD_WORD_LENGTH<br />

PLUS Attribute: 6-bit integer<br />

The length in words of the control record read.<br />

CONTROL_RECORD_CHAR_TYPE<br />

PLUS Attribute: 6-bit status<br />

The character set type of the control record, if applicable to this control record<br />

type (see the CHARACTER_TYPE field).<br />

If a data record was read, SDF_IMAGE_CONTROL_WORD has two subfields that<br />

are overlaid on SDF_IMAGE_CONTROL_WORD.<br />

DATA_RECORD_WORD_LENGTH<br />

PLUS Attribute: 12-bit integer<br />

The length in words of the data record read.<br />

DATA_RECORD_CHAR_TYPE<br />

PLUS Attribute: 6-bit status<br />

The character set type of the data record, if applicable to this input file type (see the<br />

CHARACTER_TYPE field).<br />

See the Data Structures <strong>Programming</strong> <strong>Reference</strong> <strong>Manual</strong> on SDF image control words.<br />

17.1.2. Buffers and Tables for PLUS READ Procedures<br />

The SAR$ READ function requires that an input (I/O) buffer, an image buffer, a text<br />

buffer, an attribute table, and a select list be supplied by the calling program.<br />

• Input buffer<br />

The input buffer is used to read from mass storage files. The calling program never<br />

needs to access the input buffer, but it must provide it to SAR$. If the calling<br />

program is using both the READ and WRITE functions of SAR$, then it cannot use<br />

the same I/O buffer for both functions. The calling program must provide a separate<br />

input and output buffer for each function.<br />

• Image buffer<br />

The image buffer is used to extract individual images from the input buffer. This<br />

buffer is necessary because images can contain information other than characters,<br />

such as attributes and ACD formats. The calling program never needs to access the<br />

image buffer, but it must provide it to SAR$. The calling program using the READ<br />

and WRITE functions can use the same image buffer for both functions.<br />

17–10 7833 1733–004

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

Saved successfully!

Ooh no, something went wrong!