Examples of $CHAR()

Example:

    GTM> WRITE $CHAR(77,85,77,80,83,7)
    MUMPS
    GTM>
    

This example uses $CHAR() to WRITE the word MUMPS and signal the terminal "bell."

Example:

    SET nam=$E(nam,1,$L(nam)-1)_$C($A(nam,$L(nam))-1))
    

This example uses $CHAR() and $ASCII() to set the variable nam to a value that immediately precedes its previous value in the set of strings of the same length as nam.