FPT and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Reference Manual Home |


INFER INDEXED LOGICAL UNITS FROM USAGE

Syntax:

[DO NOT] INFER INDEXED [LOGICAL] UNITS [FROM USAGE]

Function:

This command controls the behaviour of FPT when it is used to convert accesses to ISAM (indexed sequential access) files to sub-program calls. Please see the command CHANGE ISAM FILE ACCESSES TO SUB-PROGRAM CALLS for a description of this process.

When ISAM file accesses are converted to sub-program calls, the statements to be modified fall into three categories: those which must be ISAM references, because they contain ISAM keywords such as KEY= or INDEXED, those which cannot be ISAM references, because they contain keywords such as REC= or RELATIVE, and those which might be ISAM references, where the syntax is ambiguous. The command INFER INDEXED LOGICAL UNITS FROM USAGE instructs FPT to use the usage of the logical unit numbers in OPEN statements to infer which units are, or may be, indexed.

Note that if a variable is used as the unit number in an OPEN statement, then all logical unit numbers may be used in the way implied by that OPEN statement.

Where to use this command:

Operating system command line

Yes


Configuration file, config.fsp

Yes


Specification (FSP) files, *.fsp

Yes


Interactively, to FPT> prompt:

Yes


Interactive command files

Yes


Embedded in the Fortran code

Yes


Default:

Indexed logical units numbers are inferred from usage by default. Note that inference should be turned off if FPT processes only part of a program.

Defaults may be modified in the configuration file

Example:

To change all I/O statements in a program which might be indexed:

%do not infer indexed units from usage
%change isam file accesses to sub-program calls

See also:

CHANGE ISAM FILE ACCESSES TO SUB-PROGRAM CALLS


Copyright ©1995 to 2014 Software Validation Ltd. All rights reserved.