FPT and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Reference Manual Home |


PRIMARY INPUT FILE NAME EXTENSION

Syntax:

PRIMARY INPUT { FILE [NAME] | FILENAME } EXTENSION [:] <string>

Function:

Specifies the default input file name extension for primary Fortran files. In this context, a primary file is any Fortran source file which is not referenced in an INCLUDE statement.

The file name extension is written as a delimited or undelimited string, with or without a leading . (period) character.

This command is position sensitive in the command line or FSP file. It applies to all file names which follow it, and the default may be changed within a list of files.

If a sub-program input file has an extension which differs from the default, note that the extension is appended to the base file name with a separating underscore character. For example, if the default input file name extension is .for and a primary file is read with the name stats.bda, the corresponding output file name will be stats_bda.fpt. This behaviour is modified by the command KEEP FILE NAME EXTENSIONS.

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:

The default is system-specific. For Linux and Unix it is .f and for VMS and DOS it is .FOR. (Note that defaults may be changed in the configuration file)

Examples:

Command Line:

    $ fpt "%primary input file name extension:.f" anova.fsp

FSP file:

    ! ANOVA.FSP
    ! Original PDP package
    % primary input file name extension = 'ftn'
    anova.ftn
    studentt.ftn
    csqu.ftn
    chisqu.ftn
    !
    ! New service routines from Sun
    % primary input file name extension = 'f'
    ss.f
    ss4.f
    riread.f
    datent.f
    !
    ! end of ANOVA.FSP

See also:

KEEP FILE NAME EXTENSIONS


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