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.

Table 18–3. SAR$: WRITE Procedure CALL_STATUS Codes<br />

Octal Code Status<br />

SAR$ WRITE<br />

037 The output I/O buffer address is NULL; this buffer must be provided when<br />

writing to an SDF file or element.<br />

0100 An unrecognized error has occurred in the SDFO routine. The SDFO error<br />

code is returned in the SUB_STATUS field.<br />

0101 An unrecognized error has occurred in an ACD subroutine. The ACD error<br />

code is returned in the SUB_STATUS field.<br />

0102 An unrecognized error has occurred in executing ER SYMB$. The SYMB$<br />

error code is returned in the SUB_STATUS field.<br />

0103 An incorrect SDFO packet version is being used. The correct SDFO packet<br />

version is returned in the SUB_STATUS field.<br />

0104 An incorrect ER SYMB$ packet version is being used. The correct SYMB$<br />

packet version is returned in the SUB_STATUS field.<br />

A CALL_STATUS code of 0100 or greater is an SAR$ internal error.<br />

The WRITE procedure I/O status codes listed in Table 18–4 may be returned to the<br />

calling program in the IO_STATUS field of the WRITE packet.<br />

Table 18–4. SAR$: WRITE Procedure IO_STATUS Status List<br />

Octal Code Status<br />

0 Normal I/O status.<br />

01 to 040 See Table C–2, I/O Status Codes, Exec ER <strong>Programming</strong> <strong>Reference</strong> <strong>Manual</strong><br />

for an explanation of the I/O status codes.<br />

18.2. WRITE Function/MASM 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 S$ARCLOSO).<br />

The SAR$ WRITE procedures can be called directly from MASM. The SAR$ data<br />

structure definitions and procedure calls are defined by MASM procedures (PROCs).<br />

The element SAR$PROCS contains these PROCs.<br />

7833 1733–004 18–21

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

Saved successfully!

Ooh no, something went wrong!