<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: macro variable not resolving in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/macro-variable-not-resolving/m-p/755792#M238568</link>
    <description>Take a look at the file you are bringing in with %INCLUDE.  It is likely that you will find the answer there.</description>
    <pubDate>Thu, 22 Jul 2021 00:03:47 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2021-07-22T00:03:47Z</dc:date>
    <item>
      <title>macro variable not resolving</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-variable-not-resolving/m-p/755786#M238564</link>
      <description>&lt;P&gt;Please suggest what I am missing here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%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 "&amp;amp;directory_start.&amp;amp;study.&amp;amp;directory_end.";

libname temp "&amp;amp;directory_start.&amp;amp;study.&amp;amp;lib_end.";

%mend;

%email;

%email(study = Study03-0072, old =data, new=datanew);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Log:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;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.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Aug 2021 23:58:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-variable-not-resolving/m-p/755786#M238564</guid>
      <dc:creator>RAVI2000</dc:creator>
      <dc:date>2021-08-04T23:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: macro variable not resolving</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-variable-not-resolving/m-p/755788#M238565</link>
      <description>Does the code work without macro variables at all? It doesn't seem like a macro variable issue....you do have duplicate // which I'm fairly sure SAS ignores but you could also fix that to confirm. Note that Unix systems have case sensitive paths, so if this is in Academics on Demand, it's a Unix box. &lt;BR /&gt;&lt;BR /&gt;What is the log message for these:&lt;BR /&gt;&lt;BR /&gt;libname temp '/data//Programs/temp';&lt;BR /&gt;&lt;BR /&gt;libname temp '/data/Programs/temp';</description>
      <pubDate>Wed, 21 Jul 2021 23:43:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-variable-not-resolving/m-p/755788#M238565</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-07-21T23:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: macro variable not resolving</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-variable-not-resolving/m-p/755792#M238568</link>
      <description>Take a look at the file you are bringing in with %INCLUDE.  It is likely that you will find the answer there.</description>
      <pubDate>Thu, 22 Jul 2021 00:03:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-variable-not-resolving/m-p/755792#M238568</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2021-07-22T00:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: macro variable not resolving</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-variable-not-resolving/m-p/755800#M238571</link>
      <description>&lt;P&gt;Your %let statement where you "assign" a value to Study is commented out so does not execute.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%let lib_end= /Programs/temp;
&lt;FONT size="5" color="#FF0000"&gt;&lt;STRONG&gt;*&lt;/STRONG&gt;&lt;/FONT&gt;%let study = %nrstr(Study03-0072);&lt;/PRE&gt;
&lt;P&gt;Remove the * and try it again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;SYMBOLGEN:  Macro variable STUDY resolves to &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp; &lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 00:30:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-variable-not-resolving/m-p/755800#M238571</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-07-22T00:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: macro variable not resolving</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-variable-not-resolving/m-p/755907#M238586</link>
      <description>&lt;P&gt;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.&amp;nbsp;&amp;nbsp;&lt;FONT size="1 2 3 4 5 6 7" color="#FFFFFF"&gt;&lt;A href="https://get-mobdro.com" target="_self"&gt;mobdro&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Aug 2021 07:42:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-variable-not-resolving/m-p/755907#M238586</guid>
      <dc:creator>paulchinky50</dc:creator>
      <dc:date>2021-08-17T07:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: macro variable not resolving</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-variable-not-resolving/m-p/755909#M238587</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/390329"&gt;@paulchinky50&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;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)&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 11:35:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-variable-not-resolving/m-p/755909#M238587</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-07-22T11:35:04Z</dc:date>
    </item>
  </channel>
</rss>

