have you already read Easytrieve Variable declaration?
For creating reports, or printing (displaying) numeric variables, we will always need masking. It can be used to print the decimal character for the variables that have implied decimal
WS-SSN W 9 N MASK '999-99-9999' ... MOVE 123456789 TO WS-SSN DISPLAY ' WS-SSN : ' WS-SSN
This will be printed as
WS-SSN : 123-45-6789
Edit mask pattern is created by using combinations of the following characters:
9 — causes a digit to print. (including leading zeros)
Z — causes a digit to print (except for leading zeros)
$ — causes a currency symbol to print prior to the first non-zero digit
more examples to come..