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.

SOR–Symbolic Output Routine<br />

25.5. ESOR$–End Symbolic Output<br />

ESOR$ terminates the operations of the SOR routine.<br />

Calling Sequence<br />

LMJ X11,ESOR$<br />

error return<br />

normal return<br />

ESOR$ terminates SOR, closes SDFO, and inserts the generated element in the<br />

program file (ER PFI$). If SOR takes the error return from ER PFI$, register A5 equals<br />

zero; register A2 contains the descriptive code. If the error return is from SDFO, an<br />

(unrecoverable) I/O error occurred and register A5 contains the I/O status code.<br />

25.6. SOR File Control Table (SORFCT$)<br />

The file control table (FCT) and the buffers provided by SOR for SDFO are similar to<br />

those SDFI requires. Therefore, the external label SORFCT$ is provided for the first<br />

word of the FCT.<br />

Although SORFCT$ is initially zero, it is set to nonzero when SSOR$ is called; SORFCT$<br />

is reset to zero when ESOR$ is called. If SORFCT$ is nonzero when SSOR$ is called, a<br />

01 (no find) error condition is returned in register A2. If the calling program uses the FCT<br />

and SOR buffers, it must do the following:<br />

• Check that SORFCT$ is zero before using it.<br />

• Set SORFCT$ to zero while using it.<br />

• Reset SORFCT$ to zero when it is no longer required.<br />

• Be sure S2 of SORFCT$+3 is the correct I/O code.<br />

Note: SIR$ has its own input FCT and buffers for SDFI use.<br />

25–6 7833 1733–004

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

Saved successfully!

Ooh no, something went wrong!