Prev: Check if a variable has any letter from A to Z. Is there a function for it? Thanks
Next: Data Manipulation
From: mark on 10 Mar 2010 00:25 Hello , Could anyone please help me in the code error.I use :- PROC Format; VALUE $SameDayDelivery 1 = 'Yes' 2 = 'No'; RUN; /*Proportion of daily transactions that qualify for same day delivery*/ proc tabulate data = weekly_sales_revenues f = comma6.; CLASS LaptopModel ; VAR SameDayDelivery ; LABEL SameDayDelivery='Same Day Delivery'; TABLE DateofSale*SameDayDelivery ALL='Total'*LaptopModel all='Total',UnitsSold *( MEAN STD MIN MAX sum='Sold'*f=8. pctsum<SameDayDelivery all>='in %'*f=comma5.1) /box=[label="Daily Transactions"] ; run; Error - ERROR: Variable SameDayDelivery in list does not match type prescribed for this list. kindly suggest I need to find the proprtion of the Yes and No in SameDayDelivery
From: Eli Y. Kling on 10 Mar 2010 03:23
try PROC Format; VALUE $ SameDayDelivery '1' = 'Yes' '2' = 'No'; RUN; |