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$ READ<br />

17.2.3.1. Open-Input Procedure Call (S$AROPENI)<br />

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

S$AROPENI PROC 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 S$AROPENI:<br />

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

SR$PKTVER<br />

SR$INPBUFL<br />

SR$FIPADDR<br />

SR$IMGBUF<br />

SR$INPBUF<br />

SR$IMGBUFL<br />

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

SR$SELLST<br />

SR$UNTRFLG<br />

SR$SELLSTL<br />

SR$LNUMFMT<br />

SR$REQTYPE<br />

SR$SDFCNTL<br />

Calling Format<br />

S$AROPENI rpkt<br />

error return<br />

normal return<br />

where rpkt is a label identifying the starting address of the READ packet and data area.<br />

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

placing any parameters in the packet.<br />

Returns<br />

If the error return from S$AROPENI is taken, A1 contains the call status code, A2<br />

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

are also returned in the packet fields SR$CALLST, SR$IOSTAT, and T1 of SR$STATUS,<br />

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

If the normal return from S$AROPENI is taken, the initialization of the READ packet is<br />

successful.<br />

17–28 7833 1733–004

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

Saved successfully!

Ooh no, something went wrong!