<?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 Trailing dot in sas teradata passthrough in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Trailing-dot-in-sas-teradata-passthrough/m-p/620815#M77191</link>
    <description>Hi I am Getting trailing "." (Period,dot) when i try to create a dataset using teradata passthrough.i want the variable as character.&lt;BR /&gt;Eg.&lt;BR /&gt;Prf_id(varchar)&lt;BR /&gt;626278.&lt;BR /&gt;726277.&lt;BR /&gt;627277.&lt;BR /&gt;726256.&lt;BR /&gt;62727.&lt;BR /&gt;&lt;BR /&gt;Please help.&lt;BR /&gt;Thanks</description>
    <pubDate>Wed, 29 Jan 2020 14:35:09 GMT</pubDate>
    <dc:creator>nid197</dc:creator>
    <dc:date>2020-01-29T14:35:09Z</dc:date>
    <item>
      <title>Trailing dot in sas teradata passthrough</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Trailing-dot-in-sas-teradata-passthrough/m-p/620815#M77191</link>
      <description>Hi I am Getting trailing "." (Period,dot) when i try to create a dataset using teradata passthrough.i want the variable as character.&lt;BR /&gt;Eg.&lt;BR /&gt;Prf_id(varchar)&lt;BR /&gt;626278.&lt;BR /&gt;726277.&lt;BR /&gt;627277.&lt;BR /&gt;726256.&lt;BR /&gt;62727.&lt;BR /&gt;&lt;BR /&gt;Please help.&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 29 Jan 2020 14:35:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Trailing-dot-in-sas-teradata-passthrough/m-p/620815#M77191</guid>
      <dc:creator>nid197</dc:creator>
      <dc:date>2020-01-29T14:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: Trailing dot in sas teradata passthrough</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Trailing-dot-in-sas-teradata-passthrough/m-p/620819#M77192</link>
      <description>&lt;P&gt;Please post the whole code that created this dataset. Use the "little running man" to post code.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 14:46:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Trailing-dot-in-sas-teradata-passthrough/m-p/620819#M77192</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-01-29T14:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: Trailing dot in sas teradata passthrough</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Trailing-dot-in-sas-teradata-passthrough/m-p/620822#M77193</link>
      <description>Here is the code-&lt;BR /&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;connect to teradata as tera1 (user="xxxxxx" password="xxxxxxx" server="xxxxx"&lt;BR /&gt;tpt=yes fastexport=yes);&lt;BR /&gt;create table mytable as&lt;BR /&gt;select * from connection to tera1&lt;BR /&gt;(select age&lt;BR /&gt;,entityno&lt;BR /&gt;,cast(segid as varchar(50)) as fbu1&lt;BR /&gt;,cast(profgrp_id as varchar(30)) as trnsid&lt;BR /&gt;,cast(accno as integer)as accno&lt;BR /&gt;,cast(startdt as varchar(10)) as startdt&lt;BR /&gt;,cast(enddt as varchar(10)) as enddt&lt;BR /&gt;from mytable1 a&lt;BR /&gt;Mytabke2&lt;BR /&gt;where age &amp;gt; 15 );&lt;BR /&gt;disconnect from tera1;&lt;BR /&gt;quit;</description>
      <pubDate>Wed, 29 Jan 2020 14:52:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Trailing-dot-in-sas-teradata-passthrough/m-p/620822#M77193</guid>
      <dc:creator>nid197</dc:creator>
      <dc:date>2020-01-29T14:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: Trailing dot in sas teradata passthrough</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Trailing-dot-in-sas-teradata-passthrough/m-p/620823#M77194</link>
      <description>Just a demo code.with changed names.sorry if i there is typo.but syntax is same</description>
      <pubDate>Wed, 29 Jan 2020 14:53:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Trailing-dot-in-sas-teradata-passthrough/m-p/620823#M77194</guid>
      <dc:creator>nid197</dc:creator>
      <dc:date>2020-01-29T14:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Trailing dot in sas teradata passthrough</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Trailing-dot-in-sas-teradata-passthrough/m-p/620931#M77195</link>
      <description>&lt;P&gt;Since the original values are in decimal format, you will need the double cast.&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;connect to teradata as tera1 (user="xxxxxx" password="xxxxxxx" server="xxxxx"&lt;BR /&gt;tpt=yes fastexport=yes);&lt;BR /&gt;create table mytable as&lt;BR /&gt;select * from connection to tera1&lt;BR /&gt;(select age&lt;BR /&gt;,entityno&lt;BR /&gt;,cast(cast(segid as format 'Z(I)') as varchar(50)) as fbu1&lt;BR /&gt;,cast(cast(profgrp_id as format 'Z(I)') as varchar(30)) as trnsid&lt;BR /&gt;,cast(accno as integer)as accno&lt;BR /&gt;,cast(cast(startdt as format 'Z(I)') as varchar(10)) as startdt&lt;BR /&gt;,cast(cast(enddt&amp;nbsp; as format 'Z(I)') as varchar(10)) as enddt&lt;BR /&gt;from mytable1 a&lt;BR /&gt;Mytabke2&lt;BR /&gt;where age &amp;gt; 15 );&lt;BR /&gt;disconnect from tera1;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Let me know if this helps.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 18:12:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Trailing-dot-in-sas-teradata-passthrough/m-p/620931#M77195</guid>
      <dc:creator>nirajs</dc:creator>
      <dc:date>2020-01-29T18:12:22Z</dc:date>
    </item>
  </channel>
</rss>

