<?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: Using Libname in Proc Export in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Using-Libname-in-Proc-Export/m-p/302175#M64063</link>
    <description>&lt;P&gt;Your program is referring to two macro variables:&amp;nbsp; &amp;amp;OUTY and &amp;amp;DATE&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error message is saying that at least one of these has not been defined.&amp;nbsp; You can get a list of all user-defined macro variables with a single statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%put _user_;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once&amp;nbsp; you see which are defined and which are not, you can handle this error.&amp;nbsp; There may be additional errors after that, if PROC EXPORT detects them.&amp;nbsp; But the first step is to eliminate the current error which is one (or two) of your macro variables not being defined in time.&lt;/P&gt;</description>
    <pubDate>Mon, 03 Oct 2016 20:39:12 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2016-10-03T20:39:12Z</dc:date>
    <item>
      <title>Using Libname in Proc Export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-Libname-in-Proc-Export/m-p/302168#M64058</link>
      <description>&lt;P&gt;I'm trying to use a Libname in a proc export and no matter what I do I get the&lt;/P&gt;
&lt;P&gt;Apparent symbolic reference not resolved error&amp;gt; Any help greatly appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;libname&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; outy &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"H:\SAS Code"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;PROC&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;EXPORT&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;DATA&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;= WORK.CMFY_ProvSpecE_people &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;OUTFILE&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;= &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"&amp;amp;outy.CMFY_ProvSpec_East_&amp;amp;date..csv"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;DBMS&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;=CSV &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;REPLACE&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;PUTNAMES=YES;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;RUN&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;Thanks,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;Brian&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 20:16:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-Libname-in-Proc-Export/m-p/302168#M64058</guid>
      <dc:creator>BTAinRVA</dc:creator>
      <dc:date>2016-10-03T20:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using Libname in Proc Export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-Libname-in-Proc-Export/m-p/302171#M64061</link>
      <description>&lt;P&gt;That's not how a libname is referenced. A libname is used to reference SAS datasets not paths, note the addition of the (\).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you want a MACRO variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let outy = H:\SAS Code;
 
PROC EXPORT DATA= WORK.CMFY_ProvSpecE_people
OUTFILE= "&amp;amp;outy.\CMFY_ProvSpec_East_&amp;amp;date..csv"
DBMS=CSV REPLACE;
PUTNAMES=YES;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 03 Oct 2016 20:27:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-Libname-in-Proc-Export/m-p/302171#M64061</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-10-03T20:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using Libname in Proc Export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-Libname-in-Proc-Export/m-p/302173#M64062</link>
      <description>&lt;P&gt;It helps to show the entire code. Symbolic reference often referrs to the macro variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OUTFILE wants things in the form of an operating file system. The LIBRARY is not valid or going to be used in this case.&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;OUTFILE&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;= &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"H:\SAS Code\CMFY_ProvSpec_East_&amp;amp;date..csv"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;OR&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;%let Outy = H:\SAS Code\"; to use the way you attempted.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also you would need the \ unless the folder's name is SAS CodeCMFY_ProvSpec_East_&amp;amp;date&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 20:30:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-Libname-in-Proc-Export/m-p/302173#M64062</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-10-03T20:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using Libname in Proc Export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-Libname-in-Proc-Export/m-p/302175#M64063</link>
      <description>&lt;P&gt;Your program is referring to two macro variables:&amp;nbsp; &amp;amp;OUTY and &amp;amp;DATE&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error message is saying that at least one of these has not been defined.&amp;nbsp; You can get a list of all user-defined macro variables with a single statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%put _user_;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once&amp;nbsp; you see which are defined and which are not, you can handle this error.&amp;nbsp; There may be additional errors after that, if PROC EXPORT detects them.&amp;nbsp; But the first step is to eliminate the current error which is one (or two) of your macro variables not being defined in time.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 20:39:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-Libname-in-Proc-Export/m-p/302175#M64063</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-10-03T20:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using Libname in Proc Export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-Libname-in-Proc-Export/m-p/302176#M64064</link>
      <description>Reeza,&lt;BR /&gt;&lt;BR /&gt;Thanks! I keep getting mixed up on that.</description>
      <pubDate>Mon, 03 Oct 2016 20:40:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-Libname-in-Proc-Export/m-p/302176#M64064</guid>
      <dc:creator>BTAinRVA</dc:creator>
      <dc:date>2016-10-03T20:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using Libname in Proc Export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-Libname-in-Proc-Export/m-p/302177#M64065</link>
      <description>ballardw,&lt;BR /&gt;&lt;BR /&gt;Thanks for the reply!</description>
      <pubDate>Mon, 03 Oct 2016 20:41:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-Libname-in-Proc-Export/m-p/302177#M64065</guid>
      <dc:creator>BTAinRVA</dc:creator>
      <dc:date>2016-10-03T20:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using Libname in Proc Export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-Libname-in-Proc-Export/m-p/302178#M64066</link>
      <description>Astounding,&lt;BR /&gt;&lt;BR /&gt;Thanks for the quick reply!</description>
      <pubDate>Mon, 03 Oct 2016 20:41:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-Libname-in-Proc-Export/m-p/302178#M64066</guid>
      <dc:creator>BTAinRVA</dc:creator>
      <dc:date>2016-10-03T20:41:52Z</dc:date>
    </item>
  </channel>
</rss>

