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.

INFOR$–Internal Format Table Interface Routines<br />

The only values allowed for the function code on the I$NFOR procedure call are RINF$,<br />

SINF$, SELT$, and DUSE$. Any other value entered for the function code parameter on<br />

the I$NFOR procedure call causes MASM to generate an E flag on that line and print the<br />

error message:<br />

ILLEGAL I$NFOR FUNCTION<br />

All of the code in the INFOR$ routines is I-bank reentrant. The INFOR$ code is quarterword<br />

and third-word insensitive.<br />

12.3. INFOR$–Routines<br />

The INFOR$ routines are a set of routines that read and manipulate the INFOR table.<br />

The INFOR$ routines are:<br />

• RINF$<br />

Read the INFOR table into memory.<br />

• SINF$<br />

Search the INFOR table for a specification subfield.<br />

• SELT$<br />

Transfer a subfield from the INFOR table to the ELT$ table.<br />

• DUSE$<br />

Perform a dynamic @USE to attach an internal name to a file (see ECL and FURPUR<br />

<strong>Reference</strong> <strong>Manual</strong>.<br />

Limitation of INFOR Routines<br />

Because the field number (the FN subfield, see Appendix G) is limited to 6 bits, only 63<br />

fields (octal 1 to octal 77) can be uniquely numbered in the INFOR table. If more than 63<br />

fields are given, then the field numbers start over going from 1 to 63 again. For<br />

example, if a processor had 68 parameters on its call line, all 68 parameters would be<br />

included in the INFOR table. However, they would be numbered 1 to 63 and then 1 to 5.<br />

In this case, the INFOR$ routines SINF$ and SELT$ cannot be used to access the last<br />

five fields.<br />

The field number given on these calls must be in the range of 1 to 63, and the<br />

information returned would always come from one of the first 63 fields. If a programmer<br />

wishes to allow more than 63 parameters on the call line, the RINF$ routine can be used<br />

to create the INFOR$ table but all subsequent processing of the data would have to be<br />

done by the processor itself.<br />

7833 1733–004 12–3

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

Saved successfully!

Ooh no, something went wrong!