<?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: date format in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/date-format/m-p/628921#M77604</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;SAS date literals must be in the appearance of something displayed using the SAS DATE. format.&lt;/P&gt;
&lt;P&gt;Examples:&lt;/P&gt;
&lt;P&gt;Date7.:&amp;nbsp; 'ddMONyy'd&lt;/P&gt;
&lt;P&gt;Date9.:&amp;nbsp; 'ddMONyyyy'd&lt;/P&gt;
&lt;P&gt;Date11.: 'dd-MON-yyyy'd&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Or more accurately something that the DATE &lt;STRONG&gt;**informat**&lt;/STRONG&gt; can read.&lt;/P&gt;</description>
    <pubDate>Mon, 02 Mar 2020 20:39:55 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2020-03-02T20:39:55Z</dc:date>
    <item>
      <title>date format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/date-format/m-p/628422#M77540</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table cust_orders(ord_no num(8),purch_amt num(10,2),ord_date num format=yymmdd10.,customer_id num(6),salesman_id num(6));

insert into cust_orders values (70001   ,   150.5     ,  '2012oct05'd , 3005  , 5002);
insert into cust_orders values (70009   ,   270.65    ,  '2012sep10'd , 3001  , 5005);
insert into cust_orders values (70002   ,   65.26     ,  '2012oct05'd , 3002  , 5001);
insert into cust_orders values (70004   ,   110.5     ,  '2012aug17'd , 3009  , 5003);

quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 29 Feb 2020 13:39:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/date-format/m-p/628422#M77540</guid>
      <dc:creator>BrahmanandaRao</dc:creator>
      <dc:date>2020-02-29T13:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: date format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/date-format/m-p/628423#M77541</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/265860"&gt;@BrahmanandaRao&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The date should be entered like this: 'DDmonYYYY'd&lt;/P&gt;
&lt;P&gt;e.g.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;&lt;SPAN class="token datetime number"&gt;'05oct2012'd&lt;/SPAN&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also simplify you code as follows (by using 1 INSERT INTO statement)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
	create table cust_orders(ord_no num,purch_amt num, ord_date num format=yymmdd10.,customer_id num,salesman_id num);

	insert into cust_orders
		values (70001   ,   150.5     ,  '05oct2012'd , 3005  , 5002)
		values (70009   ,   270.65    ,  '10sep2012'd , 3001  , 5005)
		values (70002   ,   65.26     ,  '05oct2012'd , 3002  , 5001)
		values (70004   ,   110.5     ,  '17aug2012'd , 3009  , 5003);

quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;NB: PROC SQL enables you to specify a column width for character columns but not for numeric columns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Feb 2020 14:01:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/date-format/m-p/628423#M77541</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-02-29T14:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: date format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/date-format/m-p/628850#M77600</link>
      <description>&lt;P&gt;SAS date literals must be in the appearance of something displayed using the SAS DATE. format.&lt;/P&gt;
&lt;P&gt;Examples:&lt;/P&gt;
&lt;P&gt;Date7.:&amp;nbsp; 'ddMONyy'd&lt;/P&gt;
&lt;P&gt;Date9.:&amp;nbsp; 'ddMONyyyy'd&lt;/P&gt;
&lt;P&gt;Date11.: 'dd-MON-yyyy'd&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 17:35:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/date-format/m-p/628850#M77600</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-03-02T17:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: date format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/date-format/m-p/628921#M77604</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;SAS date literals must be in the appearance of something displayed using the SAS DATE. format.&lt;/P&gt;
&lt;P&gt;Examples:&lt;/P&gt;
&lt;P&gt;Date7.:&amp;nbsp; 'ddMONyy'd&lt;/P&gt;
&lt;P&gt;Date9.:&amp;nbsp; 'ddMONyyyy'd&lt;/P&gt;
&lt;P&gt;Date11.: 'dd-MON-yyyy'd&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Or more accurately something that the DATE &lt;STRONG&gt;**informat**&lt;/STRONG&gt; can read.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 20:39:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/date-format/m-p/628921#M77604</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-03-02T20:39:55Z</dc:date>
    </item>
  </channel>
</rss>

