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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

SAR$ ATREAD<br />

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

SA$ISLIST<br />

SA$ISLISTL<br />

SA$REQTYPE<br />

SA$PCW<br />

Note: It is recommended that the calling program zero-fill the ATREAD packet before<br />

placing any parameters in the packet.<br />

Calling Format<br />

S$ARINITATR atrpkt<br />

error return<br />

normal return<br />

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

area.<br />

Returns<br />

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

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

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

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

If S$ARINITATR takes the normal return, the initialization of the ATREAD packet is<br />

successful.<br />

19.2.3.2. ATREAD Procedure Call (S$ARATREAD)<br />

The S$ARATREAD PROC 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 ATREAD packet to appropriate<br />

values before calling S$ARATREAD:<br />

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

SA$OTEXTB<br />

SA$OATTRTL<br />

SA$IATTRT<br />

SA$OTEXTBL<br />

SA$ITEXTB<br />

SA$IATTRTL<br />

SA$OATTRT<br />

SA$ITEXTBL<br />

19–20 7833 1733–004

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

Saved successfully!

Ooh no, something went wrong!