fpt and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Ref Manual Home |

INDEXED UNIT

Syntax:

[NON-]INDEXED [LOGICAL] UNIT[S] [:] <integer> [ <integer> ... ] [NON-]INDEXED VARIABLE [LOGICAL] UNITS

Function:

INDEXED UNIT specifies a logical unit number which is used only for indexed (ISAM) files. NON-INDEXED UNIT specifies a logical unit which is used only for non-indexed files or devices. The information is used to control the behaviour of fpt when ISAM file accesses are changed to sub-program calls. Please see the command CHANGE ISAM FILE ACCESSES TO SUB-PROGRAM CALLS for a description of this process.

If a unit number is not specified to be indexed or non-indexed, the status of the unit is inferred from usage, or is determined by a run-time test. Inference from usage is controlled by the command INFER INDEXED LOGICAL UNITS FROM USAGE.

The terminal logical unit numbers are always assumed to be non-indexed. They are specified by the commands TERMINAL INPUT LOGICAL UNIT NUMBER and TERMINAL OUTPUT LOGICAL UNIT NUMBER.

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 defaults may be modified in the configuration file

Examples

In an fsp file, to specify the use of logical units in a program:

%indexed units 14 15 16 17 %non-indexed units 1 2 3 4 8 9 %terminal input unit 5 %terminal output unit 6

See Also

CHANGE ISAM FILE ACCESSES TO SUB-PROGRAM CALLS

TERMINAL INPUT UNIT

TERMINAL OUTPUT UNIT

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