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.

PREPRM, PREPRO, PREPF$, and POSTPR$<br />

14.1.4.1. REPRO$–Reusable Processor Preprocessor Routine<br />

REPRO$ reads INFOR from the INFOR CLIST processor call statement. INFOR$ must<br />

be set to zero. REPRO$ also performs some of the same functions as PREPRO.<br />

Initial Conditions<br />

The calling program must establish an INFOR CLIST. On completing SIR$, S4 of<br />

PARTBL+13 must be zero.<br />

PARTBL must be externally defined and at least 40 words long.<br />

Calling Sequence<br />

LA A0,expected-CLIST-index-or-zero<br />

LMJ X11,REPRO$<br />

absolute-eof return<br />

wrong-CLIST-index return<br />

error return<br />

normal return<br />

Returns<br />

error<br />

normal<br />

Identical to those for PREPRO$.<br />

absolute-eof<br />

Indicates that an end-of-file condition has been encountered that cannot be<br />

bypassed; that is, a nontransparent control statement or @ENDX was encountered.<br />

In this case, the processor cannot reuse itself and must terminate.<br />

wrong-CLIST-index<br />

The wrong-CLIST-index return is optional for processors that have more than one<br />

item in their INFOR CLIST and only want to analyze one specific command<br />

automatically; the command is specified by its CLIST index given in A0 prior to<br />

calling REPRO$. This return never occurs if A0 is zero on entry to REPRO$.<br />

After the wrong-CLIST-index return, X11 points to a reentry location you want to<br />

continue with the preprocessor routine. (Note that the CLIST index encountered is<br />

found in S3 of INFOR$+1.) Use the following instructions:<br />

LMJ X11,0,X11<br />

error return<br />

normal return<br />

The two returns are the same as for PREPRO$.<br />

14–8 7833 1733–004

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

Saved successfully!

Ooh no, something went wrong!