What you're describing: Highlighting a macro definition and submitting it so that the macro is compiled, and somehow causing a change to how formats are defined or applied, cannot happen. Which means something else must be happening.
Can you try making a small reproducible example?
When you say: "Then I do that same PROC FREQ mentioned above and this time some...not all, but some...of the formats are not applied." Do you mean you do PROC FREQ on one variable and some values show formatted text and other values for the same variable show unformatted numbers? Or do you mean you run PROC FREQ on two or more variables, and some variables have formats applied to all values but other variables do not have a format applied to any values?
If you can't make a reproducible example, try starting a new session, then run the sequence of submissions which causes the problem, and post the full log from the session. If you do that, be sure to turn option MPRINT on.
... View more