FPT and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Reference Manual Home |


CHANGE DECODE TO INTERNAL READ

Syntax:

[DO NOT] CHANGE DECODE TO [ INTERNAL ] READ

Function:

FPT changes all DECODE statements to internal READ statements. The original DECODE statements are commented out.

To change ENCODE statements, specify CHANGE ENCODE TO INTERNAL WRITE.

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:

DECODE statements are not modified by default.

Example:

DECODE (16,200,CHX)(IA(I),I=1,3) 200 FORMAT (3I4)

Where CHX is a character variable and IA is an integer array. FPT translates this statement to:

READ (CHX(1:16),200)(IA(I),I=1,3) 200 FORMAT (3I4)


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