<?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: SQL-Date in SAS in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/SQL-Date-in-SAS/m-p/46602#M12430</link>
    <description>Here is a place to start - PROC SQL documentation.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
Recommended Google advanced search argument for this topic/post:&lt;BR /&gt;
&lt;BR /&gt;
proc sql assign missing value site:sas.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
SAS SQL Procedure User's Guide&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/sqlproc/62086/HTML/default/a001340013.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/sqlproc/62086/HTML/default/a001340013.htm&lt;/A&gt;</description>
    <pubDate>Mon, 25 Jan 2010 19:11:33 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2010-01-25T19:11:33Z</dc:date>
    <item>
      <title>SQL-Date in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SQL-Date-in-SAS/m-p/46596#M12424</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I am creating a table and populate a datetime field with null value,how can i do this.&lt;BR /&gt;
i tried using put,but gives me lots of error.&lt;BR /&gt;
&lt;BR /&gt;
any suggestions....&lt;BR /&gt;
&lt;BR /&gt;
Ren</description>
      <pubDate>Mon, 25 Jan 2010 17:38:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SQL-Date-in-SAS/m-p/46596#M12424</guid>
      <dc:creator>ren2010</dc:creator>
      <dc:date>2010-01-25T17:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: SQL-Date in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SQL-Date-in-SAS/m-p/46597#M12425</link>
      <description>Share what SAS code you have tried (unsuccessfully) for a proper response from others on this forum.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Mon, 25 Jan 2010 17:53:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SQL-Date-in-SAS/m-p/46597#M12425</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-01-25T17:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: SQL-Date in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SQL-Date-in-SAS/m-p/46598#M12426</link>
      <description>proc sql;&lt;BR /&gt;
create table test1 as&lt;BR /&gt;
select id ,put(.,datetime19.) into dttime;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
The value in dttime in normal case ,for eg:01DEC2005:00:00:00&lt;BR /&gt;
but i want  null value in there instead of 01DEC2005:00:00:00</description>
      <pubDate>Mon, 25 Jan 2010 17:59:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SQL-Date-in-SAS/m-p/46598#M12426</guid>
      <dc:creator>ren2010</dc:creator>
      <dc:date>2010-01-25T17:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: SQL-Date in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SQL-Date-in-SAS/m-p/46599#M12427</link>
      <description>No NULLS ins SAS!&lt;BR /&gt;
&lt;BR /&gt;
Although some defend that NULLS and MISSING are conceptually the same, they do represent two different things.&lt;BR /&gt;
&lt;BR /&gt;
From my understanding:&lt;BR /&gt;
&lt;BR /&gt;
NULL value should mean, NO VALUE FOR&lt;BR /&gt;
MISSING value should mean, NO KNOWN VALUE FOR&lt;BR /&gt;
&lt;BR /&gt;
First assumes that some particular information has no value for some attribute, the second assumes that there is no information. Clearly two different things for data analysis and statistics.&lt;BR /&gt;
&lt;BR /&gt;
Another difference is that a MISSING value represents actually a numeric value, it evaluates to - infinite. NULLS are just NULLS and can only be compared as a match to another NULL value or not.&lt;BR /&gt;
&lt;BR /&gt;
Anyway, SAS will translate MISSINGS to NULLS when loading data to a RDBMS.&lt;BR /&gt;
&lt;BR /&gt;
Being a datetime a numeric value, just use the missing notation (represented by . ) like this:&lt;BR /&gt;
[pre]&lt;BR /&gt;
select . as DT format=datetime30.6 ...&lt;BR /&gt;
[/pre]&lt;BR /&gt;
Cheers from Portugal.&lt;BR /&gt;
&lt;BR /&gt;
Daniel Santos @ &lt;A href="http://www.cgd.pt" target="_blank"&gt;www.cgd.pt&lt;/A&gt;</description>
      <pubDate>Mon, 25 Jan 2010 18:00:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SQL-Date-in-SAS/m-p/46599#M12427</guid>
      <dc:creator>DanielSantos</dc:creator>
      <dc:date>2010-01-25T18:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: SQL-Date in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SQL-Date-in-SAS/m-p/46600#M12428</link>
      <description>I have a create a new sas dataset with null value for datetime field&lt;BR /&gt;
so when using Sql,can i use put(.)?&lt;BR /&gt;
&lt;BR /&gt;
Please help</description>
      <pubDate>Mon, 25 Jan 2010 18:04:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SQL-Date-in-SAS/m-p/46600#M12428</guid>
      <dc:creator>ren2010</dc:creator>
      <dc:date>2010-01-25T18:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: SQL-Date in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SQL-Date-in-SAS/m-p/46601#M12429</link>
      <description>I got the following error;&lt;BR /&gt;
&lt;BR /&gt;
proc sql;&lt;BR /&gt;
2518  create table test1 as&lt;BR /&gt;
2519  select id ,. as te format=datetime19.;&lt;BR /&gt;
                                           -&lt;BR /&gt;
                                           22&lt;BR /&gt;
                                           76&lt;BR /&gt;
ERROR 22-322: Syntax error, expecting one of the following: a quoted string, ',', AS, FORMAT, FROM, INFORMAT, INTO, LABEL, LEN, LENGTH,&lt;BR /&gt;
              TRANSCODE.&lt;BR /&gt;
&lt;BR /&gt;
ERROR 76-322: Syntax error, statement will be ignored.</description>
      <pubDate>Mon, 25 Jan 2010 18:10:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SQL-Date-in-SAS/m-p/46601#M12429</guid>
      <dc:creator>ren2010</dc:creator>
      <dc:date>2010-01-25T18:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: SQL-Date in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SQL-Date-in-SAS/m-p/46602#M12430</link>
      <description>Here is a place to start - PROC SQL documentation.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
Recommended Google advanced search argument for this topic/post:&lt;BR /&gt;
&lt;BR /&gt;
proc sql assign missing value site:sas.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
SAS SQL Procedure User's Guide&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/sqlproc/62086/HTML/default/a001340013.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/sqlproc/62086/HTML/default/a001340013.htm&lt;/A&gt;</description>
      <pubDate>Mon, 25 Jan 2010 19:11:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SQL-Date-in-SAS/m-p/46602#M12430</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-01-25T19:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: SQL-Date in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SQL-Date-in-SAS/m-p/46603#M12431</link>
      <description>I execute that code and get no errors.  Check spellings arouond that point in your code.</description>
      <pubDate>Mon, 25 Jan 2010 19:34:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SQL-Date-in-SAS/m-p/46603#M12431</guid>
      <dc:creator>Flip</dc:creator>
      <dc:date>2010-01-25T19:34:55Z</dc:date>
    </item>
  </channel>
</rss>

