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

12.3.2. SINF$–Search INFOR Table<br />

SINF$ searches the INFOR table (previously read by RINF$; see 12.3.1) for a<br />

specification subfield.<br />

The SINF$ routine is called by the MASM procedure I$NFOR. This procedure can be<br />

used to generate the calling sequence for the relocatable version of the routine, the<br />

common bank version of the routine, or the common bank version of the routine using<br />

the Auto Switch calling sequence. Section 3 describes the advantages and<br />

disadvantages of using the different types of calls.<br />

Calling Format<br />

I$NFOR[,t] ‘SINF$’[,ftfnsfn] [packet]<br />

no-find-return<br />

find return<br />

Parameters<br />

t<br />

SINF$<br />

ftfnsfn<br />

Type of call to SINF$. This parameter is optional and may be omitted. CB or A,<br />

if specified, must be enclosed by apostrophes.<br />

blank Call the relocatable version of SINF$. This is the default if t is omitted.<br />

'CB' Call the common bank version of SINF$.<br />

'A' Call the common bank version of SINF$ using the Auto Switch method.<br />

SINF$ is the function code which specifies which of the INFOR$ routines the<br />

procedure I$NFOR should call. It must be enclosed by apostrophes.<br />

Subfield specification that the SINF$ routine is to search for.<br />

ft Field type (see FT in Appendix G)<br />

fn Field number (see FN in Appendix G)<br />

sfn Subfield number (see SFN in Appendix G)<br />

The field type value may only be 1 (specification field). If 0 is specified, SINF$ will<br />

use a field type value of 1. The field number value may be equal to or greater than<br />

01. The subfield number may be a number between 01 and 10 8 . For example, to<br />

return the element name subfield of field 3, the parameter would be set to 010306.<br />

If this parameter is omitted, the SINF$ routine assumes the calling program has<br />

already loaded the information into H2 of register A0.<br />

12–6 7833 1733–004

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

Saved successfully!

Ooh no, something went wrong!