<?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 Getting Started with SAS Programming Coursera Week Macro-Variable Help in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Getting-Started-with-SAS-Programming-Coursera-Week-Macro/m-p/884975#M349655</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi! I am on Week 6 of the&amp;nbsp;Getting Started with SAS Programming Coursera course, and am not able to figure how to properly execute the assignment below. I have tried putting the outpath in quotes and without but am still not able to establish&amp;nbsp;a macro variable, please help.&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;In your &lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;EPG1V2 &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;folder, open&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt; libname.sas&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Create a macro variable named &lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;outpath &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;that stores the filepath to your &lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;EPG1V2/output&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt; folder: &lt;/SPAN&gt;&lt;SPAN&gt;%let outpath=filepath-to-output-folder; &lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt; In the &lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;Server Files and Folders&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt; pane, right-click the &lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;output &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;folder and select &lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;Properties &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;to identify the full path. &lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Run the code.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Check the log to be sure there are no errors, then save and close the program.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
    <pubDate>Sun, 16 Jul 2023 22:22:27 GMT</pubDate>
    <dc:creator>apat01</dc:creator>
    <dc:date>2023-07-16T22:22:27Z</dc:date>
    <item>
      <title>Getting Started with SAS Programming Coursera Week Macro-Variable Help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-Started-with-SAS-Programming-Coursera-Week-Macro/m-p/884975#M349655</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi! I am on Week 6 of the&amp;nbsp;Getting Started with SAS Programming Coursera course, and am not able to figure how to properly execute the assignment below. I have tried putting the outpath in quotes and without but am still not able to establish&amp;nbsp;a macro variable, please help.&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;In your &lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;EPG1V2 &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;folder, open&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt; libname.sas&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Create a macro variable named &lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;outpath &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;that stores the filepath to your &lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;EPG1V2/output&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt; folder: &lt;/SPAN&gt;&lt;SPAN&gt;%let outpath=filepath-to-output-folder; &lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt; In the &lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;Server Files and Folders&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt; pane, right-click the &lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;output &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;folder and select &lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;Properties &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;to identify the full path. &lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Run the code.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Check the log to be sure there are no errors, then save and close the program.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Sun, 16 Jul 2023 22:22:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-Started-with-SAS-Programming-Coursera-Week-Macro/m-p/884975#M349655</guid>
      <dc:creator>apat01</dc:creator>
      <dc:date>2023-07-16T22:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Started with SAS Programming Coursera Week Macro-Variable Help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-Started-with-SAS-Programming-Coursera-Week-Macro/m-p/884976#M349656</link>
      <description>&lt;P&gt;This was the code I tried:&lt;/P&gt;&lt;P&gt;libname PG1 "/home/&amp;lt;user&amp;gt;/EPG1V2/data";&lt;BR /&gt;%let outpath=home/&amp;lt;user&amp;gt;/EPG1V2/output;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jul 2023 22:26:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-Started-with-SAS-Programming-Coursera-Week-Macro/m-p/884976#M349656</guid>
      <dc:creator>apat01</dc:creator>
      <dc:date>2023-07-16T22:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Started with SAS Programming Coursera Week Macro-Variable Help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-Started-with-SAS-Programming-Coursera-Week-Macro/m-p/884977#M349657</link>
      <description>&lt;P&gt;Did you replace the literal text &amp;lt;user&amp;gt; with your actual userid ?&lt;/P&gt;
&lt;P&gt;Your second line is using a RELATIVE filename instead of an ABSOLUTE filename.&amp;nbsp; Can you see the difference?&lt;/P&gt;
&lt;LI-SPOILER&gt;You forgot to start the path with the root node , / .&lt;/LI-SPOILER&gt;
&lt;P&gt;Note that on most Unix systems you can just use ~ as a short cut for YOUR home directory.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname PG1 "~/EPG1V2/data";
%let outpath=~/EPG1V2/output;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Also make sure you are using the instructions that are built for the environment you are actually using.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jul 2023 23:36:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-Started-with-SAS-Programming-Coursera-Week-Macro/m-p/884977#M349657</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-07-16T23:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Started with SAS Programming Coursera Week Macro-Variable Help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-Started-with-SAS-Programming-Coursera-Week-Macro/m-p/885096#M349710</link>
      <description>&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, in SAS I put my user ID in the code, however I put user on this forum for privacy reasons. And the issue was just that I had forgotten to include a / at the beginning of the outpath filepath. Thanks for the suggestion!&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2023 16:42:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-Started-with-SAS-Programming-Coursera-Week-Macro/m-p/885096#M349710</guid>
      <dc:creator>apat01</dc:creator>
      <dc:date>2023-07-17T16:42:42Z</dc:date>
    </item>
  </channel>
</rss>

