<?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: SAS/ACCESS: Remap default data types and SAS formats in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-ACCESS-Remap-default-data-types-and-SAS-formats/m-p/579902#M17732</link>
    <description>&lt;P&gt;Either that, or a Libname option similar to DBSASTYPE, like from data type to SAS format...&lt;/P&gt;
&lt;P&gt;Thanks for the swift response!&lt;/P&gt;</description>
    <pubDate>Thu, 08 Aug 2019 15:08:21 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2019-08-08T15:08:21Z</dc:date>
    <item>
      <title>SAS/ACCESS: Remap default data types and SAS formats</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-ACCESS-Remap-default-data-types-and-SAS-formats/m-p/579841#M17728</link>
      <description>&lt;P&gt;Maybe I missed something obvious, but here goes.&lt;/P&gt;
&lt;P&gt;For each SAS/ACCESS engine, there is a table in the documentation that descibes the default mappings from the source (database) data type and the format it will have in SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to affect this mapping, on a library level?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know that there is a DBSASTYPE= data set option, but that acts on individula columns. A bit awkward if you like this to be applied to a schema with potentially hundreds of columns of a certain data type.&lt;/P&gt;
&lt;P&gt;My current example is that I want date to use YYMMDD10., not DATE9..&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 11:06:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-ACCESS-Remap-default-data-types-and-SAS-formats/m-p/579841#M17728</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2019-08-08T11:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/ACCESS: Remap default data types and SAS formats</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-ACCESS-Remap-default-data-types-and-SAS-formats/m-p/579867#M17730</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13674"&gt;@LinusH&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is an exciting idea. Right now, there is no way to remap an entire LIBRARY in one fell swoop. I am going to create a feature request for your idea. I am thinking that a SAS data set containing the conversion details would be an excellent way to approach this. It is possible to remap SAS functions using a similar technique.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for posting this,&lt;/P&gt;
&lt;P&gt;Jeff&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 1.125rem; letter-spacing: 0px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 13:32:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-ACCESS-Remap-default-data-types-and-SAS-formats/m-p/579867#M17730</guid>
      <dc:creator>JBailey</dc:creator>
      <dc:date>2019-08-08T13:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/ACCESS: Remap default data types and SAS formats</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-ACCESS-Remap-default-data-types-and-SAS-formats/m-p/579881#M17731</link>
      <description>An automatic remapping feature would be very useful.&lt;BR /&gt;&lt;BR /&gt;Our use case: we have a SAS copy and a database copy of our data warehouse.  We would like to be able to run the same code, unchanged except for libname statements, against either copy.&lt;BR /&gt;&lt;BR /&gt;When our database was Teradata we could do that.  But we have been switched to Oracle.&lt;BR /&gt;&lt;BR /&gt;The problem is that SAS and Teradata have both date and datetime data types, but Oracle has only a datetime type.  SAS/Access will convert dates to datetimes when sending a query to Oracle, but does not convert datetimes to dates when returning results. That breaks programs written to expect date values.&lt;BR /&gt;&lt;BR /&gt;The SASDATEFMT data set option could at one time be set through an environment variable, which might solve the problem, but I think that's now deprecated.&lt;BR /&gt;&lt;BR /&gt;Your suggestion would be a more flexible way to do that (I would want to change both the format and the data type, which is what sasdatefmt does, instead of only the format).&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Aug 2019 13:56:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-ACCESS-Remap-default-data-types-and-SAS-formats/m-p/579881#M17731</guid>
      <dc:creator>JackHamilton</dc:creator>
      <dc:date>2019-08-08T13:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/ACCESS: Remap default data types and SAS formats</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-ACCESS-Remap-default-data-types-and-SAS-formats/m-p/579902#M17732</link>
      <description>&lt;P&gt;Either that, or a Libname option similar to DBSASTYPE, like from data type to SAS format...&lt;/P&gt;
&lt;P&gt;Thanks for the swift response!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 15:08:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-ACCESS-Remap-default-data-types-and-SAS-formats/m-p/579902#M17732</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2019-08-08T15:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/ACCESS: Remap default data types and SAS formats</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-ACCESS-Remap-default-data-types-and-SAS-formats/m-p/579971#M17733</link>
      <description>&lt;P&gt;There are lots of ways that SAS might do it.&amp;nbsp; Another way, a bit clumsier but with other benefits, would be to allow FedSQL views to be used in base SAS; it seems to do the conversion automatically if you have declared data types correctly, but unfortunately FedSQLs are broken outside FedSQL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was thinking that a list in a libname (SASDATEFMT or DBSASTYPE) would be the way to go, but the suggestion of having the translation list stored in a data set is a good one.&amp;nbsp; It would allow you to specify different data types for the same variable name in different data sets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And if you think "No one would be so careless as to declare the same variable name in different ways in different data sets in the same library", haha, you haven't met our vendors.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 19:09:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-ACCESS-Remap-default-data-types-and-SAS-formats/m-p/579971#M17733</guid>
      <dc:creator>JackHamilton</dc:creator>
      <dc:date>2019-08-08T19:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/ACCESS: Remap default data types and SAS formats</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-ACCESS-Remap-default-data-types-and-SAS-formats/m-p/580004#M17734</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13901"&gt;@JackHamilton&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And if you think "No one would be so careless as to declare the same variable name in different ways in different data sets in the same library", haha, you haven't met our vendors.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will not get any push back from me on that point. I won't mention names but perhaps we have some of the same vendors...&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 22:05:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-ACCESS-Remap-default-data-types-and-SAS-formats/m-p/580004#M17734</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-08-08T22:05:58Z</dc:date>
    </item>
  </channel>
</rss>

