Several routines provided by CHR have implications for the efficiency of applications which make heavy use of them. These routines when used judiciously present no efficiency problem, but when they are used indiscriminantly they can have a marked effect on execution times.
READ statements which can have
an impact upon execution times when used heavily. Within an application it is only
absolutely necessary to perform this type conversion once, when it is needed. If both
representations are needed within an application, store both.
CHARACTER argument within every subroutine can
have a significant impact upon execution times and should be avoided. For character strings
which are not modified, CHR_LEN need only be called once. The used length of the string may
then be passed as an additional subroutine argument, e.g. or the substring that represents the filled part of the string may be passed to the subroutine, e.g.
WRITE statements which can have an
impact upon execution times when used heavily. Within an application it is only absolutely
necessary to perform this type conversion once, when it is needed. If both representations are
needed within an application, store both.