<?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: how can we assign vales 15 for un and 07 for unk plss give a solution anyone in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-can-we-assign-vales-15-for-un-and-07-for-unk-plss-give-a/m-p/824847#M325788</link>
    <description>&lt;P&gt;Please rephrase your question without using abbreviations.&lt;/P&gt;</description>
    <pubDate>Fri, 22 Jul 2022 09:35:48 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2022-07-22T09:35:48Z</dc:date>
    <item>
      <title>how can we assign vales 15 for un and 07 for unk plss give a solution anyone</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-can-we-assign-vales-15-for-un-and-07-for-unk-plss-give-a/m-p/824534#M325781</link>
      <description>&lt;P&gt;data datechar;&lt;/P&gt;&lt;P&gt;input subid char $9.;&lt;BR /&gt;cards;&lt;BR /&gt;1 04jan2015&lt;BR /&gt;2 06feb2019&lt;BR /&gt;3 08nov2022&lt;BR /&gt;4 undec2016&lt;BR /&gt;5 ununk2017&lt;BR /&gt;6 15jul2013&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 02:00:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-can-we-assign-vales-15-for-un-and-07-for-unk-plss-give-a/m-p/824534#M325781</guid>
      <dc:creator>yogeswar_123</dc:creator>
      <dc:date>2022-07-21T02:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: how can we assign vales 15 for un and 07 for unk plss give a solution anyone</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-can-we-assign-vales-15-for-un-and-07-for-unk-plss-give-a/m-p/824847#M325788</link>
      <description>&lt;P&gt;Please rephrase your question without using abbreviations.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 09:35:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-can-we-assign-vales-15-for-un-and-07-for-unk-plss-give-a/m-p/824847#M325788</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-07-22T09:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: how can we assign vales 15 for un and 07 for unk plss give a solution anyone</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-can-we-assign-vales-15-for-un-and-07-for-unk-plss-give-a/m-p/824860#M325792</link>
      <description>&lt;P&gt;I assume you want to correct the input CHAR to a valid date, using averages. Something like this, maybe?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data datechar;
  input subid char $9.;
  if substr(char,1,2)='un' then
    substr(char,1,2)='15';
  if substr(char,3,3)='unk' then 
    substr(char,3,3)='JUL';
  date=input(char,date9.);
  format date date9.;
  drop char;
drop char;
cards;
1 04jan2015
2 06feb2019
3 08nov2022
4 undec2016
5 ununk2017
6 15jul2013
;run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;(apart from adding the calculation of the substrings, I also added a semicolon before the "run;")&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 11:15:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-can-we-assign-vales-15-for-un-and-07-for-unk-plss-give-a/m-p/824860#M325792</guid>
      <dc:creator>s_lassen</dc:creator>
      <dc:date>2022-07-22T11:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: how can we assign vales 15 for un and 07 for unk plss give a solution anyone</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-can-we-assign-vales-15-for-un-and-07-for-unk-plss-give-a/m-p/824878#M325802</link>
      <description>&lt;P&gt;And then somebody will start to investigate why the majority of accidents happen in July.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 13:03:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-can-we-assign-vales-15-for-un-and-07-for-unk-plss-give-a/m-p/824878#M325802</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-07-22T13:03:01Z</dc:date>
    </item>
  </channel>
</rss>

