Here is some sample code that represents a problem I'm having at work. I have SAS 9.4 and SAS Enterprise Guide 6.1 (64 bit). If I run the code below in SAS 9.4, it runs perfectly. If I run the code in SAS EG, it generates warnings and errors because SAS EG won't recognize a variable that has the name "Label". Of course I would not choose to give the name "Label" to a variable, but Proc Means with StackODS output will... has anyone seen this happen before and is there a work-around? data work.meanstest; infile datalines dlm=','; length Item $20 Cost 8 Price 8 Profit 8; input Item Cost Price Profit; Label Cost='How much item costs to produce' Price='How much we charge customer' Profit='Profit Margin'; datalines; Cookie,3,8,5 Cake,8,20,12 Praline,3,12,9 Toast,1,5,4 Bear Claw,2,7,5 ; run; proc means data=work.meanstest stackods n sum mean; var _numeric_; ods output summary=work.stackodsmeans; run; proc print data=work.stackodsmeans label; label label='SAS EG will not recognize a variable that is named Label'; run; data work.droptest; set work.stackodsmeans (drop=Label); run; proc print data=work.droptest; run;
... View more