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.

17.1.3.1. SAR_OPEN_INPUT Procedure Call<br />

SAR$ READ<br />

The READ packet data structure must be initialized before any input images are read.<br />

The SAR_OPEN_INPUT procedure performs the READ packet initialization.<br />

Initial Conditions<br />

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

values before calling SAR_OPEN_INPUT:<br />

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

PACKET_VERSION<br />

INPUT_FILE_INFO_PKT_ADDRESS<br />

INPUT_BUFFER_ADDRESS<br />

INPUT_BUFFER_WORD_LENGTH<br />

IMAGE_BUFFER_ADDRESS<br />

IMAGE_BUFFER_WORD_LENGTH<br />

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

SELECT_LIST_ADDRESS<br />

SELECT_LIST_BYTE_LENGTH<br />

REQUEST_TYPE<br />

LINE_NUMBER_FORMAT<br />

UNTRANSLATE_MODE<br />

SDF_CONTROL_RECORDS_TO_PASS<br />

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

placing any parameters in the packet.<br />

Calling Format<br />

PROCEDURE SAR_OPEN_INPUT<br />

(READ_PACKET_ADDRESS: WORD MACHINE POINTER)<br />

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

Returns<br />

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

status is S'Normal', the initialization of the READ packet is successful. Otherwise an<br />

error has occurred, and CALL_STATUS contains the status code. See 17.1.4 for a list of<br />

the READ function status codes.<br />

7833 1733–004 17–13

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

Saved successfully!

Ooh no, something went wrong!