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.

G.5. Reading the INFOR Table<br />

INFOR Information<br />

The INFOR data is supplied as input data to the first symbiont read operation performed<br />

by the program. The program issues an ER AREAD$, ER READ$, or ER SYMB$<br />

(READ$ function) with a buffer size of at least 27 words specified. The INFOR data is<br />

received in blocks of 27 words or less. Only full subfield descriptions are put in the<br />

block. If a subfield description does not fit within the last words of the block, it is put in<br />

the next block.<br />

Upon return from the read, register A0 contains the following information:<br />

Bit 4 This bit is set if the data transferred into the buffer is INFOR data.<br />

Bit 5 This bit is set if more INFOR data needs to be read.<br />

Bits 18–35 These bits specify the number of words transferred into the buffer.<br />

Notes:<br />

• If the program issues a read command that specifies a buffer size less than 27<br />

words, INFOR data may be transferred into the area beyond the end of the buffer.<br />

• The <strong>SYSLIB</strong> and the SLIB service libraries provide INFOR routines to read the INFOR<br />

table, to search it, and to transfer data from it to other tables. See the SLIB<br />

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

G.6. Determining the INFOR Table Size<br />

If a program intends to read the entire INFOR table into memory, the size of the memory<br />

area needed to hold the INFOR table can be determined by adding the maximum sizes<br />

needed by the various types of information that are put in the table.<br />

1 Word 0 of INFOR table<br />

+ 18 Words needed for field 1 of the command field if it contains a<br />

fully specified file name and element name.<br />

+ 20*n<br />

————<br />

sum<br />

n is the number of fields that the program expects in the<br />

specification field. Multiply n by 20, which is the number of<br />

words needed by each field if it contains a fully specified file<br />

name and element name.<br />

The sum above is the maximum size of the INFOR table.<br />

7833 1733–004 G–9

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

Saved successfully!

Ooh no, something went wrong!