I am trying to run the following code in PGI Visual Fortran. It is using the value of a variable in a FORMAT statement:
write(output_unit,901) varname, variable_value
901 format(a,’ = ',i6)
I am getting the following syntax error:
“Syntax error at or near <”
I can work around this problem by replacing the statement with something like this:
901 format(a25,’ = ',i6)
We like to use variables in FORMAT statements in some cases. In a post from 2007 I read that this was supported in F77 but is not for current versions. Is this still true? The documentation states that this is supported.
I am using PGI Visual FoORTRAN 2008 on Windows Vista.