<?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: SASHELP.ZIPCODE HELP in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SASHELP-ZIPCODE-HELP/m-p/628055#M185512</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/276974"&gt;@Santha&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi all. I am trying to use SASHELP.ZIPCODE in viya. I have a proc fedsql and i am trying to create a table by joining two simple tables called R and Z. Here is the code below. "&lt;SPAN&gt;Table "SASHELP.ZIPCODE" does not exist or cannot be accessed" is the error that I get. Is there a permission issue going on or something else not correct in the code below?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cas;&lt;BR /&gt;caslib _ALL_ assign;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc fedsql sessref=casauto;&lt;BR /&gt;create table STDOPT.ModelingData as&lt;BR /&gt;(select R.Sitename,R.Sitezip,Z.X AS LATITUDE,Z.Y AS LONGITUDE&lt;BR /&gt;from SASHELP.ZIPCODE AS Z LEFT OUTER JOIN SANTSBOX.DATA as R&lt;BR /&gt;on Z.ZIP=R.Sitezip);&lt;BR /&gt;QUIT;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It may help to post the ENTIRE proc step with errors from the log.&lt;/P&gt;
&lt;P&gt;With a very simple query to fedsql I get:&lt;/P&gt;
&lt;PRE&gt;8    proc fedsql;
NOTE: Writing HTML Body file: sashtml1.htm
9       create table work.junk
10      as select *
11      from sashelp.zipcode
12      ;
ERROR: Table "SASHELP.ZIPCODE" does not exist or cannot be accessed
ERROR: BASE driver, schema name SASHELP was not found for this connection
13   quit;

&lt;/PRE&gt;
&lt;P&gt;I use SASHELP.ZIPCODE frequently (not with FEDSQL though). I think that you need to use a special LIBNAME statement to make the BASE data sets accessible:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;libname mybase base "&amp;lt;path to the SASHELP library where zipcodes resides.";&lt;/P&gt;
&lt;P&gt;and use MYBASE&amp;gt;ZIPCODE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think part of the issue might be that the SASHELP library contains multiple directories as well. So a more specific path is needed.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Feb 2020 21:51:11 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2020-02-27T21:51:11Z</dc:date>
    <item>
      <title>SASHELP.ZIPCODE HELP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SASHELP-ZIPCODE-HELP/m-p/627646#M185323</link>
      <description>&lt;P&gt;Hi all. I am trying to use SASHELP.ZIPCODE in viya. I have a proc fedsql and i am trying to create a table by joining two simple tables called R and Z. Here is the code below. "&lt;SPAN&gt;Table "SASHELP.ZIPCODE" does not exist or cannot be accessed" is the error that I get. Is there a permission issue going on or something else not correct in the code below?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cas;&lt;BR /&gt;caslib _ALL_ assign;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc fedsql sessref=casauto;&lt;BR /&gt;create table STDOPT.ModelingData as&lt;BR /&gt;(select R.Sitename,R.Sitezip,Z.X AS LATITUDE,Z.Y AS LONGITUDE&lt;BR /&gt;from SASHELP.ZIPCODE AS Z LEFT OUTER JOIN SANTSBOX.DATA as R&lt;BR /&gt;on Z.ZIP=R.Sitezip);&lt;BR /&gt;QUIT;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 20:09:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SASHELP-ZIPCODE-HELP/m-p/627646#M185323</guid>
      <dc:creator>Santha</dc:creator>
      <dc:date>2020-02-26T20:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: SASHELP.ZIPCODE HELP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SASHELP-ZIPCODE-HELP/m-p/627881#M185439</link>
      <description>If you do something like 'data foo; set sashelp.zipcode; run;' do you get the same error?</description>
      <pubDate>Thu, 27 Feb 2020 12:57:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SASHELP-ZIPCODE-HELP/m-p/627881#M185439</guid>
      <dc:creator>tomrvincent</dc:creator>
      <dc:date>2020-02-27T12:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: SASHELP.ZIPCODE HELP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SASHELP-ZIPCODE-HELP/m-p/628055#M185512</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/276974"&gt;@Santha&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi all. I am trying to use SASHELP.ZIPCODE in viya. I have a proc fedsql and i am trying to create a table by joining two simple tables called R and Z. Here is the code below. "&lt;SPAN&gt;Table "SASHELP.ZIPCODE" does not exist or cannot be accessed" is the error that I get. Is there a permission issue going on or something else not correct in the code below?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cas;&lt;BR /&gt;caslib _ALL_ assign;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc fedsql sessref=casauto;&lt;BR /&gt;create table STDOPT.ModelingData as&lt;BR /&gt;(select R.Sitename,R.Sitezip,Z.X AS LATITUDE,Z.Y AS LONGITUDE&lt;BR /&gt;from SASHELP.ZIPCODE AS Z LEFT OUTER JOIN SANTSBOX.DATA as R&lt;BR /&gt;on Z.ZIP=R.Sitezip);&lt;BR /&gt;QUIT;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It may help to post the ENTIRE proc step with errors from the log.&lt;/P&gt;
&lt;P&gt;With a very simple query to fedsql I get:&lt;/P&gt;
&lt;PRE&gt;8    proc fedsql;
NOTE: Writing HTML Body file: sashtml1.htm
9       create table work.junk
10      as select *
11      from sashelp.zipcode
12      ;
ERROR: Table "SASHELP.ZIPCODE" does not exist or cannot be accessed
ERROR: BASE driver, schema name SASHELP was not found for this connection
13   quit;

&lt;/PRE&gt;
&lt;P&gt;I use SASHELP.ZIPCODE frequently (not with FEDSQL though). I think that you need to use a special LIBNAME statement to make the BASE data sets accessible:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;libname mybase base "&amp;lt;path to the SASHELP library where zipcodes resides.";&lt;/P&gt;
&lt;P&gt;and use MYBASE&amp;gt;ZIPCODE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think part of the issue might be that the SASHELP library contains multiple directories as well. So a more specific path is needed.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 21:51:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SASHELP-ZIPCODE-HELP/m-p/628055#M185512</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-02-27T21:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: SASHELP.ZIPCODE HELP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SASHELP-ZIPCODE-HELP/m-p/628821#M185872</link>
      <description>&lt;P&gt;See this SAS Note:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/63/384.html" target="_blank"&gt;http://support.sas.com/kb/63/384.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Be sure to click on the Full Code tab to see how to create the proper LIBNAME statement for Sashelp data sets.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 16:33:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SASHELP-ZIPCODE-HELP/m-p/628821#M185872</guid>
      <dc:creator>maggiem_sas</dc:creator>
      <dc:date>2020-03-02T16:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: SASHELP.ZIPCODE HELP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SASHELP-ZIPCODE-HELP/m-p/629281#M186063</link>
      <description>&lt;P&gt;yes i get the same error. i had to make a copy of the sashelp.zipcode then go from there. thanks for ur input though&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2020 21:06:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SASHELP-ZIPCODE-HELP/m-p/629281#M186063</guid>
      <dc:creator>Santha</dc:creator>
      <dc:date>2020-03-03T21:06:59Z</dc:date>
    </item>
  </channel>
</rss>

