<?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: Convert SAS Character Date(06NOV2019) to 20191106 format in SAS DI studio in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Convert-SAS-Character-Date-06NOV2019-to-20191106-format-in-SAS/m-p/602037#M8232</link>
    <description>&lt;P&gt;Double quotes also not working&lt;/P&gt;</description>
    <pubDate>Wed, 06 Nov 2019 15:52:32 GMT</pubDate>
    <dc:creator>kk21</dc:creator>
    <dc:date>2019-11-06T15:52:32Z</dc:date>
    <item>
      <title>Convert SAS Character Date(06NOV2019) to 20191106 format in SAS DI studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Convert-SAS-Character-Date-06NOV2019-to-20191106-format-in-SAS/m-p/601879#M8230</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I have a date stored in a macro variable (RUN_DATE) which is resolving to 06NOV2019.&lt;/P&gt;&lt;P&gt;I want to store this value in a oracle table with number format like 20191106.&lt;/P&gt;&lt;P&gt;In SAS DI studio I&amp;nbsp; tried using input(&amp;amp;RUN_DATE,DATE9.) in the expression column&amp;nbsp; and in format I selected yymmdd10.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But its giving error&amp;nbsp; ERROR 22-322: Syntax error, expecting one of the following: !, !!, &amp;amp;, *, **, +, ',', -, /, , =, , =, &amp;gt;, &amp;gt;=, ?, AND, BETWEEN, CONTAINS, EQ, EQT, GE, GET, GT, GTT, IN, IS, LE, LET, LIKE, LT, LTT, NE, NET, NOT, NOTIN, OR, ^, ^=, |, ||, ~, ~=. &amp;nbsp;Line 3,986: ERROR 76-322: Syntax error, statement will be ignored.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 06:57:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Convert-SAS-Character-Date-06NOV2019-to-20191106-format-in-SAS/m-p/601879#M8230</guid>
      <dc:creator>kk21</dc:creator>
      <dc:date>2019-11-06T06:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: Convert SAS Character Date(06NOV2019) to 20191106 format in SAS DI studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Convert-SAS-Character-Date-06NOV2019-to-20191106-format-in-SAS/m-p/601939#M8231</link>
      <description>I'm not a DI user, so this answer relies on you knowing the correct steps to use.&lt;BR /&gt;&lt;BR /&gt;Try adding double quotes:&lt;BR /&gt;&lt;BR /&gt;input("&amp;amp;RUN_DATE",  date9.)</description>
      <pubDate>Wed, 06 Nov 2019 11:35:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Convert-SAS-Character-Date-06NOV2019-to-20191106-format-in-SAS/m-p/601939#M8231</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-11-06T11:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Convert SAS Character Date(06NOV2019) to 20191106 format in SAS DI studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Convert-SAS-Character-Date-06NOV2019-to-20191106-format-in-SAS/m-p/602037#M8232</link>
      <description>&lt;P&gt;Double quotes also not working&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 15:52:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Convert-SAS-Character-Date-06NOV2019-to-20191106-format-in-SAS/m-p/602037#M8232</guid>
      <dc:creator>kk21</dc:creator>
      <dc:date>2019-11-06T15:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: Convert SAS Character Date(06NOV2019) to 20191106 format in SAS DI studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Convert-SAS-Character-Date-06NOV2019-to-20191106-format-in-SAS/m-p/602038#M8233</link>
      <description>&lt;P&gt;Show us the LOG, so we can see the code you are using and also the error messages.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please copy the log AS TEXT, then here in the SAS Communities, click on the &lt;FONT face="courier new,courier"&gt;{i}&lt;/FONT&gt; icon and paste the log AS TEXT into the window that appears.&amp;nbsp;&lt;STRONG&gt;Do not skip this step.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 15:56:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Convert-SAS-Character-Date-06NOV2019-to-20191106-format-in-SAS/m-p/602038#M8233</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-11-06T15:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Convert SAS Character Date(06NOV2019) to 20191106 format in SAS DI studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Convert-SAS-Character-Date-06NOV2019-to-20191106-format-in-SAS/m-p/602098#M8235</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/298444"&gt;@kk21&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi ,&lt;/P&gt;
&lt;P&gt;I have a date stored in a macro variable (RUN_DATE) which is resolving to 06NOV2019.&lt;/P&gt;
&lt;P&gt;I want to store this value in a oracle table with number format like 20191106.&lt;/P&gt;
&lt;P&gt;In SAS DI studio I&amp;nbsp; tried using input(&amp;amp;RUN_DATE,DATE9.) in the expression column&amp;nbsp; and in format I selected yymmdd10.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But its giving error&amp;nbsp; ERROR 22-322: Syntax error, expecting one of the following: !, !!, &amp;amp;, *, **, +, ',', -, /, , =, , =, &amp;gt;, &amp;gt;=, ?, AND, BETWEEN, CONTAINS, EQ, EQT, GE, GET, GT, GTT, IN, IS, LE, LET, LIKE, LT, LTT, NE, NET, NOT, NOTIN, OR, ^, ^=, |, ||, ~, ~=. &amp;nbsp;Line 3,986: ERROR 76-322: Syntax error, statement will be ignored.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please help.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;An error message without code is like calling a mechanic over the phone and asking why is my car not running.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 18:48:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Convert-SAS-Character-Date-06NOV2019-to-20191106-format-in-SAS/m-p/602098#M8235</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-11-06T18:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Convert SAS Character Date(06NOV2019) to 20191106 format in SAS DI studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Convert-SAS-Character-Date-06NOV2019-to-20191106-format-in-SAS/m-p/602327#M8237</link>
      <description>Boss code is that much only INPUT("&amp;amp;RUN_DATE.",DATE9.) as RUN_DATE format yymmdd10.</description>
      <pubDate>Thu, 07 Nov 2019 06:26:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Convert-SAS-Character-Date-06NOV2019-to-20191106-format-in-SAS/m-p/602327#M8237</guid>
      <dc:creator>kk21</dc:creator>
      <dc:date>2019-11-07T06:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Convert SAS Character Date(06NOV2019) to 20191106 format in SAS DI studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Convert-SAS-Character-Date-06NOV2019-to-20191106-format-in-SAS/m-p/602329#M8238</link>
      <description>&lt;P&gt;Now I used two transformations ,first is Extract in that did the same thing&amp;nbsp;(INPUT("&amp;amp;RUN_DATE.",DATE9.)) as RUN_DATE but format I used&amp;nbsp; now&amp;nbsp; is yymmdd&lt;STRONG&gt;n&lt;/STRONG&gt;10(before it was yymmdd10.)&lt;/P&gt;&lt;P&gt;Next I used table loader transformation in that I used&amp;nbsp;(input(put(RUN_DATE,yymmddn8.),best12.)) as RUN_DATE.&lt;/P&gt;&lt;P&gt;And it worked fine for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks all for your valuable suggestions.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 06:31:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Convert-SAS-Character-Date-06NOV2019-to-20191106-format-in-SAS/m-p/602329#M8238</guid>
      <dc:creator>kk21</dc:creator>
      <dc:date>2019-11-07T06:31:37Z</dc:date>
    </item>
  </channel>
</rss>

