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

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

SW$OUTFILT<br />

SW$UNTRFLG<br />

SW$TRIMBF<br />

SW$LNUMFMT<br />

SW$SDFLBLF<br />

SW$OCHART<br />

SW$BRKPTF<br />

Note: It is recommended that the calling program zero-fill the WRITE packet before<br />

placing any parameters in the packet.<br />

Calling Format<br />

S$AROPENO wpkt<br />

error return<br />

normal return<br />

where wpkt is a label identifying the starting address of the WRITE packet and data area.<br />

Returns<br />

If S$AROPENO takes the error return, A1 contains the call status code, A2 contains the<br />

I/O status code, and A3 contains the substatus code. These status codes are also<br />

returned in the packet fields SW$CALLST, SW$IOSTAT, and T1 of SW$STATUS,<br />

respectively. See 18.2.4 for an explanation of the status codes.<br />

If S$AROPENO takes the normal return, the initialization of the WRITE packet is<br />

successful.<br />

18.2.3.2. WRITE Procedure Call (S$ARWRITE)<br />

The S$ARWRITE PROC writes images to the output file or element. Each call to<br />

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

S$ARWRITE 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 S$ARWRITE:<br />

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

SW$TEXBUF<br />

SW$ATTRIBL<br />

SW$TEXBUFL<br />

SW$ATTRIB<br />

18–30 7833 1733–004

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

Saved successfully!

Ooh no, something went wrong!