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 />

To determine the length of the memory area needed to store the INFOR table, see the<br />

section, "Determining the INFOR Table Size" in Appendix G. After this size value is<br />

calculated, add 28 to it. The additional 28 words are needed because one extra word is<br />

used for a word of zeroes that RINF$ puts after the last word of the INFOR table and 27<br />

extra words are used as an overflow area when RINF$ reads the last block of INFOR<br />

data.<br />

Word-count = (size value calculated using Appendix G) + 28.<br />

start-addr<br />

packet<br />

Address of the data area in which the RINF$ routine stores the INFOR table. If this<br />

parameter is omitted, the RINF$ routine uses the value in H2 of register A0 as the<br />

starting address of the data area.<br />

Address of the 30-word packet required by the common bank version of INFOR$<br />

routine. This parameter is ignored unless parameter t is set to 'A' or 'CB'. If the<br />

common bank version of the RINF$ routine is being called and this parameter is<br />

omitted, then the routine assumes the address has already been loaded into register<br />

A2 by the calling program.<br />

Returns<br />

If the normal return is taken, the INFOR table has been read into the area specified by<br />

parameter start-addr followed by a zero-filled word. H2 of register A1 contains the<br />

address of this word.<br />

If the error return is taken, register A1 contains the error code and register A0 contains<br />

the PRINT$ control word for the error message. Table 12–1 lists the possible messages.<br />

Table 12–1. INFOR$: RINF$ Error Messages<br />

Error Code Error Message and Description<br />

1 PROCESSOR CALL ERROR<br />

Data images were returned on the first call to READ$, indicating that no INFOR<br />

table was created for this program.<br />

2 ABNORMAL RETURN FROM READ$<br />

READ$ returned with an end-of-file or other status that indicates this program<br />

has neither an INFOR table nor input data images.<br />

3 TOO MANY SPECIFICATIONS<br />

The buffer area is not large enough to hold the INFOR table.<br />

7833 1733–004 12–5

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

Saved successfully!

Ooh no, something went wrong!