<?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 create new date in proc sql in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/create-new-date-in-proc-sql/m-p/822746#M41036</link>
    <description>&lt;P&gt;How would I create a new date - i've tried a put statement, input to format it but nothing works:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table example
as select
id,
(edate, yymmdd10.) as edate2
from table
quit;

ERROR 22-322: Syntax error, expecting one of the following: (, ).  

ERROR 76-322: Syntax error, statement will be ignored.

30       ! (edate, yymmdd10.) as edate2
                                _
                                22
ERROR 22-322: Syntax error, expecting one of the following: a name, *.  &lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 12 Jul 2022 05:01:21 GMT</pubDate>
    <dc:creator>bhca60</dc:creator>
    <dc:date>2022-07-12T05:01:21Z</dc:date>
    <item>
      <title>create new date in proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/create-new-date-in-proc-sql/m-p/822746#M41036</link>
      <description>&lt;P&gt;How would I create a new date - i've tried a put statement, input to format it but nothing works:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table example
as select
id,
(edate, yymmdd10.) as edate2
from table
quit;

ERROR 22-322: Syntax error, expecting one of the following: (, ).  

ERROR 76-322: Syntax error, statement will be ignored.

30       ! (edate, yymmdd10.) as edate2
                                _
                                22
ERROR 22-322: Syntax error, expecting one of the following: a name, *.  &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Jul 2022 05:01:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/create-new-date-in-proc-sql/m-p/822746#M41036</guid>
      <dc:creator>bhca60</dc:creator>
      <dc:date>2022-07-12T05:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: create new date in proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/create-new-date-in-proc-sql/m-p/822747#M41037</link>
      <description>&lt;P&gt;Do you know how sas handles dates?&lt;/P&gt;
&lt;P&gt;Please post some information about the variable edate: type, length?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 05:40:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/create-new-date-in-proc-sql/m-p/822747#M41037</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-07-12T05:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: create new date in proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/create-new-date-in-proc-sql/m-p/822748#M41038</link>
      <description>CHAR $10.</description>
      <pubDate>Tue, 12 Jul 2022 05:44:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/create-new-date-in-proc-sql/m-p/822748#M41038</guid>
      <dc:creator>bhca60</dc:creator>
      <dc:date>2022-07-12T05:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: create new date in proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/create-new-date-in-proc-sql/m-p/822749#M41039</link>
      <description>&lt;P&gt;If edate is a character variable containing date strings, do the conversion to a SAS date like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;input(edate, yymmdd10.) format=yymmdd10. as edate2&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Jul 2022 05:51:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/create-new-date-in-proc-sql/m-p/822749#M41039</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-07-12T05:51:51Z</dc:date>
    </item>
  </channel>
</rss>

