/*Hi*/ /*Below is the code which i have tried.*/ /*In mail output for first report i want the column name(r3 ) to be displayed as 'F' and in */ /*second report i want it as 'M' but i am not able to get in mail. So please help.*/ DATA survey; INPUT id gender $ age inc r1 r2 r3 ; DATALINES; 1 F 35 17 7 2 2 17 M 50 14 5 5 3 33 F 45 6 7 2 7 49 M 24 14 7 5 7 65 F 52 9 4 7 7 81 M 44 11 7 7 7 2 F 34 17 6 5 3 18 M 40 14 7 5 2 34 F 47 6 6 5 6 50 M 35 17 5 7 5 ; run; proc sort data=survey; by gender; run; options nobyline; filename smsmail email from = "<abcd@tyg.com>" to = "test@abc.com" subject="test" CT = "TEXT/HTML"; ods _all_ close; ODS LISTING CLOSE; ODS HTML BODY = smsmail RS=NONE STYLE = NORMAL; proc report data=survey; column id gender age inc r1 r2 r3 ; by gender; define r3/ '#byval1 '; run; ods html close;/*Hi*/ /*Below is the code which i have tried.*/ /*In mail output for first report i want the column name(r3 ) to be displayed as 'F' and in */ /*second report i want it as 'M' but i am not able to get in mail. So please help.*/ DATA survey; INPUT id gender $ age inc r1 r2 r3 ; DATALINES; 1 F 35 17 7 2 2 17 M 50 14 5 5 3 33 F 45 6 7 2 7 49 M 24 14 7 5 7 65 F 52 9 4 7 7 81 M 44 11 7 7 7 2 F 34 17 6 5 3 18 M 40 14 7 5 2 34 F 47 6 6 5 6 50 M 35 17 5 7 5 ; run; proc sort data=survey; by gender; run; options nobyline; filename smsmail email from = "<abcd@tyg.com>" to = "test@abc.com" subject="test" CT = "TEXT/HTML"; ods _all_ close; ODS LISTING CLOSE; ODS HTML BODY = smsmail RS=NONE STYLE = NORMAL; proc report data=survey; column id gender age inc r1 r2 r3 ; by gender; define r3/ '#byval1 '; run; ods html close;
... View more