<?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 Printing on a condition in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Printing-on-a-condition/m-p/568793#M160192</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanna print some variables where 'EventDate' variable is 01Jan2016 to 31Jan2016. I am writing following syntax;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc print data=GPvisit;&lt;BR /&gt;var eventdate pkid status visit month professionalcontact;&lt;BR /&gt;where ('01JAN2016'd =&amp;lt;EventDate&amp;gt;= '31JAN2016'd) ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It doesn't seem to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help with the code please?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jun 2019 14:28:57 GMT</pubDate>
    <dc:creator>sks521</dc:creator>
    <dc:date>2019-06-25T14:28:57Z</dc:date>
    <item>
      <title>Printing on a condition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Printing-on-a-condition/m-p/568793#M160192</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanna print some variables where 'EventDate' variable is 01Jan2016 to 31Jan2016. I am writing following syntax;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc print data=GPvisit;&lt;BR /&gt;var eventdate pkid status visit month professionalcontact;&lt;BR /&gt;where ('01JAN2016'd =&amp;lt;EventDate&amp;gt;= '31JAN2016'd) ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It doesn't seem to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help with the code please?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2019 14:28:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Printing-on-a-condition/m-p/568793#M160192</guid>
      <dc:creator>sks521</dc:creator>
      <dc:date>2019-06-25T14:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Printing on a condition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Printing-on-a-condition/m-p/568797#M160194</link>
      <description>Can you provide more details about the table, GPVisit? Like logic to create a dummy table that looks like the GPVisit table. That way we can have a better idea of what we are referencing in the proc print statement you have included in your post.&lt;BR /&gt;&lt;BR /&gt;Check out this link if you need help creating the dummy table: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt;</description>
      <pubDate>Tue, 25 Jun 2019 14:33:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Printing-on-a-condition/m-p/568797#M160194</guid>
      <dc:creator>tsap</dc:creator>
      <dc:date>2019-06-25T14:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Printing on a condition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Printing-on-a-condition/m-p/568804#M160200</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/277970"&gt;@sks521&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;where ('01JAN2016'd =&amp;lt;EventDate&amp;gt;= '31JAN2016'd) ;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/277970"&gt;@sks521&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, correct the syntax error ("=&amp;lt;") and the logical error ("&amp;gt;=") in your WHERE condition and then rerun the step.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where '01JAN2016'd&amp;lt;=EventDate&amp;lt;='31JAN2016'd;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Jun 2019 14:42:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Printing-on-a-condition/m-p/568804#M160200</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2019-06-25T14:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Printing on a condition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Printing-on-a-condition/m-p/569007#M160285</link>
      <description>&lt;P&gt;Fabulous! thanks&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 08:08:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Printing-on-a-condition/m-p/569007#M160285</guid>
      <dc:creator>sks521</dc:creator>
      <dc:date>2019-06-26T08:08:05Z</dc:date>
    </item>
  </channel>
</rss>

