Please suggest what I am missing here.
%let directory_start =/data/;
%let directory_end= /Formats/formats.sas;
%let lib_end= /Programs/temp;
*%let study = %nrstr(Study03-0072);
%macro email(old =, new=, study=);
%include "&directory_start.&study.&directory_end.";
libname temp "&directory_start.&study.&lib_end.";
%mend;
%email;
%email(study = Study03-0072, old =data, new=datanew);
Log:
MLOGIC(EMAIL): Beginning execution.
MLOGIC(EMAIL): Parameter OLD has value
MLOGIC(EMAIL): Parameter NEW has value
MLOGIC(EMAIL): Parameter STUDY has value
SYMBOLGEN: Macro variable DIRECTORY_START resolves to /data/
SYMBOLGEN: Macro variable STUDY resolves to
SYMBOLGEN: Macro variable DIRECTORY_END resolves to /Formats/formats.sas
WARNING: Physical file does not exist, /data//Formats/formats.sas.
ERROR: Cannot open %INCLUDE file /data//Formats/formats.sas.
SYMBOLGEN: Macro variable DIRECTORY_START resolves to /data/
SYMBOLGEN: Macro variable STUDY resolves to
SYMBOLGEN: Macro variable LIB_END resolves to /Programs/temp
MPRINT(EMAIL): libname temp "/data//Programs/temp";
NOTE: Library TEMP does not exist.
Your %let statement where you "assign" a value to Study is commented out so does not execute.
%let lib_end= /Programs/temp; *%let study = %nrstr(Study03-0072);
Remove the * and try it again.
When you get any message like this where there is no "resolved" value appearing the first thought should always be: check where the variable is created/assigned.
SYMBOLGEN: Macro variable STUDY resolves to
Your %let statement where you "assign" a value to Study is commented out so does not execute.
%let lib_end= /Programs/temp; *%let study = %nrstr(Study03-0072);
Remove the * and try it again.
When you get any message like this where there is no "resolved" value appearing the first thought should always be: check where the variable is created/assigned.
SYMBOLGEN: Macro variable STUDY resolves to
Damm even I am having a similar kind of issue, I have searched all over the internet and even have posted on number of threads on different forum, no solution seems to work. I am really frustrated, can anyone of you here help me resolve this issue, I am very much tired now. mobdro
@paulchinky50 wrote:
Damm even I am having a similar kind of issue, I have searched all over the internet and even have posted on number of threads on different forum, no solution seems to work. I am really frustrated, can anyone of you here help me resolve this issue, I am very much tired now.
Please start a new thread, and be sure to describe the problem completely, include both the code and the LOG. (We need to see the entire log, not selected parts of it)
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.