CHARACTER METAL*10 METAL = 'CADMIUM'then METAL(1:3) has the value 'CAD' while METAL(8:8) has the value blank because the value is padded out with blanks to its declared length.
Substrings must be at least one character long. They can be used
in general in the same ways as character variables. Continuing
with the last example, the assignment statement:
METAL(3:4) = 'ES'
will change the value of METAL to 'CAESIUM ' (with three
blanks at the end, since the total length stays at 10).