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.

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

SA$OCHART<br />

SA$LINESPA<br />

Calling Format<br />

S$ARATREAD atrpkt<br />

error return<br />

end-of-file return<br />

normal return<br />

SAR$ ATREAD<br />

where atrpkt is a label identifying the starting address of the ATREAD packet and data<br />

area.<br />

Returns<br />

error<br />

If S$ARATREAD takes the error return, A1 contains the call status code, A2 contains<br />

the I/O status code, and A3 contains the substatus code. These status codes are<br />

also returned in the packet fields SA$CALLST, SA$IOSTAT, and SA$SUBSTAT,<br />

respectively. See 19.2.4 for an explanation of the status codes.<br />

end-of-file<br />

normal<br />

If S$ARATREAD takes the end-of-file return, the ATREAD request encountered an<br />

end-of-file condition. A1 contains the call status code, A2 contains the I/O status<br />

code, and A3 contains the substatus code. These status codes are also returned in<br />

the packet fields SA$CALLST, SA$IOSTAT, and SS$SUBSTAT, respectively.<br />

If S$ARATREAD takes the normal return, the ATREAD call was successful. The<br />

following information is returned by ATREAD 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 SA$ITEXTB and SA$TEXTLEN, respectively.<br />

• Character type<br />

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

• Attributes<br />

The address of the attribute table and the number of entries are returned in the<br />

fields SA$IATTRT and SA$NUMATTR, respectively.<br />

7833 1733–004 19–21

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

Saved successfully!

Ooh no, something went wrong!