gfxgfx
 
Please login or register.

Login with username, password and session length
 
gfx gfx
gfx
1619 Posts in 535 Topics by 781 Members - Latest Member: chekyl43 January 27, 2023, 03:26:43 PM
*
gfx* Home | Help | Search | Login | Register | gfx
gfx
Absoft User Forum  |  Support  |  General  |  OPEN and FORMAT statements
gfx
gfxgfx
 

Author Topic: OPEN and FORMAT statements  (Read 5707 times)

susie

  • Newbie
  • *
  • Posts: 2
OPEN and FORMAT statements
« on: April 25, 2008, 04:18:50 PM »
Need a little help in porting some legacy Fortran.  Most of my code has compiled well, but having problems with:

DISPOSE='DELETE' in an OPEN statement
results in :  ? FORTRAN Runtime Error:
                  ? Bad iolist specifier


and

<> in formats for evaluating a quantity for a variable at run-time.

TIA.

Mark Pascale

  • Newbie
  • *
  • Posts: 9
Re: OPEN and FORMAT statements
« Reply #1 on: April 28, 2008, 11:43:50 AM »
Susie --

Much of the legacy code that I upgrade also has many Fortran extensions offered by some vendors ... they are NOT part of the formal Fortan language and their usage makes your program non-Code compliant ... so, you encounter problems trying to convert to a different vendor's compiler.  Examples that I encounter include Q-formatting, Encode/Decode, Dispose and <>.  To avoid this type problem, you must convert those statements to the formal Fortran language instead of using the vendor's extensions.

Instead of OPEN(... DISPOSE=DELETE ...), try CLOSE(... STATUS=DELETE ...).  That might solve that problem.

Good luck -- Mark

Absoft User Forum  |  Support  |  General  |  OPEN and FORMAT statements
 

gfxgfx
gfx gfx
Powered by MySQL Powered by PHP Valid XHTML 1.0! Valid CSS!