Wednesday, 11 September 2013

Long strings in data statements

Long strings in data statements

I'd like to initialize a long string in Fortran 77 in a DATA statement,
like this:
DATA Lipsum /
*'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendi
*sse tincidunt, velit id hendrerit bibendum, erat nisl dignissim ar
*cu'/
but the internal policy of the program I'm contributing to does not like
it as it prohibits lines with an odd number of quote marks.
I can "fool" the policy checker by using double quotes instead, or using '
as the continuation character (in the first and last line), but I'd like
to know if there is some other way to have long strings in DATA
statements, where the concatenation operator // does not seem to be
allowed.

No comments:

Post a Comment