<?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: Activity: Create a Macro Variable (REQUIRED) in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Activity-Create-a-Macro-Variable-REQUIRED/m-p/853154#M10751</link>
    <description>&lt;P&gt;Dear Tom,&lt;/P&gt;&lt;P&gt;Thank you very much for your time and efforts, please help me more&lt;/P&gt;&lt;P&gt;step 1: In your EPG1V2 folder, open libname.sas.&lt;/P&gt;&lt;P&gt;So Libname.sas is in Demo folder so when I open it, and then I will have to add&lt;BR /&gt;Macro.&lt;/P&gt;&lt;P&gt;actual file:&lt;/P&gt;&lt;P&gt;libname pg1 "S:/workshop/EPG1V2/data";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Creating Macro:&lt;BR /&gt;%let outpath="S:/workshop/EPG1V2/data";&lt;BR /&gt;libname pg1 "S:/workshop/EPG1V2/data";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and then I will run and below is the result:&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;98 proc export data=pg1.storm_final&lt;BR /&gt;99 outfile="&amp;amp;outpath/storm_final.csv"&lt;BR /&gt;NOTE: Line generated by the macro variable "OUTPATH".&lt;BR /&gt;99 ""S:/workshop/EPG1V2/data"????&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jan 2023 20:24:36 GMT</pubDate>
    <dc:creator>neophyte</dc:creator>
    <dc:date>2023-01-10T20:24:36Z</dc:date>
    <item>
      <title>Activity: Create a Macro Variable (REQUIRED)</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Activity-Create-a-Macro-Variable-REQUIRED/m-p/853139#M10747</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am totally lost in this setup, please help, I am using SAS Studio 9.4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;In your&amp;nbsp;&lt;STRONG&gt;EPG1V2&lt;/STRONG&gt;&amp;nbsp;folder, open&amp;nbsp;&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&amp;nbsp;&lt;STRONG&gt;outpath&lt;/STRONG&gt;&amp;nbsp;that stores the filepath to your&amp;nbsp;&lt;STRONG&gt;EPG1V2/output&lt;/STRONG&gt;&amp;nbsp;folder:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let outpath=&lt;EM&gt;filepath-to-output-folder&lt;/EM&gt;;&lt;/P&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;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 10 Jan 2023 19:31:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Activity-Create-a-Macro-Variable-REQUIRED/m-p/853139#M10747</guid>
      <dc:creator>neophyte</dc:creator>
      <dc:date>2023-01-10T19:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: Activity: Create a Macro Variable (REQUIRED)</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Activity-Create-a-Macro-Variable-REQUIRED/m-p/853143#M10748</link>
      <description>Are you using a local install of SAS or SAS OnDemand for Academics?</description>
      <pubDate>Tue, 10 Jan 2023 19:41:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Activity-Create-a-Macro-Variable-REQUIRED/m-p/853143#M10748</guid>
      <dc:creator>tom_grant</dc:creator>
      <dc:date>2023-01-10T19:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Activity: Create a Macro Variable (REQUIRED)</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Activity-Create-a-Macro-Variable-REQUIRED/m-p/853147#M10749</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using SAS studio for an e-learning virtual Lab.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 19:55:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Activity-Create-a-Macro-Variable-REQUIRED/m-p/853147#M10749</guid>
      <dc:creator>neophyte</dc:creator>
      <dc:date>2023-01-10T19:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: Activity: Create a Macro Variable (REQUIRED)</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Activity-Create-a-Macro-Variable-REQUIRED/m-p/853152#M10750</link>
      <description>Using the SAS Virtual Lab&lt;BR /&gt;The SAS Virtual Lab already has the course files loaded for you. All you have to do is launch the lab and start using SAS Studio.&lt;BR /&gt;So I think it would be:&lt;BR /&gt;%let outpath=S:/workshop/EPG1V2/data&lt;BR /&gt;&lt;BR /&gt;Note: In some programs in this course you will be asked to replace FILEPATH with the path to your EPG1V2/data folder. For the virtual lab your filepath is S:/workshop/EPG1V2/data. You can view and copy the filepath anytime by right-clicking the data folder and selecting Properties.</description>
      <pubDate>Tue, 10 Jan 2023 20:12:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Activity-Create-a-Macro-Variable-REQUIRED/m-p/853152#M10750</guid>
      <dc:creator>tom_grant</dc:creator>
      <dc:date>2023-01-10T20:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: Activity: Create a Macro Variable (REQUIRED)</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Activity-Create-a-Macro-Variable-REQUIRED/m-p/853154#M10751</link>
      <description>&lt;P&gt;Dear Tom,&lt;/P&gt;&lt;P&gt;Thank you very much for your time and efforts, please help me more&lt;/P&gt;&lt;P&gt;step 1: In your EPG1V2 folder, open libname.sas.&lt;/P&gt;&lt;P&gt;So Libname.sas is in Demo folder so when I open it, and then I will have to add&lt;BR /&gt;Macro.&lt;/P&gt;&lt;P&gt;actual file:&lt;/P&gt;&lt;P&gt;libname pg1 "S:/workshop/EPG1V2/data";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Creating Macro:&lt;BR /&gt;%let outpath="S:/workshop/EPG1V2/data";&lt;BR /&gt;libname pg1 "S:/workshop/EPG1V2/data";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and then I will run and below is the result:&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;98 proc export data=pg1.storm_final&lt;BR /&gt;99 outfile="&amp;amp;outpath/storm_final.csv"&lt;BR /&gt;NOTE: Line generated by the macro variable "OUTPATH".&lt;BR /&gt;99 ""S:/workshop/EPG1V2/data"????&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 20:24:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Activity-Create-a-Macro-Variable-REQUIRED/m-p/853154#M10751</guid>
      <dc:creator>neophyte</dc:creator>
      <dc:date>2023-01-10T20:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Activity: Create a Macro Variable (REQUIRED)</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Activity-Create-a-Macro-Variable-REQUIRED/m-p/853159#M10752</link>
      <description>Hello - take the quotes out of the %let statement.&lt;BR /&gt;Should be:&lt;BR /&gt; %let outpath = S:/workshop/EPG1V2/data;&lt;BR /&gt; however the exercise may want you to write the file to another directory under S:/workshop/EPG1V2/ - is there a folder under S:/workshop/EPG1V2/ called output or something like that?  If so, then your %let statement should be:&lt;BR /&gt;%let outpath = S:/workshop/EPG1V2/output;&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Jan 2023 20:47:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Activity-Create-a-Macro-Variable-REQUIRED/m-p/853159#M10752</guid>
      <dc:creator>tom_grant</dc:creator>
      <dc:date>2023-01-10T20:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Activity: Create a Macro Variable (REQUIRED)</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Activity-Create-a-Macro-Variable-REQUIRED/m-p/853160#M10753</link>
      <description>When SAS sees the &amp;amp;outpath it will substitute whatever is after the = in the %let statement (including quotes)</description>
      <pubDate>Tue, 10 Jan 2023 20:48:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Activity-Create-a-Macro-Variable-REQUIRED/m-p/853160#M10753</guid>
      <dc:creator>tom_grant</dc:creator>
      <dc:date>2023-01-10T20:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Activity: Create a Macro Variable (REQUIRED)</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Activity-Create-a-Macro-Variable-REQUIRED/m-p/853162#M10754</link>
      <description>&lt;P&gt;Dear Tom,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot, really appreciate your time and efforts. it solved the problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 21:04:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Activity-Create-a-Macro-Variable-REQUIRED/m-p/853162#M10754</guid>
      <dc:creator>neophyte</dc:creator>
      <dc:date>2023-01-10T21:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: Activity: Create a Macro Variable (REQUIRED)</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Activity-Create-a-Macro-Variable-REQUIRED/m-p/884626#M11025</link>
      <description>&lt;P&gt;hi, I did submit the code and I still get an error saying that my pg1.storm_final.data does not exist.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure what is the problem can you please help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the code&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc export data=pg1.storm_final&lt;BR /&gt;outfile="&amp;amp;outpath/storm_final.csv"&lt;BR /&gt;dbms=csv replace;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 09:24:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Activity-Create-a-Macro-Variable-REQUIRED/m-p/884626#M11025</guid>
      <dc:creator>sarah988</dc:creator>
      <dc:date>2023-07-13T09:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Activity: Create a Macro Variable (REQUIRED)</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Activity-Create-a-Macro-Variable-REQUIRED/m-p/913105#M11208</link>
      <description>&lt;P&gt;thank you&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/124967"&gt;@tom_grant&lt;/a&gt;&amp;nbsp; its really helpful&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 11:52:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Activity-Create-a-Macro-Variable-REQUIRED/m-p/913105#M11208</guid>
      <dc:creator>Sobia</dc:creator>
      <dc:date>2024-01-26T11:52:59Z</dc:date>
    </item>
  </channel>
</rss>

