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

• Attributes<br />

If there are any attributes that apply to the character text, they are returned in the<br />

attribute table. The number of attributes is returned in NUMBER_OF_ATTRIBUTES.<br />

• Line number<br />

CTS, fractional, and generated sequential line numbers are returned in the field<br />

LINE_NUMBER_INTEGER_PART. Fractional line numbers are returned in the array<br />

LINE_NUMBER_FRACTIONAL_PART (1:4). The line number type is returned in the<br />

field LINE_NUMBER_TYPE.<br />

• Image location<br />

The mass storage sector address and word offset of the image read are returned in<br />

the fields IMAGE_ADDRESS_SECTOR and IMAGE_ADDRESS_WORD_OFFSET,<br />

respectively.<br />

• Control word<br />

The image control word for data or control records is returned in the field<br />

SDF_IMAGE_CONTROL_WORD. If a control record was read, any data words of the<br />

control record are returned to the caller in the text buffer.<br />

If SAR_READ encounters an end-of-file condition, the CALL_STATUS field of the READ<br />

packet is set to status S'End_of_file'.<br />

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

CALL_STATUS contains the status code. See 17.1.4 for a list of READ function status<br />

codes.<br />

17.1.3.3. SAR_CLOSE_INPUT Procedure Call<br />

The SAR_CLOSE_INPUT procedure closes the input operation, which must be done<br />

when all input is completed.<br />

Calling Format<br />

PROCEDURE SAR_CLOSE_INPUT<br />

(READ_PACKET_ADDRESS: WORD MACHINE POINTER)<br />

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

Returns<br />

SAR_CLOSE_OUTPUT returns the calling status in the READ packet field<br />

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

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

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

function status codes.<br />

7833 1733–004 17–15

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

Saved successfully!

Ooh no, something went wrong!