fpt and WinFPT Reference Manual - Command-line Commands
| SimCon Home | Ref Manual Home |
INFER INDEXED LOGICAL UNITS FROM USAGE
[DO NOT] INFER INDEXED [LOGICAL] UNITS [FROM USAGE]
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|
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
In an fsp file, 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
CHANGE ISAM FILE ACCESSES TO SUB-PROGRAM CALLS
Copyright ©1995 to 2022 Software Validation Ltd. All rights reserved.