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.

Section 12<br />

INFOR$–Internal Format Table Interface<br />

Routines<br />

The INFOR interface routines read the INFOR table into memory, search through the<br />

table for specific information, retrieve information from the INFOR table, and dynamically<br />

assign internal use names to files.<br />

The INFOR routines can be included in the calling program as relocatable elements or<br />

can be referenced from one of the <strong>SYSLIB</strong> common banks by either the I$BJ or the Auto<br />

Switch method. For a complete description of these calling methods see Section 3.<br />

Appendix E includes a list of the <strong>SYSLIB</strong> common bank names and the routines included<br />

in them.<br />

Internal format (INFOR) refers to the data format used to pass information from the<br />

processor call statement to a program when it is called as a processor instead of being<br />

called by an @XQT command. The difference between calling a program as a processor<br />

and calling it by an @XQT statement is how the first read instruction of the program is<br />

executed. If the program is called by the @XQT command:<br />

@XQT PROGRAM file.element/version<br />

then there is nothing different about how the first read instruction is executed. It is<br />

executed like any other read in the program. When the read instruction is encountered<br />

the program stops and waits for data to be entered. The extra information entered on<br />

the call line, (in this example, file.element/version,) is ignored. If the program is called as<br />

a processor:<br />

@PROGRAM file.element/version<br />

then the first read receives information from the processor call statement in internal<br />

format. More than one read command may be needed to read all the information.<br />

When all information has been read into memory, it is refered to as the INFOR table.<br />

A processor can accomplish this by calling the INFOR$ routine RINF$ (Read Internal<br />

Format). Having the data from the call line placed in a table with a predefined format and<br />

then having a common set of routines to access this table gives processors a fast and<br />

efficient means of getting at the information they need.<br />

7833 1733–004 12–1

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

Saved successfully!

Ooh no, something went wrong!