Hi all - new to this forum and compiler. Porting code from Intel compiler that allowed the use of a variable in format specifications within <>, such as
format(<icrw>(es10.2,1x))
I’ve discovered that this is not a feature in PGI. I’m rewriting the output statements to write formats that used this approach to character strings and then use the string in the output statement but I’m running into some problems. Here is my example:
This sequence will generate ‘Unmatched quote’ error
write(aformat,'(A54,A61,I1,A12)')
> "'Percentiles of Protection for Average Concentration'/",
> "'SAT File',53X,'NRUNS Spec Iwell DWS Czero ',",
> icrw,"(4X,'Avg %')"
write(iofil,aformat)
whereas if I comment out the third line, no error
write(aformat,'(A54,A61,I1,A12)')
> "'Percentiles of Protection for Average Concentration'/",
c > "'SAT File',53X,'NRUNS Spec Iwell DWS Czero ',",
> icrw,"(4X,'Avg %')"
write(iofil,aformat)
What am I missing?
TIA
Ted