<?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: Unable to see all the views/Tables while registering a library in SAS SMC. in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-see-all-the-views-Tables-while-registering-a-library/m-p/265616#M18432</link>
    <description>&lt;P&gt;I'm not aware of any other workarounds you can try. If you want to try creating a SAS view then here is some example code to use:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql noprint;
  connect to odbc (noprompt = "server=MySQLServer;DRIVER=SQL Server Native Client 10.0;Trusted Connection=yes;DATABASE=MyDatabase;" ) ;
  create view sasuser.Short_Name as 
  select * from connection to odbc
  (SELECT *
   FROM [MyDatabase].[MySchema].[My_Very_Long_Table_Name_Longer_Than_32_Characters]
  )
  ;
  disconnect from odbc;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you think these are not very satisfactory workarounds then I am in total agreement!&lt;/P&gt;</description>
    <pubDate>Fri, 22 Apr 2016 10:08:34 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2016-04-22T10:08:34Z</dc:date>
    <item>
      <title>Unable to see all the views/Tables while registering a library in SAS SMC.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-see-all-the-views-Tables-while-registering-a-library/m-p/265396#M18422</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After following the steps of creating ODBC Server using dsn with sql server authentication and defining ODBC server and library in SAS SMC given&amp;nbsp; authentication domain in server manager i am able to connect to the database(MS Sql Server).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am now trying to register the views which are there in the database by right click on the library and register tables. I have 5 views in the database schema when i am trying to register i am able to see only one view out of five.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I kindly request&amp;nbsp; to help me with this as it is urgent.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Karthik&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2016 12:22:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-see-all-the-views-Tables-while-registering-a-library/m-p/265396#M18422</guid>
      <dc:creator>Karthikk</dc:creator>
      <dc:date>2016-04-21T12:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to see all the views/Tables while registering a library in SAS SMC.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-see-all-the-views-Tables-while-registering-a-library/m-p/265567#M18426</link>
      <description>&lt;P&gt;How long are the view names you can't see? EG will not show view or table names greater than 32 characters long. Special characters may cause problems also&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2016 01:05:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-see-all-the-views-Tables-while-registering-a-library/m-p/265567#M18426</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2016-04-22T01:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to see all the views/Tables while registering a library in SAS SMC.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-see-all-the-views-Tables-while-registering-a-library/m-p/265584#M18428</link>
      <description>&lt;P&gt;I Have two views which are of 32 long named and 3 more than that. I am trying to register in SAS SMC i am not using SAs EG. Will that be a problem in SAS SMC also??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately in two views i am not able to see the one which is lesser than the one which i can see&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Karthik&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2016 04:04:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-see-all-the-views-Tables-while-registering-a-library/m-p/265584#M18428</guid>
      <dc:creator>Karthikk</dc:creator>
      <dc:date>2016-04-22T04:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to see all the views/Tables while registering a library in SAS SMC.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-see-all-the-views-Tables-while-registering-a-library/m-p/265586#M18430</link>
      <description>&lt;P&gt;Yes, registering in SMC won't work either.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are a couple of workarounds:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&amp;nbsp; build a view in SQL Server reading the &amp;gt; 32 character named table/view that is no more than 32 characters long&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp; build a SAS SQL passthru view to the &lt;SPAN&gt;&amp;gt; 32 character named table/view&lt;/SPAN&gt;&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Fri, 22 Apr 2016 04:28:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-see-all-the-views-Tables-while-registering-a-library/m-p/265586#M18430</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2016-04-22T04:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to see all the views/Tables while registering a library in SAS SMC.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-see-all-the-views-Tables-while-registering-a-library/m-p/265587#M18431</link>
      <description>&lt;P&gt;Hi Kiwi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I Also have a doubt that if the names are exceeding 32 character, is there any other way to extract and register them? if yes please explain in detail or give me steps so that i can follow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Karthik&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2016 04:45:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-see-all-the-views-Tables-while-registering-a-library/m-p/265587#M18431</guid>
      <dc:creator>Karthikk</dc:creator>
      <dc:date>2016-04-22T04:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to see all the views/Tables while registering a library in SAS SMC.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-see-all-the-views-Tables-while-registering-a-library/m-p/265616#M18432</link>
      <description>&lt;P&gt;I'm not aware of any other workarounds you can try. If you want to try creating a SAS view then here is some example code to use:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql noprint;
  connect to odbc (noprompt = "server=MySQLServer;DRIVER=SQL Server Native Client 10.0;Trusted Connection=yes;DATABASE=MyDatabase;" ) ;
  create view sasuser.Short_Name as 
  select * from connection to odbc
  (SELECT *
   FROM [MyDatabase].[MySchema].[My_Very_Long_Table_Name_Longer_Than_32_Characters]
  )
  ;
  disconnect from odbc;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you think these are not very satisfactory workarounds then I am in total agreement!&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2016 10:08:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-see-all-the-views-Tables-while-registering-a-library/m-p/265616#M18432</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2016-04-22T10:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to see all the views/Tables while registering a library in SAS SMC.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-see-all-the-views-Tables-while-registering-a-library/m-p/265618#M18433</link>
      <description>&lt;P&gt;Thank you Kiwi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can i Convert a character Coloumn Year which values 2004, 2005, 2006 etc into a date Year format in EG? same for Month('Feb') to Date format 'Feb' also??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tnaks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Karthik&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2016 10:21:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-see-all-the-views-Tables-while-registering-a-library/m-p/265618#M18433</guid>
      <dc:creator>Karthikk</dc:creator>
      <dc:date>2016-04-22T10:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to see all the views/Tables while registering a library in SAS SMC.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-see-all-the-views-Tables-while-registering-a-library/m-p/265854#M18439</link>
      <description>You need to concatenate those so you get the date you think us appropriate and then use the input function to convert it to a SAS date.&lt;BR /&gt;&lt;BR /&gt;Btw, this is a separate question so it would be better if post it in a separate thread.</description>
      <pubDate>Sat, 23 Apr 2016 20:55:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-see-all-the-views-Tables-while-registering-a-library/m-p/265854#M18439</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-04-23T20:55:15Z</dc:date>
    </item>
  </channel>
</rss>

