Hi SAS Experts, Am trying to create two macro variables one for Year one for Product in sashelp.prdsal2 dataset. When am substituting both the macro variable, the variables are resolving but the am unable to get the corresponding data. Below is my code... Please guide me about my mistake %LET YR=1995; %LET PD='SOFA'; PROC SQL; CREATE TABLE NEW AS SELECT DISTINCT PRODUCT,SUM(ACTUAL) AS TOTAL,STATE FROM SASHELP.PRDSAL2 WHERE YEAR=&YR. AND PRODUCT="&PD" GROUP BY STATE; QUIT; /*By using the above code am not getting any data and there is no error*/ PROC SQL; CREATE TABLE NEW1 AS SELECT DISTINCT PRODUCT,SUM(ACTUAL) AS TOTAL,STATE FROM SASHELP.PRDSAL2 WHERE YEAR=1995. AND PRODUCT="SOFA" GROUP BY STATE; QUIT; /*without using the macro variable am getting the information*/
... View more