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.

Section 18<br />

SAR$ WRITE<br />

18.1. WRITE Function/PLUS Interface<br />

The SAR$ WRITE function writes symbolic images to SDF files, SDF elements, and<br />

symbiont files (PRINT$, PUNCH$, alternate PRINT$, and alternate PUNCH$). If an SDF<br />

element is written to, the element is added to the program file table of contents when<br />

the WRITE operation is completed (by calling SAR_CLOSE_OUTPUT).<br />

The SAR$ WRITE function procedures can be called from PLUS. These procedures are<br />

• SAR_OPEN_OUTPUT<br />

• SAR_WRITE<br />

• SAR_WRITE_CONTROL<br />

• SAR_CLOSE_OUTPUT<br />

All SAR$ data structure definitions and procedure calls are contained in definition<br />

elements. These elements are obtained with the PLUS COPY statement.<br />

Empty symbiont output files may not be created by simply calling SAR_OPEN_OUTPUT<br />

followed by SAR_CLOSE_OUTPUT. An empty symbiont file may be created by setting<br />

IMAGE_CONTROL_WIDTH to a nonzero value when calling SAR_OPEN_OUTPUT,<br />

followed by a call to SAR_CLOSE_OUTPUT. This will cause a print control image to be<br />

generated, which will open the output file. If IMAGE_CONTROL_WIDTH is zero when<br />

creating an "empty" symbiont file, an error will occur during SAR_CLOSE_OUTPUT.<br />

18.1.1. WRITE Packet Data Structure Description<br />

The SAR$ WRITE function requires a WRITE packet data structure for the<br />

SAR_OPEN_OUTPUT, SAR_WRITE, SAR_WRITE_CONTROL, and<br />

SAR_CLOSE_OUTPUT procedure calls.<br />

The type definition for this data structure is contained in the element SAR$WPKTD in the<br />

<strong>SYSLIB</strong> file (SYS$LIB$*<strong>SYSLIB</strong>) or SYS$*RLIB$. It is obtained with the COPY<br />

statement. The identifier for the WRITE packet data structure type is<br />

SAR_WRITE_PACKET.<br />

7833 1733–004 18–1

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

Saved successfully!

Ooh no, something went wrong!