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.

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

SW$OUTRECT<br />

SW$LNUMINT<br />

SW$LNUMF3<br />

SW$ICHART<br />

SW$LNUMF1<br />

SW$LNUMF4<br />

SW$LINESPA<br />

SW$LNUMF2<br />

Calling Format<br />

S$ARWRITE wpkt<br />

error return<br />

normal return<br />

SAR$ WRITE<br />

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

Returns<br />

If S$ARWRITE 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$ARWRITE takes the normal return, the write was successful. The following fields of<br />

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

SW$IMGBLEN<br />

SW$IMGSEC<br />

SW$IMGWO<br />

These parameters are described in 18.2.1.3.<br />

Write Control Functions<br />

The calling program may perform write control functions with the S$ARWRITE<br />

procedure call. The calling program sets SW$OUTRECT to 3 (write control record),<br />

places the control image in the text buffer, and calls S$ARWRITE. See "Print Control<br />

Function," Exec ER <strong>Programming</strong> <strong>Reference</strong> <strong>Manual</strong> for details on the control images.<br />

18.2.3.3. Close-Output Procedure Call (S$ARCLOSO)<br />

The S$ARCLOSO PROC performs the necessary tasks to close the output operation.<br />

If the output type is an SDF element, the element is added to the program file table of<br />

contents.<br />

7833 1733–004 18–31

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

Saved successfully!

Ooh no, something went wrong!