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.

19.1.3.2. SAR_ATREAD Procedure Call<br />

SAR$ ATREAD<br />

The SAR_ATREAD procedure constructs an image from the output text and output<br />

attributes, writes the image to the current output stream, reads an image from the<br />

current input stream, and returns the character text and attributes of the image to the<br />

calling program.<br />

Initial Conditions<br />

The calling program sets the following parameters in the packet to appropriate values<br />

before calling SAR_ATREAD:<br />

• Required parameters (described in 19.1.1.1)<br />

OUTPUT_TEXT_BUFFER_ADDRESS<br />

OUTPUT_TEXT_BUFFER_BYTE_LENGTH<br />

OUTPUT_ATTRIBUTE_TABLE_ADDRESS<br />

OUTPUT_ATTRIBUTE_TABLE_WORD_LENGTH<br />

INPUT_TEXT_BUFFER_ADDRESS<br />

INPUT_TEXT_BUFFER_BYTE_LENGTH<br />

INPUT_ATTRIBUTE_TABLE_ADDRESS<br />

INPUT_ATTRIBUTE_TABLE_WORD_LENGTH<br />

• Optional parameters (described in 19.1.1.2)<br />

OUTPUT_CHARACTER_TYPE<br />

OUTPUT_IMAGE_LINE_SPACING<br />

Calling Format<br />

PROCEDURE SAR_ATREAD<br />

(ATREAD_PACKET_ADDRESS: WORD MACHINE POINTER)<br />

IMPORTED (‘SAR$ATR$PG’);<br />

Returns<br />

SAR_ATREAD returns the calling status in the ATREAD packet field CALL_STATUS.<br />

If the status is S'Normal', then the call was successful. Following is the information<br />

returned by SAR$ to the caller:<br />

• Character text<br />

The address of the character text and the length in 9-bit bytes (characters) are<br />

returned in the fields INPUT_TEXT_BUFFER_ADDRESS and<br />

BYTE_LENGTH_OF_INPUT_TEXT, respectively.<br />

• Character type<br />

The character set type of the image read is returned in the field<br />

INPUT_CHARACTER_TYPE. The octal code of the character set type is returned in<br />

the field INPUT_CHARACTER_CODE.<br />

7833 1733–004 19–9

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

Saved successfully!

Ooh no, something went wrong!