<?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: How to format SQL fields to SAS SI 3.4 fields in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-format-SQL-fields-to-SAS-SI-3-4-fields/m-p/89134#M893</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;When importing/creating the .csv files you can change to what ever (format/length/type/in format/name) you want.Check the Screen shot below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shiva&lt;IMG alt="import.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/2174_import.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jun 2012 10:10:53 GMT</pubDate>
    <dc:creator>shivas</dc:creator>
    <dc:date>2012-06-21T10:10:53Z</dc:date>
    <item>
      <title>How to format SQL fields to SAS SI 3.4 fields</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-format-SQL-fields-to-SAS-SI-3-4-fields/m-p/89132#M891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am getting the data from .CSV files.&lt;/P&gt;&lt;P&gt;Getting all the data in character format.&lt;/P&gt;&lt;P&gt;Can you please help to format the below datatypes to SAS data types.&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="351"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="33"&gt;Field&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none;" width="86"&gt;Varchar(20)&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none;" width="232"&gt;DD/MM/YYYY&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: medium none;" width="33"&gt;Field&lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;" width="86"&gt;DateTime&lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;" width="232"&gt;Call Start Time&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: medium none;" width="33"&gt;Field&lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;" width="86"&gt;DateTime&lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;" width="232"&gt;Call End Time&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: medium none;" width="33"&gt;Field&lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;" width="86"&gt;Text&lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;" width="232"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: medium none;" width="33"&gt;Field&lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;" width="86"&gt;int&lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;" width="232"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: medium none;" width="33"&gt;Field&lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;" width="86"&gt;numeric(9,2)&lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;" width="232"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: medium none;" width="33"&gt;Field&lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;" width="86"&gt;numeric(9,2)&lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;" width="232"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: medium none;" width="33"&gt;Field&lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;" width="86"&gt;numeric(9,0)&lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;" width="232"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: medium none;" width="33"&gt;Field&lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;" width="86"&gt;Numeric(15,0)&lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;" width="232"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: medium none;" width="33"&gt;Field&lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;" width="86"&gt;Numeric(15,0)&lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;" width="232"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: medium none;" width="33"&gt;Field&lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;" width="86"&gt;Decimal (17,2)&lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;" width="232"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: medium none;" width="33"&gt;Field&lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;" width="86"&gt;Decilmal(10,2)&lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;" width="232"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: medium none;" width="33"&gt;Field&lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;" width="86"&gt;Decimal(10,2)&lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;" width="232"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: medium none;" width="33"&gt;Field&lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;" width="86"&gt;BigInt&lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;" width="232"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will be great help. Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2012 09:28:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-format-SQL-fields-to-SAS-SI-3-4-fields/m-p/89132#M891</guid>
      <dc:creator>SYN</dc:creator>
      <dc:date>2012-06-21T09:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to format SQL fields to SAS SI 3.4 fields</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-format-SQL-fields-to-SAS-SI-3-4-fields/m-p/89133#M892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;How to format SQL fields to SAS DI 3.4 fields&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2012 09:33:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-format-SQL-fields-to-SAS-SI-3-4-fields/m-p/89133#M892</guid>
      <dc:creator>SYN</dc:creator>
      <dc:date>2012-06-21T09:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to format SQL fields to SAS SI 3.4 fields</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-format-SQL-fields-to-SAS-SI-3-4-fields/m-p/89134#M893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;When importing/creating the .csv files you can change to what ever (format/length/type/in format/name) you want.Check the Screen shot below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shiva&lt;IMG alt="import.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/2174_import.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2012 10:10:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-format-SQL-fields-to-SAS-SI-3-4-fields/m-p/89134#M893</guid>
      <dc:creator>shivas</dc:creator>
      <dc:date>2012-06-21T10:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to format SQL fields to SAS SI 3.4 fields</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-format-SQL-fields-to-SAS-SI-3-4-fields/m-p/89135#M894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shiva thank you. What you said is correct.&lt;/P&gt;&lt;P&gt;But I need what is the equalent SAS format for the above fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2012 10:30:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-format-SQL-fields-to-SAS-SI-3-4-fields/m-p/89135#M894</guid>
      <dc:creator>SYN</dc:creator>
      <dc:date>2012-06-21T10:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to format SQL fields to SAS SI 3.4 fields</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-format-SQL-fields-to-SAS-SI-3-4-fields/m-p/89136#M895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When reading data from textile into a SAS table you need to use the correct INFORMAT so that SAS converts the strings as required. Especially for date and date time values you also need to apply appropriate formats so that the values are "human readable" when looking at them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is very basic stuff and you must understand how this works. It's documented in the Base SAS Language and the Concepts manual. You need to read it.&lt;/P&gt;&lt;P&gt;You also need to understand how SAS stores date and date time values and what variable types SAS uses. It's all in the concepts manual (online available).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below links should help as well:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://support.sas.com/documentation/cdl/en/acreldb/63647/HTML/default/viewer.htm#a001405621.htm"&gt;http://support.sas.com/documentation/cdl/en/acreldb/63647/HTML/default/viewer.htm#a001405621.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://support.sas.com/documentation/cdl/en/lrcon/62955/HTML/default/viewer.htm#a003209899.htm"&gt;http://support.sas.com/documentation/cdl/en/lrcon/62955/HTML/default/viewer.htm#a003209899.htm&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2012 12:09:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-format-SQL-fields-to-SAS-SI-3-4-fields/m-p/89136#M895</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2012-06-21T12:09:31Z</dc:date>
    </item>
  </channel>
</rss>

