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

18.1.3.2. SAR_WRITE Procedure Call<br />

The SAR_WRITE procedure writes images to the output file or element. Each call to<br />

SAR_WRITE writes out one image. The calling program must supply the character text<br />

of the image in the text buffer and the attributes for the text (if any) in the attribute table.<br />

SAR_WRITE combines the text and attributes into the proper format and writes out the<br />

image.<br />

Initial Conditions<br />

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

values before calling SAR_WRITE:<br />

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

TEXT_BUFFER_ADDRESS<br />

TEXT_BUFFER_BYTE_LENGTH<br />

ATTRIBUTE_TABLE_ADDRESS<br />

ATTRIBUTE_TABLE_WORD_LENGTH<br />

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

OUTPUT_RECORD_TYPE<br />

INPUT_TEXT_CHARACTER_TYPE<br />

OUTPUT_IMAGE_LINE_SPACING<br />

LINE_NUMBER_INTEGER_PART<br />

LINE_NUMBER_FRACTIONAL_PART(1:4)<br />

Calling Format<br />

PROCEDURE SAR_WRITE<br />

(WRITE_PACKET_ADDRESS: WORD MACHINE POINTER)<br />

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

Returns<br />

SAR_WRITE returns the calling status in the WRITE packet field CALL_STATUS. If the<br />

status is S'Normal', then the write was successful. The following fields of the WRITE<br />

packet contain information returned by SAR$ to the calling program:<br />

IMAGE_BYTE_LENGTH<br />

IMAGE_ADDRESS_SECTOR<br />

IMAGE_ADDRESS_WORD_OFFSET<br />

These parameters are described in 18.1.1.3.<br />

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

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

codes.<br />

18–14 7833 1733–004

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

Saved successfully!

Ooh no, something went wrong!