What does "simultaneously" in this statement mean?: "Weight_var when ran simultaneously with weights given and no weights given" .
With Proc summary you either have a weight variable or do not so I do not see how "simultaneously" come into this. And I would definitely expect different results with and without weights.
You have logic errors related to building your your output statement. Because you have a semicolon at the end of
&OPERATION_ACTIVE.(&VAR_ACTIVE.) = &OPERATION_ACTIVE._&VAR_ACTIVE._EW;
The first statistic requested ends the output list and throws errors.
I might suggest using the AUTONAME option and then having a separate step to create Rename syntax for Proc Datasteps if you need different variable names. If you have longish variable names you have nothing that will prevent creating variable names longer than 32 characters which will cause all sorts of issues.
... View more