05-10-2015 01:48 AM
I am facing error as below
ERROR: Macro keyword LET appears as text.
The code i have is
%let attch2="&folder.attach_brdm/attach_brdm_&sub2_l..zip" "&folder.attach_crce/attach_crce_&sub2_l..zip" "&folder.attach_crce/attach_ecps_&sub2_l..zip";
i am using this macro attch2 to send zipped files in email. This code works in base SAS and EG , However when I try to run this in batch it gives error as Macro Keyword LET appears as text.
I want attch2 to be resolved as
"/gpfs1/SP_Output/Lev1/users/l058017/search_engine_logs/attach_brdm_sitename.zip" "/gpfs1/SP_Output/Lev1/users/l058017/search_engine_logs/attach_crce_sitename.zip" "/gpfs1/SP_Output/Lev1/users/l058017/search_engine_logs/attach_ecps_sitename.zip"
Where I am commiting the mistake ??
Need suggestion please
05-10-2015 05:44 AM
Please post the section of the log where the ERROR message appears, so one can see the context.
05-10-2015 04:05 PM
I tried running your code and it works fine for me.
I'm wondering if your error is caused by code before your %LET statements. Please provide this so we can offer further advice.
Need further help from the community? Please ask a new question.