%Macro Sendemail;
%do i=1 %to &n;
FILENAME mail EMAIL;
DATA _NULL_;
SET &&channel&i END=eof ;
FILE mail;
PUT '!EM_TO!' email1
PUT '!EM_SUBJECT!' 'New price information for ' ;
PUT "These are the fares as valid on &SYSDATE";
%PUT &&&channel&i;
PUT '!EM_SEND!' / '!EM_NEWMSG!';
IF eof THEN PUT '!EM_ABORT!';
run;
%end;
%mend sendemail;
%sendemail;
And the question is?
I am going to guess that you don't actually want %put as that sends output to the LOG not the FILE statement destination.
Maybe you want
PUT "&&&channel&i ";
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.
Ready to level-up your skills? Choose your own adventure.