The only thing I see wrong is in the FORMAT statement.
The syntax of the format statement is:
FORMAT variablename formatname. ;
Note, there must be a dot at the end of the formatname. There is no equal sign.
If you fix that and it still doesn't work, show us the LOG of this DATA step so we can see both your code that is being used and the exact ERROR message. Do not chop out parts of the LOG for this DATA step, we need to see it verbatim, copied as text and pasted into the window that appears when you click on the </> icon. This preserves the formatting and makes the log more readable — do not provide the log any other way.
--
Paige Miller