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.

SAR$ WRITE<br />

Empty symbiont output files may not be created by simply calling S$AROPENO followed<br />

by S$ARCLOSO. An empty symbiont file may be created by setting SW$PCW to a<br />

nonzero value when calling S$AROPENO, followed by a call to S$ARCLOSO. This will<br />

cause a print control image to be generated, which will open the output file. If SW$PCW<br />

is zero when creating an "empty" symbiont file, an error will occur during S$ARCLOSO.<br />

18.2.1. WRITE Packet and Data Area Description<br />

The SAR$ write function requires a WRITE packet and data area for the open-output,<br />

write, and close-output calls. The S$ARWPDEF PROC generates the EQUFs defining<br />

the packet fields. The word length of the MASM WRITE packet and data area is equal to<br />

label SW$PKTWLEN defined by the S$ARWPDEF PROC (the current length is 70<br />

words).<br />

18.2.1.1. Required Information for WRITE Procedures<br />

The calling program must set the following fields of the WRITE packet to appropriate<br />

values:<br />

SW$PKTVER<br />

The WRITE packet data structure version. The current version is equal to the label<br />

SW$CURVER, defined by the S$ARWPDEF PROC.<br />

SW$FIPADDR<br />

The address of the output file information packet. This packet is supplied by the<br />

caller (see 16.1). Set this field to zero if SW$OUTFILT is 2, 3, or 6.<br />

SW$OUTBUF<br />

The address of the output buffer used to write images to the output file or element.<br />

This field is defined only if output is to an SDF file or element. It is omitted if output<br />

is to a symbiont file. Subsection 15.6.2 describes the output buffer.<br />

SW$OUTBUFL<br />

The length in words of the output buffer. It must be of length (28 * dpf * n), where<br />

dpf is the disk prepping factor and n is a positive integer. This field is defined only if<br />

output is to an SDF file or element. It is omitted if output is to a symbiont file.<br />

SW$IMGBUF<br />

The address of the output image buffer into which the SAR$ places the images to be<br />

written out. Subsection 15.6.2 describes the image buffer.<br />

SW$IMGBUFL<br />

The length in words of the output image buffer.<br />

18–22 7833 1733–004

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

Saved successfully!

Ooh no, something went wrong!