<?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 converting in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Date-converting/m-p/713637#M27188</link>
    <description>Thanks. When adding it to my select statement in my program, do I replace where you put the actual date entered in the field with the field name ‘dateto’?</description>
    <pubDate>Sat, 23 Jan 2021 22:05:30 GMT</pubDate>
    <dc:creator>Lightyears</dc:creator>
    <dc:date>2021-01-23T22:05:30Z</dc:date>
    <item>
      <title>Date converting</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Date-converting/m-p/713629#M27185</link>
      <description>Hi new to SAS. I have a date in a table that comes back in the format of character&lt;BR /&gt;&lt;BR /&gt;Dateto&lt;BR /&gt;20200214&lt;BR /&gt;&lt;BR /&gt;How in my project can I get it to display as a date in UK format.&lt;BR /&gt;&lt;BR /&gt;Dateto&lt;BR /&gt;14/02/2020&lt;BR /&gt;&lt;BR /&gt;Any help grateful. Thank you.</description>
      <pubDate>Sat, 23 Jan 2021 21:33:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Date-converting/m-p/713629#M27185</guid>
      <dc:creator>Lightyears</dc:creator>
      <dc:date>2021-01-23T21:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Date converting</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Date-converting/m-p/713632#M27187</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
     chardate='20200214';
     numdate=input(chardate,yymmdd8.);
     format numdate yymmdds10.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 23 Jan 2021 21:44:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Date-converting/m-p/713632#M27187</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-01-23T21:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Date converting</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Date-converting/m-p/713637#M27188</link>
      <description>Thanks. When adding it to my select statement in my program, do I replace where you put the actual date entered in the field with the field name ‘dateto’?</description>
      <pubDate>Sat, 23 Jan 2021 22:05:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Date-converting/m-p/713637#M27188</guid>
      <dc:creator>Lightyears</dc:creator>
      <dc:date>2021-01-23T22:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: Date converting</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Date-converting/m-p/713639#M27190</link>
      <description>&lt;P&gt;To answer your question we need to see your actual code.&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2021 22:14:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Date-converting/m-p/713639#M27190</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-01-23T22:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Date converting</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Date-converting/m-p/713646#M27191</link>
      <description>&lt;P&gt;as SELECT DISTINCT&lt;/P&gt;&lt;P&gt;t2.ac,&lt;/P&gt;&lt;P&gt;t1.ext_ui&lt;/P&gt;&lt;P&gt;t1.vkonto,&lt;/P&gt;&lt;P&gt;t1.vkbez as sap_name,&lt;/P&gt;&lt;P&gt;t1.einzdat as dateto,&lt;/P&gt;&lt;P&gt;t1.auszdat as datefrom&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FROM analytics_temp_user.List t2 inner join analytics_pm6.ALLSAPDATA t1&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2021 22:53:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Date-converting/m-p/713646#M27191</guid>
      <dc:creator>Lightyears</dc:creator>
      <dc:date>2021-01-23T22:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Date converting</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Date-converting/m-p/713648#M27192</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;input(t1.einzdat,yyddmm8.) as dateto format=yymmdds10.,&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 23 Jan 2021 23:12:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Date-converting/m-p/713648#M27192</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-01-23T23:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Date converting</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Date-converting/m-p/713649#M27193</link>
      <description>&lt;P&gt;You can replace the reference to the existing variable with the function call. Attach the format to control how the resulting date values are displayed.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;SELECT DISTINCT
 t2.ac
,t1.ext_ui
,t1.vkonto
,t1.vkbez as sap_name
,input(t1.einzdat,yymmdd8.) as dateto format=ddmmyy10.
,input(t1.auszdat,yymmdd8.) as datefrom format=ddmmyy10.
FROM analytics_temp_user.List t2
  inner join analytics_pm6.ALLSAPDATA t1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 23 Jan 2021 23:12:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Date-converting/m-p/713649#M27193</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-01-23T23:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Date converting</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Date-converting/m-p/713675#M27194</link>
      <description>Thanks all. I put it in as below but get this error.&lt;BR /&gt;&lt;BR /&gt;ERROR: Execute error: org.apache.hive.service.cli.HiveSQLException: Error while compiling statement: FAILED: ParseException line&lt;BR /&gt;1:522 cannot recognize input near 'yymmdd8' '.' ')' in select expression&lt;BR /&gt;&lt;BR /&gt;as SELECT DISTINCT&lt;BR /&gt;t2.ac,&lt;BR /&gt;t1.ext_ui,&lt;BR /&gt;t1.vkonto,&lt;BR /&gt;t1.vkbez as sap_name,&lt;BR /&gt;input(t1.einzdat,yymmdd8.) as dateto format=ddmmyy10.,&lt;BR /&gt;input(t1.auszdat,yymmdd8.) as datefrom format=ddmmyy10.&lt;BR /&gt;&lt;BR /&gt;FROM analytics_temp_user.List t2&lt;BR /&gt;inner join analytics_pm6.ALLSAPDATA t1&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 24 Jan 2021 11:38:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Date-converting/m-p/713675#M27194</guid>
      <dc:creator>Lightyears</dc:creator>
      <dc:date>2021-01-24T11:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Date converting</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Date-converting/m-p/713679#M27195</link>
      <description>&lt;P&gt;Please do not show us the errors separated from the code. Please do show us the entire LOG for your PROC SQL step, with nothing chopped out, in the order that it appears in the LOG.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please also help us out by formatting the log properly by copying it as text and pasting it into the window that appears when you click on the &amp;lt;/&amp;gt; icon. PLEASE DO NOT SKIP THIS STEP. I no longer try to read logs that are not formatted properly.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jan 2021 14:41:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Date-converting/m-p/713679#M27195</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-01-24T14:41:55Z</dc:date>
    </item>
  </channel>
</rss>

