<?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: Data Step in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Data-Step/m-p/214860#M267624</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The concept is simple. SAS supports table names (and variable names) up to 32 characters long.&lt;/P&gt;&lt;P&gt;If you have a table in your SQL database with a name longer than that then you need to rename it or create a view to it that uses a shorter name.&lt;/P&gt;&lt;P&gt;If you cannot get it renamed then you will need to use passthrouh SQL instead of LIBNAME to reference the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql ;&lt;/P&gt;&lt;P&gt;connect using apple;&lt;/P&gt;&lt;P&gt;create table want as select * &lt;/P&gt;&lt;P&gt;from connection to apple &lt;/P&gt;&lt;P&gt;(select * from &lt;SPAN style="font-family: inherit; font-size: 13px; line-height: 1.5em; font-weight: inherit; font-style: inherit; color: #ff0000;"&gt;HOSPITALREADMISSIONDATASUMMARYINFORMATION&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em; color: #ff0000; font-size: 13px; font-style: inherit; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New';"&gt;WHERE put(accountid,&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em; font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: #008080;"&gt;accounts.&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em; font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New';"&gt;)=&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em; font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: #800080;"&gt;"true"&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em; font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New';"&gt;quit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Jun 2015 17:28:53 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2015-06-26T17:28:53Z</dc:date>
    <item>
      <title>Data Step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-Step/m-p/214859#M267623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying to use SET statement to pull data from a dataset.&lt;/P&gt;&lt;P&gt;It says the name is too long . It was named that way in the "apple library "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data WANT;&lt;/P&gt;&lt;P&gt;SET apple. &lt;SPAN style="color: #ff0000;"&gt;HOSPITALREADMISSIONDATASUMMARYINFORMATION&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;WHERE put(accountid,&lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt; font-family: Courier New;"&gt;accounts.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;)=&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 10pt; font-family: Courier New;"&gt;"true"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;RUN;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;THE TABLE IS NAMED LIKE THAT IN sql SERVER AND I AM USING LIBNAME STATEMENT TO CONNECT TO THAT TABLE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;ERROR 307-185: &lt;SPAN style="color: #ff0000;"&gt;The data set name cannot have more than 32 characters&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;Could you please help me understand the concept?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2015 16:46:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-Step/m-p/214859#M267623</guid>
      <dc:creator>robertrao</dc:creator>
      <dc:date>2015-06-26T16:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Data Step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-Step/m-p/214860#M267624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The concept is simple. SAS supports table names (and variable names) up to 32 characters long.&lt;/P&gt;&lt;P&gt;If you have a table in your SQL database with a name longer than that then you need to rename it or create a view to it that uses a shorter name.&lt;/P&gt;&lt;P&gt;If you cannot get it renamed then you will need to use passthrouh SQL instead of LIBNAME to reference the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql ;&lt;/P&gt;&lt;P&gt;connect using apple;&lt;/P&gt;&lt;P&gt;create table want as select * &lt;/P&gt;&lt;P&gt;from connection to apple &lt;/P&gt;&lt;P&gt;(select * from &lt;SPAN style="font-family: inherit; font-size: 13px; line-height: 1.5em; font-weight: inherit; font-style: inherit; color: #ff0000;"&gt;HOSPITALREADMISSIONDATASUMMARYINFORMATION&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em; color: #ff0000; font-size: 13px; font-style: inherit; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New';"&gt;WHERE put(accountid,&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em; font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: #008080;"&gt;accounts.&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em; font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New';"&gt;)=&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em; font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: #800080;"&gt;"true"&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em; font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New';"&gt;quit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2015 17:28:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-Step/m-p/214860#M267624</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-06-26T17:28:53Z</dc:date>
    </item>
  </channel>
</rss>

