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 />

19.1.3. ATREAD Procedures Called from PLUS<br />

The procedures for the ATREAD function are<br />

• SAR_INITIALIZE_ATREAD<br />

• SAR_ATREAD<br />

• SAR_RESTORE_ATREAD<br />

The procedure declarations for SAR_INITIALIZE_ATREAD, SAR_ATREAD, and<br />

SAR_RESTORE_ATREAD are contained in the element SAR$ATR$DG in the <strong>SYSLIB</strong> file<br />

SYS$LIB$*<strong>SYSLIB</strong>. This element may be obtained with the COPY statement.<br />

SAR$ATR$DG contains all three procedure declarations. All of the ATREAD procedure<br />

modules are compiled with the G option using the IBJ$ calling sequence.<br />

19.1.3.1. SAR_INITIALIZE_ATREAD Procedure Call<br />

The ATREAD packet data structure must be initialized before calling SAR_ATREAD. The<br />

SAR_INITIALIZE_ATREAD procedure performs the ATREAD packet initialization.<br />

Initial Conditions<br />

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

values before calling SAR_INITIALIZE_ATREAD:<br />

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

PACKET_VERSION<br />

IMAGE_BUFFER_ADDRESS<br />

IMAGE_BUFFER_WORD_LENGTH<br />

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

INPUT_SELECT_LIST_ADDRESS<br />

NPUT_SELECT_LIST_BYTE_LENGTH<br />

NPUT_REQUEST_TYPE<br />

PRINT_CONTROL_WIDTH<br />

Note: The caller should zero-fill the ATREAD packet before placing any parameters in<br />

the packet.<br />

Calling Format<br />

PROCEDURE SAR_INITIALIZE_ATREAD<br />

(ATREAD_PACKET_ADDRESS: WORD MACHINE POINTER)<br />

IMPORTED ('SAR$INATR$PG');<br />

Returns<br />

SAR_INITIALIZE_ATREAD returns the initialization status in the packet in CALL_STATUS.<br />

If the status is S'Normal', the initialization of the ATREAD packet is successful.<br />

Otherwise an error has occurred and CALL_STATUS contains the status code.<br />

See 19.1.4 for the ATREAD function status code lists.<br />

19–8 7833 1733–004

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

Saved successfully!

Ooh no, something went wrong!