Sorry, I don't see data or code in your message. I only see one sentence.
Please find the attachment of the requirement to give a better solution
Please post the code you have tried and describe what is going wrong. FYI, many people won't read attachments, due to their ability to spread malware.
Sorry, if you're unable to share your code, it's too hard to help figure out what is going wrong.
For tips on how to write a clear question that makes it easier for others to help you, please see these articles:
https://communities.sas.com/t5/Getting-Started/How-to-get-fast-helpful-answers/ta-p/226133
Firstly i have data as
sno name marks email fatheremail
1 abc 95 xxx.gmail fxxx.gmail
2 bcd 65 yyy.gmail fyyy.gmail
3 cda 57 zzz.gmail fzzz.gmail
1st step:
data snap;
set Work.data;
do i=1 to 3 by 1
/*mailer code starts*/
file name message email to =('email')
cc=(fatheremail)
subject= marks
CT="Text/HTML";
ods listing close;
ods html body = message rs= none style=normal;
/*body of email*/
proc sql;
title j=left height 11pt clolour black font=""
Quit;
Proc Tabulate
Data=work.snap;
var
class
marks* sum*F = BESTX12.
run;
footnote;
end;
run;
This is the program i am using but getting an error as do loop is not completed
Hi,
There are several problems with your code. Instead of writing the whole thing at once, I would develop it in steps, e.g.:
I would suggest looking at user group papers for examples, this one looked handy:
https://support.sas.com/resources/papers/proceedings/pdfs/sgf2008/038-2008.pdf
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.