<?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: Create a Macro Variable (REQUIRED) in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Create-a-Macro-Variable-REQUIRED/m-p/540453#M7150</link>
    <description>Questions to get you started:&lt;BR /&gt;&lt;BR /&gt;Do you know how to find your EPG194 folder?&lt;BR /&gt;&lt;BR /&gt;Are you able to see files within that folder?</description>
    <pubDate>Tue, 05 Mar 2019 14:44:14 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2019-03-05T14:44:14Z</dc:date>
    <item>
      <title>Create a Macro Variable (REQUIRED)</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Create-a-Macro-Variable-REQUIRED/m-p/540307#M7142</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Follow the instructions for your software to create a macro variable that stores the location for output files.&lt;/P&gt;&lt;P&gt;SAS Studio&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;In your&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;EPG194&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;folder, open&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;libname.sas&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;LI&gt;Create a macro variable named&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;outpath&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;that stores the filepath to your&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;EPG194/output&lt;/STRONG&gt;folder:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;%let outpath=&lt;EM&gt;filepath-to-output-folder&lt;/EM&gt;; &lt;/PRE&gt;&lt;OL&gt;&lt;LI&gt;Run the code.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;LI&gt;Check the log to be sure there are no errors, then save and close the program&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Tue, 05 Mar 2019 02:44:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Create-a-Macro-Variable-REQUIRED/m-p/540307#M7142</guid>
      <dc:creator>kc10</dc:creator>
      <dc:date>2019-03-05T02:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Macro Variable (REQUIRED)</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Create-a-Macro-Variable-REQUIRED/m-p/540331#M7144</link>
      <description>&lt;P&gt;And what is the question?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 05:30:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Create-a-Macro-Variable-REQUIRED/m-p/540331#M7144</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-03-05T05:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Macro Variable (REQUIRED)</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Create-a-Macro-Variable-REQUIRED/m-p/540439#M7148</link>
      <description>How do you create a macro variable named outpath that stores to your EPG194/outputfolder? I am having trouble.. don't know what to do from the beginning. Will appreciate your help to walk me through.</description>
      <pubDate>Tue, 05 Mar 2019 13:55:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Create-a-Macro-Variable-REQUIRED/m-p/540439#M7148</guid>
      <dc:creator>kc10</dc:creator>
      <dc:date>2019-03-05T13:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Macro Variable (REQUIRED)</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Create-a-Macro-Variable-REQUIRED/m-p/540441#M7149</link>
      <description>&lt;P&gt;You already gave the answer yourself in your initial post. Just replace the italic string with the string that contains your path.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 13:58:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Create-a-Macro-Variable-REQUIRED/m-p/540441#M7149</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-03-05T13:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Macro Variable (REQUIRED)</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Create-a-Macro-Variable-REQUIRED/m-p/540453#M7150</link>
      <description>Questions to get you started:&lt;BR /&gt;&lt;BR /&gt;Do you know how to find your EPG194 folder?&lt;BR /&gt;&lt;BR /&gt;Are you able to see files within that folder?</description>
      <pubDate>Tue, 05 Mar 2019 14:44:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Create-a-Macro-Variable-REQUIRED/m-p/540453#M7150</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-03-05T14:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Macro Variable (REQUIRED)</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Create-a-Macro-Variable-REQUIRED/m-p/540462#M7151</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; In SAS Studio, right click on the OUTPUT folder under your EPG194 main folder. Choose Properties. In the location field, the full path should be revealed to you. Highlight and copy this path with Ctrl+C. then highlight the italics (shown in pink below):&lt;/P&gt;
&lt;PRE&gt;%let outpath=&lt;FONT color="#FF00FF"&gt;&lt;EM&gt;filepath-to-output-folder&lt;/EM&gt;; &lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;and replace (Ctrl+V) the highlighted string with the path location you copied from Properties. Possibilities for all the different ways to use SAS are:&lt;/P&gt;
&lt;P&gt;Most frequently used free methods:&lt;/P&gt;
&lt;P&gt;SAS University Edition: &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;%let outpath=&lt;FONT color="#339966"&gt;/folder/myfolders/EPG194/output&lt;/FONT&gt;;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;SAS OnDemand for Academics: &lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;%let outpath=&lt;FONT color="#339966"&gt;/home/&amp;lt;your_userid&amp;gt;/EPG194/output&lt;/FONT&gt;;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;OR&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt; &amp;nbsp;%let outpath=&lt;FONT color="#339966"&gt;~/EPG194/output&lt;/FONT&gt;;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Other methods of using SAS:&lt;/P&gt;
&lt;P&gt;C: drive with local SAS: &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;%let outpath=&lt;FONT color="#339966"&gt;C:\SAS_class\EPG194\output&lt;/FONT&gt;;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Unix Installation: &lt;FONT color="#339966"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT color="#000000"&gt;%let outpath=&lt;/FONT&gt;/usr/bin/SAS_class/EPG194/output&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;;&lt;/P&gt;
&lt;P&gt;Enterprise Guide: &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;%let outpath = &lt;FONT color="#339966"&gt;%sysfunc(pathname(work))&lt;/FONT&gt;; (no write access to C: drive)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial, helvetica, sans-serif"&gt;&amp;nbsp; OR&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="courier new,courier" style="font-weight: bold;"&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;%let outpath = &lt;FONT color="#339966"&gt;c:\SAS_class\EPG194\output&lt;/FONT&gt;;&amp;nbsp; (with write access to C: drive)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any time in the course where you have seen the string 'FILEPATH' or 'filepath-to-folder', you've needed to replace that string with a path location -- usually the path to the data folder. The only difference here is that you are using the locatioin of the OUTPUT folder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 14:59:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Create-a-Macro-Variable-REQUIRED/m-p/540462#M7151</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-03-05T14:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Macro Variable (REQUIRED)</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Create-a-Macro-Variable-REQUIRED/m-p/540525#M7156</link>
      <description>&lt;P&gt;Thank you for your help CYNTHIA. Really appreciated!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 18:03:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Create-a-Macro-Variable-REQUIRED/m-p/540525#M7156</guid>
      <dc:creator>kc10</dc:creator>
      <dc:date>2019-03-05T18:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Macro Variable (REQUIRED)</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Create-a-Macro-Variable-REQUIRED/m-p/540526#M7157</link>
      <description>&lt;P&gt;Yes... thank you all for your help.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 18:04:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Create-a-Macro-Variable-REQUIRED/m-p/540526#M7157</guid>
      <dc:creator>kc10</dc:creator>
      <dc:date>2019-03-05T18:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Macro Variable (REQUIRED)</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Create-a-Macro-Variable-REQUIRED/m-p/540528#M7158</link>
      <description>&lt;P&gt;Thank you so much for your help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 18:05:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Create-a-Macro-Variable-REQUIRED/m-p/540528#M7158</guid>
      <dc:creator>kc10</dc:creator>
      <dc:date>2019-03-05T18:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Macro Variable (REQUIRED)</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Create-a-Macro-Variable-REQUIRED/m-p/696651#M9469</link>
      <description>&lt;P&gt;I am struggling getting past this first step of defining a file path using the %let macro code. &amp;nbsp;Specifically, after running the code (SAS Studio - University Edition), with the correct path, the code runs but I cannot see anything in the log to indicate the macro variable was created. &amp;nbsp;When calling in the macro variable in the Proc Export activity - the program does not recognize the &amp;amp;outpath macro so no table is produced. &amp;nbsp;I tried a few different ways of running the %let to define the &amp;amp;outpath macro variable and proc export program to produce the pg1.storm_final SAS table but cannot get past this exercise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Quick question, after running the following exercise - the following code - what should I see in the log? &amp;nbsp;How do I know the &amp;amp;outpath macro variable was successfully created and available to use in the proc export exercise?&lt;/P&gt;&lt;PRE&gt;%let outpath=/folders/myfolders/EPG1V2/output;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 19:38:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Create-a-Macro-Variable-REQUIRED/m-p/696651#M9469</guid>
      <dc:creator>thyes83</dc:creator>
      <dc:date>2020-11-04T19:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Macro Variable (REQUIRED)</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Create-a-Macro-Variable-REQUIRED/m-p/696679#M9470</link>
      <description>&lt;P&gt;When you run this, and nothing else appears in the log, then you can safely assume it worked.&lt;/P&gt;
&lt;P&gt;To check, run this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put &amp;amp;=outpath.;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Nov 2020 20:45:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Create-a-Macro-Variable-REQUIRED/m-p/696679#M9470</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-11-04T20:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Macro Variable (REQUIRED)</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Create-a-Macro-Variable-REQUIRED/m-p/696692#M9471</link>
      <description>&lt;P&gt;Kurt -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help....I was able to successfully complete the exercise - and output the .csv file to the output folder.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 21:09:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Create-a-Macro-Variable-REQUIRED/m-p/696692#M9471</guid>
      <dc:creator>thyes83</dc:creator>
      <dc:date>2020-11-04T21:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Macro Variable (REQUIRED)</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Create-a-Macro-Variable-REQUIRED/m-p/696705#M9472</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; If you have successfully changed your LIBNAME.SAS program, as shown below,these 2 activities are linked:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_1-1604523270093.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/51383i7733D7BD66ECE404/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_1-1604523270093.png" alt="Cynthia_sas_1-1604523270093.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Once you update LIBNAME.SAS with the %LET statement and run the code, assuming that you have the correct location of your OUTPUT folder, the macro variable should resolve correctly. You can use the %PUT statement to verify the value of &amp;amp;OUTPATH, as shown below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_2-1604523524034.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/51384i285D66C764EC094A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_2-1604523524034.png" alt="Cynthia_sas_2-1604523524034.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, if you spelled the folder path wrong, the %PUT doesn't do you any good here. What really matters is whether the output file got exported correctly to the &lt;STRONG&gt;/folders/myfolders/EPG1V2/output&lt;/STRONG&gt; folder when you run the code to create the &lt;STRONG&gt;storm_final.csv&lt;/STRONG&gt; file. In my SAS log, it shows in the NOTES what the value of&lt;STRONG&gt; &amp;amp;outpath&lt;/STRONG&gt; was, how it was used and whether the program code was successful. You can see the resolved name in the LOG messages below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1604523238300.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/51382i5CABB0784DA693F5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1604523238300.png" alt="Cynthia_sas_0-1604523238300.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I hope this helps clarify that when we refer to using &amp;amp;OUTPATH, we expect that you have done the required setup for creating the macro variable. As shown in my code, for SAS University Edition, assuming you made the data according to the instructions, your &lt;STRONG&gt;data&lt;/STRONG&gt; folder full path should be:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;FONT color="#FF00FF"&gt;/folders/myfolders&lt;/FONT&gt;/&lt;FONT color="#339966"&gt;EPG1V2&lt;/FONT&gt;/&lt;FONT color="#0000FF"&gt;data&lt;/FONT&gt;&lt;/STRONG&gt; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;and the &lt;STRONG&gt;output&lt;/STRONG&gt; folder full path should be:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;FONT color="#FF00FF"&gt;/folders/myfolders&lt;/FONT&gt;/&lt;FONT color="#339966"&gt;EPG1V2&lt;/FONT&gt;/&lt;FONT color="#FF6600"&gt;output&lt;/FONT&gt;&lt;/STRONG&gt; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 22:18:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Create-a-Macro-Variable-REQUIRED/m-p/696705#M9472</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-11-04T22:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Macro Variable (REQUIRED)</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Create-a-Macro-Variable-REQUIRED/m-p/719762#M9755</link>
      <description>I tried hard but no success. please help. I am getting the below error&lt;BR /&gt;&lt;BR /&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;72&lt;BR /&gt;NOTE: PROCEDURE EXPORT used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;user cpu time 0.00 seconds&lt;BR /&gt;system cpu time 0.00 seconds&lt;BR /&gt;memory 194.37k&lt;BR /&gt;OS Memory 33708.00k&lt;BR /&gt;Timestamp 16/02/2021 11:33:08 PM&lt;BR /&gt;Step Count 162 Switch Count 0&lt;BR /&gt;Page Faults 0&lt;BR /&gt;Page Reclaims 16&lt;BR /&gt;Page Swaps 0&lt;BR /&gt;Voluntary Context Switches 0&lt;BR /&gt;Involuntary Context Switches 0&lt;BR /&gt;Block Input Operations 0&lt;BR /&gt;Block Output Operations 0&lt;BR /&gt;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;73 proc export data=pg1.storm_final&lt;BR /&gt;74 outfile= "&amp;amp;outpathone/test_file.csv"&lt;BR /&gt;NOTE: Line generated by the macro variable "OUTPATHONE".&lt;BR /&gt;74 ""/EPG194/output"&lt;BR /&gt;_&lt;BR /&gt;22&lt;BR /&gt;76&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: ;, DATA, DBLABEL, DBMS, DEBUG, FILE, LABEL, OUTFILE, OUTTABLE, REPLACE,&lt;BR /&gt;TABLE, _DEBUG_.&lt;BR /&gt;&lt;BR /&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;BR /&gt;&lt;BR /&gt;75 dbms=csv replace;&lt;BR /&gt;76 run;&lt;BR /&gt;77&lt;BR /&gt;78 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;90</description>
      <pubDate>Tue, 16 Feb 2021 23:35:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Create-a-Macro-Variable-REQUIRED/m-p/719762#M9755</guid>
      <dc:creator>smatholi</dc:creator>
      <dc:date>2021-02-16T23:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Macro Variable (REQUIRED)</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Create-a-Macro-Variable-REQUIRED/m-p/719772#M9756</link>
      <description>&lt;P&gt;It looks like you have wrapped the macro variable&amp;nbsp;OUTPATHONE's value in unbalanced quotes. It shouldn't need quotes at all:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let OUTPATHONE = /EPG194/output;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Feb 2021 00:51:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Create-a-Macro-Variable-REQUIRED/m-p/719772#M9756</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-02-17T00:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Macro Variable (REQUIRED)</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Create-a-Macro-Variable-REQUIRED/m-p/720005#M9758</link>
      <description>&lt;P&gt;HI:&lt;BR /&gt;When using SAS University Edition, a partial path is NOT recommended. So with this OUTFILE= option:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;outfile= "&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;&amp;amp;outpathone&lt;/FONT&gt;&lt;/STRONG&gt;/&lt;STRONG&gt;test_file.csv&lt;/STRONG&gt;"&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;The challenge is that if &amp;amp;OUTPATHONE is just /EPG194/output (or in the newer course /EPG1V2/output), then the resolved value would be:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;outfile="&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;/EPG194/output&lt;/STRONG&gt;&lt;/FONT&gt;&lt;STRONG&gt;/test_file.csv&lt;/STRONG&gt;"&lt;/FONT&gt; &lt;BR /&gt;&lt;BR /&gt;And that would make SAS think that the EPG194 folder was in a relative location to a system folder. And in SAS University Edition and SAS OnDemand for Academics, this location would be WRONG.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; In the instructions, we tell you to use the full path. please go to your &lt;STRONG&gt;EPG194&lt;/STRONG&gt; folder in the &lt;STRONG&gt;Server Files and Folders&lt;/STRONG&gt; pane and expand the folder. Then find the &lt;STRONG&gt;output&lt;/STRONG&gt; folder and right click on the folder name and choose &lt;STRONG&gt;Properties&lt;/STRONG&gt;. My guess is that you will see one of these 2 locations in the Location field of the properties window:&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#0000FF"&gt;&lt;STRONG&gt;/home/&amp;lt;userID&amp;gt;/EPG194/output&lt;/STRONG&gt;&lt;/FONT&gt; (for SAS OnDemand)&lt;BR /&gt;or&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#0000FF"&gt;&lt;STRONG&gt;/folders/myfolders/EPG194/output&lt;/STRONG&gt;&lt;/FONT&gt; (for SAS University Edition)&lt;BR /&gt;&lt;BR /&gt;So this means that the correct %LET statement (without quotes) would be:&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#000000"&gt;&lt;STRONG&gt;%let outpathone=&lt;FONT color="#0000FF"&gt;/home/&amp;lt;userID&amp;gt;/EPG194/output&lt;/FONT&gt;;&lt;/STRONG&gt;&lt;/FONT&gt; (for SAS OnDemand)&lt;BR /&gt;or&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;%let outpathone=&lt;FONT color="#0000FF"&gt;/folders/myfolders/EPG194/output&lt;/FONT&gt;;&lt;/STRONG&gt;&lt;/FONT&gt; (for SAS University Edition)&lt;BR /&gt;&lt;BR /&gt;This would then make the OUTFILE= option resolve to:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;outfile="&lt;FONT face="courier new,courier" color="#000000"&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;/home/&amp;lt;userID&amp;gt;/EPG194/output&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;STRONG&gt;/test_file.csv&lt;/STRONG&gt;" &lt;FONT face="arial,helvetica,sans-serif"&gt;(for SAS OnDemand)&lt;/FONT&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;or&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;outfile="&lt;FONT face="courier new,courier" color="#000000"&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;/folders/myfolders/EPG194/output&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;STRONG&gt;/test_file.csv&lt;/STRONG&gt;"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Which should work for you to create the CSV file once the OUTFILE= option has the correct, full, path for the &lt;STRONG&gt;output&lt;/STRONG&gt; folder.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;BR /&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 18:52:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Create-a-Macro-Variable-REQUIRED/m-p/720005#M9758</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2021-02-17T18:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Macro Variable (REQUIRED)</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Create-a-Macro-Variable-REQUIRED/m-p/720281#M9761</link>
      <description>&lt;P&gt;Thank you very much. I executed the %let statement &lt;STRONG&gt;without quotes&lt;/STRONG&gt;. That was the issue and now resolved. Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But wonder why %let statement didnt throw an error when I executed with quotes.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 17:54:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Create-a-Macro-Variable-REQUIRED/m-p/720281#M9761</guid>
      <dc:creator>smatholi</dc:creator>
      <dc:date>2021-02-18T17:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Macro Variable (REQUIRED)</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Create-a-Macro-Variable-REQUIRED/m-p/720285#M9762</link>
      <description>&lt;P&gt;Thank you. yes I used quotes when I executed %let statement that was the issue. thanks a lot&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 17:57:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Create-a-Macro-Variable-REQUIRED/m-p/720285#M9762</guid>
      <dc:creator>smatholi</dc:creator>
      <dc:date>2021-02-18T17:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Macro Variable (REQUIRED)</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Create-a-Macro-Variable-REQUIRED/m-p/720297#M9763</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/362232"&gt;@smatholi&lt;/a&gt;&amp;nbsp; - Please update your post as answered in that case.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 18:48:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Create-a-Macro-Variable-REQUIRED/m-p/720297#M9763</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-02-18T18:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Macro Variable (REQUIRED)</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Create-a-Macro-Variable-REQUIRED/m-p/848174#M10712</link>
      <description>&lt;P&gt;%let outpath = /home/u61XXXX/EPG1V2/output;&lt;BR /&gt;run;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(it will define the macro outpath )&lt;/P&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;outfile&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;"&amp;amp;outpath/storm_final.csv"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;dbms&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;csv &lt;/SPAN&gt;&lt;SPAN class=""&gt;replace&lt;/SPAN&gt;&lt;SPAN class=""&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;run&lt;/SPAN&gt;&lt;SPAN class=""&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;NOTE: 3093 records were written to the file '/home/u61XXXX/EPG1V2/output/storm_final.csv'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;answer to your question is 3093&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 06 Dec 2022 18:05:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Create-a-Macro-Variable-REQUIRED/m-p/848174#M10712</guid>
      <dc:creator>shre6455</dc:creator>
      <dc:date>2022-12-06T18:05:16Z</dc:date>
    </item>
  </channel>
</rss>

