Did you try the order = statement without the double quotes around the macro variables? It appears that your macro variables are defined as numerics (comma7.) and your statement puts the macro variables in double quotes which makes SAS think that the macro values are character values. If the order= statement is looking for numerics and the macro variables are resolving to character, that could be the issue. ORDER=("&MNHLQSZ" TO "&MXHLQSZ" BY 1000)
... View more