FPT and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Reference 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:

No


Interactive command files

No


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

Example:

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 2014 Software Validation Ltd. All rights reserved.