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.3. Close-Input Procedure Call (S$ARCLOSI)<br />

The S$ARCLOSI PROC closes the input operation.<br />

Calling Format<br />

S$ARCLOSI 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 />

Returns<br />

If the error return from S$ARCLOSI 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$ARCLOSI is taken, the input is successfully closed.<br />

17.2.4. Status Lists for MASM READ Procedures<br />

The READ procedure call status codes listed in Table 17–6 may be returned to the calling<br />

program in the SR$CALLST field of the READ packet. These call status codes are for<br />

SR$CURVER = 3 and above.<br />

Table 17–6. SAR$: READ Procedure SR$CALLST Status Codes<br />

Octal Code Status<br />

0 Normal return from SAR$.<br />

01 End-of-file condition reached by S$ARREAD.<br />

02 An I/O error has occurred in a READ procedure. See the SR$IOSTAT field for<br />

the status code and Table 17–7.<br />

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

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

05 An invalid value is specified for SR$LNUMFMT.<br />

06 The value for SR$IMGBUF is zero; an address must be given for the input<br />

image address.<br />

07 The value for SR$IMGBUFL is zero; a length must be given for the input image<br />

address.<br />

010 An invalid value is specified for SR$REQTYPE.<br />

011 An invalid value is specified for SR$UNTRFLG.<br />

17–30 7833 1733–004

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

Saved successfully!

Ooh no, something went wrong!