fpt and WinFPT Reference Manual - Command-line Commands
| SimCon Home | Ref 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 left in place but 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.
Examples
The original code:
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:
! DECODE (16,200,CHX)(IA(I),I=1,3) READ (CHX(1:16),200)(IA(I),I=1,3) 200 FORMAT (3I4)
Copyright ©1995 to 2024 Software Validation Ltd. All rights reserved.