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.

19.1.4. SAR_RESTORE_ATREAD Procedure Call<br />

SAR$ ATREAD<br />

The SAR_RESTORE_ATREAD procedure restores the caller's environment, if it was<br />

changed by SAR_ATREAD. Specifically, if SAR_ATREAD changed the print line width,<br />

SAR_RESTORE_ATREAD will reset the print line width to the device default.<br />

There are no required packet parameters for the SAR_RESTORE_ATREAD call.<br />

However, SAR_RESTORE_ATREAD expects that a prior call to the<br />

SAR_INITIALIZE_ATREAD routine was made.<br />

Calling Format<br />

PROCEDURE SAR_RESTORE_ATREAD<br />

(ATREAD_PACKET_ADDRESS: WORD MACHINE POINTER)<br />

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

Returns<br />

SAR_RESTORE_ATREAD returns the calling status in the ATREAD packet field,<br />

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

If the status returned from SAR_RESTORE_ATREAD is not S'Normal', then an error has<br />

occurred, and CALL_STATUS contains the status code. See 19.1.5 for a list of ATREAD<br />

function status codes.<br />

19.1.5. Status Lists for PLUS ATREAD Procedures<br />

The ATREAD procedure call status codes listed in Table 19–3 may be returned to the<br />

calling program in the CALL_STATUS field of the ATREAD packet. These CALL_STATUS<br />

codes are for SAR_ATREAD_PACKET_CURRENT_VERSION = 1 and above. A list of all<br />

call status codes is available as ATREAD_CALL_STATUS_LIST, an 18-bit status data<br />

entity defined in the element SAR$ATRPKTD.<br />

Table 19–3. SAR$: ATREAD Procedure CALL_STATUS Codes<br />

Octal Code Status<br />

0 Normal return from the ATREAD procedure.<br />

01 End-of-file condition reached by SAR_ATREAD.<br />

02 An I/O error has occurred in an ATREAD procedure. See the<br />

IO_STATUS_CODE field for the status code.<br />

03 An outdated ATREAD packet version is being used.<br />

04 An invalid ATREAD packet version is being used.<br />

05 The ATREAD packet is not initialized; a call to SAR_INITIALIZE_ATREAD<br />

must be made before calling SAR_ATREAD.<br />

06 The value for IMAGE_BUFFER_ADDRESS is NULL; an address must be<br />

given for the input image buffer.<br />

7833 1733–004 19–11

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

Saved successfully!

Ooh no, something went wrong!