FORTRAN Reference Manual

Hollerith Constants and Punch Card Codes
FORTRAN Reference Manual528615-001
H-3
Hollerith Constants as Subprogram Arguments
Hollerith Constants as Subprogram Arguments
You can use a Hollerith constant as an actual argument in a subprogram reference.
The corresponding dummy argument must be of type integer, real, or logical:
SUBROUTINE example(cost,date)
INTEGER*8 date
.
END
PROGRAM Main
CALL example(price,8H4-21-85 )
.
END
Hollerith Punch Card Codes
Table H-2 lists the Hollerith characters, their representations on a punch card (shown
as rows punched in a given column), and their ASCII internal (octal) equivalents.
Table H-2. Hollerith Characters (page 1 of 4)
Hollerith Character Hollerith Punch ASCII Octal Equivalent
space no punch %040
&12%046
-11%055
00%060
{ 12,0 %173
| 12,11 %174
} 11,0 %175
11%061
22%062
33%063
44%064
55%065
66%066
77%067
88%068
99%069
A 12,1 %101