<?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 to write code to identify error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-write-code-to-identify-error/m-p/465349#M118694</link>
    <description>&lt;P&gt;I understand that the date is given in a char type variable, in a format of ddmmyy10.;&lt;/P&gt;
&lt;P&gt;While converting the date into num type you ususlly use the ddmmyy10. informat, or any other informat.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can code:&amp;nbsp;&lt;STRONG&gt;num_date = input(char_date, &amp;lt;informat&amp;gt;, ??);&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;in case of date error you will get missing value.&lt;/P&gt;
&lt;P&gt;check the num_date is it missing or not.&lt;/P&gt;</description>
    <pubDate>Sun, 27 May 2018 18:30:15 GMT</pubDate>
    <dc:creator>Shmuel</dc:creator>
    <dc:date>2018-05-27T18:30:15Z</dc:date>
    <item>
      <title>How to write code to identify error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-write-code-to-identify-error/m-p/465346#M118693</link>
      <description>Data consists of subject Id by visit and date so how to identify wrong date by program. As after visit 1 is date of enrollment. And I have given only 1 subject details if there are more then how to identify discrepancy error.&lt;BR /&gt;&lt;BR /&gt;Subjid sex age visit date&lt;BR /&gt;101 M. 25. 1. 30-05-2016&lt;BR /&gt;101. M. 25. 2. 29-06- 2016&lt;BR /&gt;101. M. 25. 3. 25-07-2016&lt;BR /&gt;101. M. 25. 4. 26-02-2016&lt;BR /&gt;101. M. 25. 5. 25-08-2016&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 27 May 2018 17:40:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-write-code-to-identify-error/m-p/465346#M118693</guid>
      <dc:creator>Bhavanaa44</dc:creator>
      <dc:date>2018-05-27T17:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to write code to identify error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-write-code-to-identify-error/m-p/465349#M118694</link>
      <description>&lt;P&gt;I understand that the date is given in a char type variable, in a format of ddmmyy10.;&lt;/P&gt;
&lt;P&gt;While converting the date into num type you ususlly use the ddmmyy10. informat, or any other informat.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can code:&amp;nbsp;&lt;STRONG&gt;num_date = input(char_date, &amp;lt;informat&amp;gt;, ??);&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;in case of date error you will get missing value.&lt;/P&gt;
&lt;P&gt;check the num_date is it missing or not.&lt;/P&gt;</description>
      <pubDate>Sun, 27 May 2018 18:30:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-write-code-to-identify-error/m-p/465349#M118694</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2018-05-27T18:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to write code to identify error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-write-code-to-identify-error/m-p/465350#M118695</link>
      <description>Hi:&lt;BR /&gt;  Some questions:&lt;BR /&gt;1) Why is there a period (.) after every value except the first row? There's no period after 101 in the first row. Is this intentional? A typo? Does it mean something?&lt;BR /&gt;2) How do you identify a discrepancy? Of the above 5 rows, where is the discrepancy and what it your logic?&lt;BR /&gt;3) You said "As after visit 1 is date of enrollment" -- that doesn't make sense to me -- there are 4 rows after visit 1 does that mean there are 4 dates of enrollment? I would have expected visit 1 to be the date of enrollment AND the date of the first visit and that for every other visit, the date just represents the visit date? I don't understand how you can define that "after visit 1 is date of enrollment".&lt;BR /&gt;&lt;BR /&gt;What code have you tried? What is your desired output?&lt;BR /&gt;&lt;BR /&gt;Cynthia</description>
      <pubDate>Sun, 27 May 2018 18:31:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-write-code-to-identify-error/m-p/465350#M118695</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-05-27T18:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to write code to identify error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-write-code-to-identify-error/m-p/465431#M118715</link>
      <description>&lt;P&gt;Converting the dataset to a data step and posting the resulting code here in the proper way (see my footnotes for both of these steps) will remove any ambiguity about your data and let us use it for testing. Additionally, post an example for how your datset should look like after processing.&lt;/P&gt;</description>
      <pubDate>Mon, 28 May 2018 09:07:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-write-code-to-identify-error/m-p/465431#M118715</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-05-28T09:07:22Z</dc:date>
    </item>
  </channel>
</rss>

