<?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 how  to flag wrong entries in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-flag-wrong-entries/m-p/888427#M351009</link>
    <description>data employee_work_duration;&lt;BR /&gt;INFILE CARDS MISSOVER ;&lt;BR /&gt;input empid department $ work_start:date9. work_end:date9. ;&lt;BR /&gt;format work_start work_end date9. ;&lt;BR /&gt;cards;&lt;BR /&gt;101 A 01JAN2023 03JAN2023&lt;BR /&gt;101 A 03JAN2023&lt;BR /&gt;101 A 03JAN2023&lt;BR /&gt;101 A 04JAN2023 06JAN2023&lt;BR /&gt;101 A 05JAN2023&lt;BR /&gt;101 A 06JAN2023&lt;BR /&gt;101 A 07JAN2023 14JAN2023&lt;BR /&gt;101 A 10JAN2023&lt;BR /&gt;101 B 01FEB2023 03FEB2023&lt;BR /&gt;101 B 03FEB2023&lt;BR /&gt;101 B 03FEB2023&lt;BR /&gt;101 B 04FEB2023 06FEB2023&lt;BR /&gt;101 B 05FEB2023&lt;BR /&gt;101 B 06FEB2023&lt;BR /&gt;101 B 07FEB2023 14FEB2023&lt;BR /&gt;101 B 10FEB2023 18FEB2023&lt;BR /&gt;RUN;&lt;BR /&gt;/*QUERY*/&lt;BR /&gt;Assign flags for wrong entry records&lt;BR /&gt;For example:&lt;BR /&gt;1) Don't start next record without ending previous record with in same department (for example: see record number 2,3)&lt;BR /&gt;2) Don't get repeated date/with in the range date record . For example see record number 15 and 16 . Here 16th record date is '10FEB2023' this date is equal to with in range of 15th record '07FEB2023'/'14FEB2023'&lt;BR /&gt;/**Final Output**/&lt;BR /&gt;empid department work_start work_end WRONG_ENTRY&lt;BR /&gt;101 A 01JAN2023 03JAN2023&lt;BR /&gt;101 A 03JAN2023 Y&lt;BR /&gt;101 A 03JAN2023 Y&lt;BR /&gt;101 A 04JAN2023 06JAN2023&lt;BR /&gt;101 A 05JAN2023 Y&lt;BR /&gt;101 A 06JAN2023 Y&lt;BR /&gt;101 A 07JAN2023 14JAN2023&lt;BR /&gt;101 A 10JAN2023&lt;BR /&gt;101 B 01FEB2023 03FEB2023&lt;BR /&gt;101 B 03FEB2023 Y&lt;BR /&gt;101 B 03FEB2023 Y&lt;BR /&gt;101 B 04FEB2023 06FEB2023&lt;BR /&gt;101 B 05FEB2023 Y&lt;BR /&gt;101 B 06FEB2023 Y&lt;BR /&gt;101 B 07FEB2023 14FEB2023&lt;BR /&gt;101 B 10FEB2023 18FEB2023 Y&lt;BR /&gt;&amp;amp;nbsp;&lt;BR /&gt;&amp;amp;nbsp;&lt;BR /&gt;&amp;amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Please help me out</description>
    <pubDate>Wed, 09 Aug 2023 01:43:45 GMT</pubDate>
    <dc:creator>thanikondharish</dc:creator>
    <dc:date>2023-08-09T01:43:45Z</dc:date>
    <item>
      <title>how  to flag wrong entries</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-flag-wrong-entries/m-p/888427#M351009</link>
      <description>data employee_work_duration;&lt;BR /&gt;INFILE CARDS MISSOVER ;&lt;BR /&gt;input empid department $ work_start:date9. work_end:date9. ;&lt;BR /&gt;format work_start work_end date9. ;&lt;BR /&gt;cards;&lt;BR /&gt;101 A 01JAN2023 03JAN2023&lt;BR /&gt;101 A 03JAN2023&lt;BR /&gt;101 A 03JAN2023&lt;BR /&gt;101 A 04JAN2023 06JAN2023&lt;BR /&gt;101 A 05JAN2023&lt;BR /&gt;101 A 06JAN2023&lt;BR /&gt;101 A 07JAN2023 14JAN2023&lt;BR /&gt;101 A 10JAN2023&lt;BR /&gt;101 B 01FEB2023 03FEB2023&lt;BR /&gt;101 B 03FEB2023&lt;BR /&gt;101 B 03FEB2023&lt;BR /&gt;101 B 04FEB2023 06FEB2023&lt;BR /&gt;101 B 05FEB2023&lt;BR /&gt;101 B 06FEB2023&lt;BR /&gt;101 B 07FEB2023 14FEB2023&lt;BR /&gt;101 B 10FEB2023 18FEB2023&lt;BR /&gt;RUN;&lt;BR /&gt;/*QUERY*/&lt;BR /&gt;Assign flags for wrong entry records&lt;BR /&gt;For example:&lt;BR /&gt;1) Don't start next record without ending previous record with in same department (for example: see record number 2,3)&lt;BR /&gt;2) Don't get repeated date/with in the range date record . For example see record number 15 and 16 . Here 16th record date is '10FEB2023' this date is equal to with in range of 15th record '07FEB2023'/'14FEB2023'&lt;BR /&gt;/**Final Output**/&lt;BR /&gt;empid department work_start work_end WRONG_ENTRY&lt;BR /&gt;101 A 01JAN2023 03JAN2023&lt;BR /&gt;101 A 03JAN2023 Y&lt;BR /&gt;101 A 03JAN2023 Y&lt;BR /&gt;101 A 04JAN2023 06JAN2023&lt;BR /&gt;101 A 05JAN2023 Y&lt;BR /&gt;101 A 06JAN2023 Y&lt;BR /&gt;101 A 07JAN2023 14JAN2023&lt;BR /&gt;101 A 10JAN2023&lt;BR /&gt;101 B 01FEB2023 03FEB2023&lt;BR /&gt;101 B 03FEB2023 Y&lt;BR /&gt;101 B 03FEB2023 Y&lt;BR /&gt;101 B 04FEB2023 06FEB2023&lt;BR /&gt;101 B 05FEB2023 Y&lt;BR /&gt;101 B 06FEB2023 Y&lt;BR /&gt;101 B 07FEB2023 14FEB2023&lt;BR /&gt;101 B 10FEB2023 18FEB2023 Y&lt;BR /&gt;&amp;amp;nbsp;&lt;BR /&gt;&amp;amp;nbsp;&lt;BR /&gt;&amp;amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Please help me out</description>
      <pubDate>Wed, 09 Aug 2023 01:43:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-flag-wrong-entries/m-p/888427#M351009</guid>
      <dc:creator>thanikondharish</dc:creator>
      <dc:date>2023-08-09T01:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: how  to flag wrong entries</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-flag-wrong-entries/m-p/889199#M351295</link>
      <description>What have you tried so far?</description>
      <pubDate>Mon, 14 Aug 2023 15:00:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-flag-wrong-entries/m-p/889199#M351295</guid>
      <dc:creator>tomvincent</dc:creator>
      <dc:date>2023-08-14T15:00:00Z</dc:date>
    </item>
  </channel>
</rss>

