<?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 using text macros in filepath in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/using-2-text-macros-in-data-step-one-with-underscores/m-p/599950#M173290</link>
    <description>&lt;P&gt;On a somewhat related matter, I keep getting an error when trying to use a text macro in a proc import statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%let portfolio =portfolioname;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;libname out "/folder1/folder2/folder3/folder4/folder5/folder6/&amp;amp;portfolio";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc import out = out.samplefile_import datafile = "/folder1/folder2/folder3/folder4/folder5/folder6/&amp;amp;portfolio/filename_&amp;amp;portfolio._v2.xlsx"&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;Dbms&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=xlsx &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;replace&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;Sheet&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=EOP_Bal_Flow_Actuals;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Get following error:&lt;/P&gt;
&lt;P&gt;WARNING: Missing semicolon between %THEN clause and ELSE has been assumed.&lt;/P&gt;
&lt;P&gt;ERROR: Physical file does not exist, /folder1/folder2/folder3/folder4/folder5/folder6/portfolioname//Filename_portfolioname_v2.xlsx.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This occurs even though there is clearly an excel file called filename_portfolioname_v2.xlsx in the relevant folder. Also noticing two forward slashes in the error, not sure why.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please advice. Thanks in Advance!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Oct 2019 22:57:22 GMT</pubDate>
    <dc:creator>ubshams</dc:creator>
    <dc:date>2019-10-28T22:57:22Z</dc:date>
    <item>
      <title>using 2 text macros in data step (one with underscores)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/using-2-text-macros-in-data-step-one-with-underscores/m-p/599836#M173232</link>
      <description>&lt;P&gt;I am having issues using text macros in the data steps.&lt;/P&gt;
&lt;P&gt;It may be because the filenames/datasets have underscores (but not sure). Unfortunately filenames will have to have underscores in our system's setup.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Trial code 1:&lt;/P&gt;
&lt;P&gt;%let text1 = xyz_abc_def;&lt;/P&gt;
&lt;P&gt;%let text2 = abc;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-----this works just fine (when I am typing full name of text1 and using one macro for text2)&lt;/P&gt;
&lt;P&gt;data xyz_abc_def_&amp;amp;text2;&lt;/P&gt;
&lt;P&gt;set oldfile;&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;run&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--but when I try to use two macros in the data step i get errors:&lt;/P&gt;
&lt;P&gt;data &amp;amp;text1_&amp;amp;text2;&lt;/P&gt;
&lt;P&gt;set oldfile;&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;run&lt;/P&gt;
&lt;P&gt;Error:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, /, ;, _DATA_, _LAST_, _NULL_.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So then I try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data "&amp;amp;text1"_&amp;amp;text2;&lt;/P&gt;
&lt;P&gt;set oldfile;&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;run&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Error:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: User does not have appropriate authorization level for library WC000001.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please advice. Thanks in advance.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 15:18:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/using-2-text-macros-in-data-step-one-with-underscores/m-p/599836#M173232</guid>
      <dc:creator>ubshams</dc:creator>
      <dc:date>2019-10-28T15:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: using 2 text macros in data step (one with underscores)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/using-2-text-macros-in-data-step-one-with-underscores/m-p/599838#M173233</link>
      <description>&lt;P&gt;First, let's get the terminology right. These are macro variables, not macros. Do not confuse the two.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To fix the problem, you need a dot after the name of the first macro variable to indicate that what follows the dot is considered text.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&amp;amp;text1._&amp;amp;text2&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Otherwise SAS looks for a macro variable named &amp;amp;text1_ and there is no such macro variable defined.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 15:23:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/using-2-text-macros-in-data-step-one-with-underscores/m-p/599838#M173233</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-10-28T15:23:04Z</dc:date>
    </item>
    <item>
      <title>using text macros in filepath</title>
      <link>https://communities.sas.com/t5/SAS-Programming/using-2-text-macros-in-data-step-one-with-underscores/m-p/599950#M173290</link>
      <description>&lt;P&gt;On a somewhat related matter, I keep getting an error when trying to use a text macro in a proc import statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%let portfolio =portfolioname;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;libname out "/folder1/folder2/folder3/folder4/folder5/folder6/&amp;amp;portfolio";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc import out = out.samplefile_import datafile = "/folder1/folder2/folder3/folder4/folder5/folder6/&amp;amp;portfolio/filename_&amp;amp;portfolio._v2.xlsx"&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;Dbms&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=xlsx &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;replace&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;Sheet&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=EOP_Bal_Flow_Actuals;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Get following error:&lt;/P&gt;
&lt;P&gt;WARNING: Missing semicolon between %THEN clause and ELSE has been assumed.&lt;/P&gt;
&lt;P&gt;ERROR: Physical file does not exist, /folder1/folder2/folder3/folder4/folder5/folder6/portfolioname//Filename_portfolioname_v2.xlsx.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This occurs even though there is clearly an excel file called filename_portfolioname_v2.xlsx in the relevant folder. Also noticing two forward slashes in the error, not sure why.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please advice. Thanks in Advance!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 22:57:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/using-2-text-macros-in-data-step-one-with-underscores/m-p/599950#M173290</guid>
      <dc:creator>ubshams</dc:creator>
      <dc:date>2019-10-28T22:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: using text macros in filepath</title>
      <link>https://communities.sas.com/t5/SAS-Programming/using-2-text-macros-in-data-step-one-with-underscores/m-p/599951#M173291</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/185449"&gt;@ubshams&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;On a somewhat related matter, I keep getting an error when trying to use a text macro in a proc import statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%let portfolio =portfolioname;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;libname out "/folder1/folder2/folder3/folder4/folder5/folder6/&amp;amp;portfolio";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc import out = out.samplefile_import datafile = "/folder1/folder2/folder3/folder4/folder5/folder6/&amp;amp;portfolio/filename_&amp;amp;portfolio._v2.xlsx"&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;Dbms&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=xlsx &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;replace&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;Sheet&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=EOP_Bal_Flow_Actuals;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Get following error:&lt;/P&gt;
&lt;P&gt;WARNING: Missing semicolon between %THEN clause and ELSE has been assumed.&lt;/P&gt;
&lt;P&gt;ERROR: Physical file does not exist, /folder1/folder2/folder3/folder4/folder5/folder6/portfolioname//Filename_portfolioname_v2.xlsx.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This occurs even though there is clearly an excel file called filename_portfolioname_v2.xlsx in the relevant folder. Also noticing two forward slashes in the error, not sure why.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please advice. Thanks in Advance!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You have clearly posted the wrong part of the program. There is neither an %IF nor a %THEN keyword in any of the code you posted.&lt;/P&gt;
&lt;P&gt;Why does the message seem to be a mix between a macro error and a data step error.&amp;nbsp; Why does it %THEN and ELSE instead of %THEN and %ELSE or THEN and ELSE?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 23:10:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/using-2-text-macros-in-data-step-one-with-underscores/m-p/599951#M173291</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-10-28T23:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: using text macros in filepath</title>
      <link>https://communities.sas.com/t5/SAS-Programming/using-2-text-macros-in-data-step-one-with-underscores/m-p/599954#M173292</link>
      <description>&lt;P&gt;It might have been some global macros at the top of my code (some legacy companywide macros). Anyways I deleted those and just ran this part form the top and still get physicial file does not exist error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%let portfolio =portfolioname;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;libname out "/folder1/folder2/folder3/folder4/folder5/folder6/&amp;amp;portfolio";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc import out = out.samplefile_import datafile = "/folder1/folder2/folder3/folder4/folder5/folder6/&amp;amp;portfolio/filename_&amp;amp;portfolio._v2.xlsx"&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;Dbms&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=xlsx &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;replace&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;Sheet&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=EOP_Bal_Flow_Actuals;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: Physical file does not exist, /folder1/folder2/folder3/folder4/folder5/folder6/portfolioname//Filename_portfolioname_v2.xlsx.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 23:21:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/using-2-text-macros-in-data-step-one-with-underscores/m-p/599954#M173292</guid>
      <dc:creator>ubshams</dc:creator>
      <dc:date>2019-10-28T23:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: using text macros in filepath</title>
      <link>https://communities.sas.com/t5/SAS-Programming/using-2-text-macros-in-data-step-one-with-underscores/m-p/599983#M173307</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/185449"&gt;@ubshams&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;It might have been some global macros at the top of my code (some legacy companywide macros). Anyways I deleted those and just ran this part form the top and still get physicial file does not exist error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%let portfolio =portfolioname;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;libname out "/folder1/folder2/folder3/folder4/folder5/folder6/&amp;amp;portfolio";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc import out = out.samplefile_import datafile = "/folder1/folder2/folder3/folder4/folder5/folder6/&amp;amp;portfolio/filename_&amp;amp;portfolio._v2.xlsx"&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;Dbms&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=xlsx &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;replace&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;Sheet&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=EOP_Bal_Flow_Actuals;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: Physical file does not exist, /folder1/folder2/folder3/folder4/folder5/folder6/portfolioname//Filename_portfolioname_v2.xlsx.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) run your code with options symbolgen mprint mlogic (mlogic probably not needed but doesn't hurt), then cut-and-paste the relevant portion of your log (from the source code echoed in the log to the error message).&amp;nbsp; Paste it using the Insert SAS Code... icon.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) For now &lt;U&gt;forget macro&lt;/U&gt;.&amp;nbsp; Get this exact code to work properly (edit as required):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import 
   out = out.samplefile_import 
   datafile = "/folder1/folder2/folder3/folder4/folder5/folder6/portfolioname/filename_portfolioname_v2.xlsx"
   dbms=xlsx 
   replace;
   Sheet=EOP_Bal_Flow_Actuals;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;3) Once you get the exact code to work properly, since your only macro variables are in the datafile path, just do this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put /folder1/folder2/folder3/folder4/folder5/folder6/&amp;amp;portfolio/filename_&amp;amp;portfolio._v2.xlsx;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and just review the log until the %put statement &lt;EM&gt;&lt;U&gt;&lt;STRONG&gt;exactly&lt;/STRONG&gt;&lt;/U&gt;&lt;/EM&gt; equals the code (filepath) that you proved worked as desired.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 06:14:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/using-2-text-macros-in-data-step-one-with-underscores/m-p/599983#M173307</guid>
      <dc:creator>ScottBass</dc:creator>
      <dc:date>2019-10-29T06:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: using text macros in filepath</title>
      <link>https://communities.sas.com/t5/SAS-Programming/using-2-text-macros-in-data-step-one-with-underscores/m-p/599985#M173308</link>
      <description>&lt;P&gt;P.S.:&amp;nbsp; Don't mark a post resolved, then post "On a somewhat related matter...".&amp;nbsp; Either unmark the resolved post or post a new thread.&amp;nbsp; Many members will just ignore posts that are resolved, so you're limiting your pool of potential solutions (and possibly lengthening the time to get a solution).&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 06:17:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/using-2-text-macros-in-data-step-one-with-underscores/m-p/599985#M173308</guid>
      <dc:creator>ScottBass</dc:creator>
      <dc:date>2019-10-29T06:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: using text macros in filepath</title>
      <link>https://communities.sas.com/t5/SAS-Programming/using-2-text-macros-in-data-step-one-with-underscores/m-p/600158#M173402</link>
      <description>&lt;P&gt;The portfolioname macro in the context of filename is case sensitive it turns out. That fixed it. Thanks for all your suggestions!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 19:43:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/using-2-text-macros-in-data-step-one-with-underscores/m-p/600158#M173402</guid>
      <dc:creator>ubshams</dc:creator>
      <dc:date>2019-10-29T19:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: using text macros in filepath</title>
      <link>https://communities.sas.com/t5/SAS-Programming/using-2-text-macros-in-data-step-one-with-underscores/m-p/600260#M173454</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/185449"&gt;@ubshams&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;The portfolioname macro in the context of filename is case sensitive it turns out. That fixed it. Thanks for all your suggestions!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yeah unix/linux is like that :rolleyes:&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 05:29:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/using-2-text-macros-in-data-step-one-with-underscores/m-p/600260#M173454</guid>
      <dc:creator>ScottBass</dc:creator>
      <dc:date>2019-10-30T05:29:54Z</dc:date>
    </item>
  </channel>
</rss>

