It seems that you try to apply a character format on a numeric
Character formats have a leading $ sign.
Did you see that in the error message the leading $ missing in the
format name and then of course this format doesnt exist.
The formats you list expect variable with values like A, B, C
not numeric ones.
21389 paymentmaturity = put(pp, $MAP_PERIODS_MAT10.)+0;
WARNING: Variable pp has already been defined as numeric.
ERROR 48-59: The format MAP_PERIODS_MAT was not found or could not be