Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What was Hollerith data?

Data hollerith
0
Posted

What was Hollerith data?

0

Stunningly, Fortran-66 had no character data type – only numeric types. In order to deal with characters, typeless constants, called Hollerith constants, were used. An example of a Hollerith constant is 3HABC – which specifies a 3 character constant with the value ‘ABC’ in it. Since a Hollerith constant was typeless, it could be placed into any numeric data type without type conversion. Per the ’66 Standard, Hollerith constants could only be used in 3 places: • In DATA statements • As actual arguments in a CALL statement – e.g., CALL SUB (3HABC) • In FORMAT statements Virtually all compilers extended the above to allow Hollerith constants to be used in expressions. Of interest, consider the case where a data type could hold more than the number of characters specified in the Hollerith constant. In this case, the compiler was required to left-justify the characters and ‘blank fill’ the unused bits. Note that ‘zero-fill’ variants, with both right- and left-justification, were common exte

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123