- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Guys,
I am trying to migrate a GECOS (BULL SYSTEM) FORTRAN77 Code to Windows.I am using the Intel VF 9.1 compiler.
I am facing this peculiar error regarding the PRINT statement throught the code.
Pls help.
Piece of Code:
PRINT," TYPE 40-CHARACTER LABEL:"
READ(05,1070)COMMENT
PRINT," DO YOU WANT TO CHANGE THE WELD PARAMETERS (Y/N)?"
READ(05,1060)IFWELD ; IF(IFWELD.NE."Y")GO TO 20
PRINT," TYPE TRAILING EDGE WELD LENGTH (E1):"
READ(05,1060)E1
Error at each PRINT statement :
Error: Syntax error, found ',' when expecting one of: ( *
Thanks,
-Aditya
Link Copied
6 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aditya
simply replace print, with print *,
Les
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - adityaiitd
PRINT," TYPE 40-CHARACTER LABEL:"
the error info is pretty clear.
syntax
PRINT *[, io-list]
or
PRINT form[, io-list]
so if you print to console you need PRINT *, " TYPE 40-CHARACTER LABEL:"
A.
__________________
(edit)
It looks as if I replied with Les at the very same time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - ArturGuzik
the error info is pretty clear.
syntax
PRINT *[, io-list]
or
PRINT form[, io-list]
so if you print to console you need PRINT *, " TYPE 40-CHARACTER LABEL:"
A.
__________________
(edit)
It looks as if I replied with Les at the very same time.
Thank you . I have also one more compilation error.
Code :
1060 FORMAT(V)
Error: This character is not valid in a format list.
Pls help.
-Aditya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Because is not valid. Valid data descriptors are: I, B, O, Z, F, E, EN, ES, D, G, L, and A. Please refer to Help files for details. What kind of data (real, integers, ....) you want to print?
A.
A.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - adityaiitd
1060 FORMAT(V)Error :
Error: This character is not valid in a format list.
You need to look at the documentation for the GECOS compiler to find out what FORMAT(V) does (it would appear to be an extention to Fortran 77 for that compiler)
Les
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - Les Neilson
You need to look at the documentation for the GECOS compiler to find out what FORMAT(V) does (it would appear to be an extention to Fortran 77 for that compiler)
Les
These non-standard usages were precursors of f77.
I have my GECOS f66 manual (Fortran IV, 2nd edition, 1966) in front of me. It quotes liberally from IBM Fortran IV 1963 manual.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page