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.

18.2.1.3. Information Returned by WRITE Procedures<br />

SAR$ WRITE<br />

The following fields of the WRITE packet contain values returned by the SAR$ WRITE<br />

procedures to the calling program:<br />

SW$STATUS<br />

The WRITE function status word; it contains the call status in H2, the substatus in<br />

T1, and the I/O status in S3 of the word.<br />

SW$CALLST<br />

The status of the current open-output, write, or close-input procedure call. See Table<br />

18–6 for an explanation of the octal status codes.<br />

SW$IOSTAT<br />

The status of any I/O operations performed by SAR$. See Table 18–7 for the octal<br />

status codes.<br />

SW$SYMBDT<br />

The status word returned from an ER SYMB$ request. See the SYMB$ section,<br />

Exec ER <strong>Programming</strong> <strong>Reference</strong> <strong>Manual</strong> for further details on the SYMB$ status<br />

word.<br />

SW$RECBUFL<br />

The recommended buffer or table length when an invalid length is specified or when<br />

an overflow occurs.<br />

SW$IMGBLEN<br />

The length in bytes of the image written out by the WRITE procedure. For images<br />

written to SDF files or elements, the length does not include the image control word<br />

or the length of the line number records. For images written to symbiont files, the<br />

length is the number of bytes transferred by the SMB$ request.<br />

SW$IMGSEC<br />

The mass storage sector address that the SDF image was written to. This field is a<br />

full word containing the sector address in S3 to S6 and the field SW$IMGWO in S1.<br />

SW$IMGSEC is undefined if the output file type is not an SDF file or element. If a<br />

line number control record (type 053) is written with the data record, this address is<br />

the sector address of the line number control record corresponding to the data<br />

record.<br />

SW$IMGWO<br />

The word offset into the sector address (SW$IMGSEC) that the SDF image was<br />

written to. This field is contained in S1 of SW$IMGSEC. SW$IMGWO is undefined<br />

if the output file type is not an SDF file or element.<br />

7833 1733–004 18–27

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

Saved successfully!

Ooh no, something went wrong!