11.4.1 Character Constant Editing

The character constant edit descriptor causes a character string to be output to an external record. It takes one of the following forms:


The string is a character literal constant; no kind parameter can be specified. Its length is the number of characters between the delimiters; two consecutive delimiters are counted as one character.

To include an apostrophe in a character constant that is enclosed by apostrophes, place two consecutive apostrophes ('') in the format specification; for example:

50   FORMAT ('TODAY''S^DATE^IS:^',I2,'/',I2,'/',I2)

Note that the symbol ^ represents a nonprinting blank character.

Similarly, to include a quotation mark in a character constant that is enclosed by quotation marks, place two consecutive quotation marks ("") in the format specification.

For More Information:

Previous Page Next Page Table of Contents