<?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 question on the answer for SAS base certification in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/question-on-the-answer-for-SAS-base-certification/m-p/664502#M22873</link>
    <description>&lt;P&gt;&lt;SPAN&gt;data work.report;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;set work.sales_info;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if qtr(sales_date) ge 3;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The SAS data set WORK.SALES_INFO has one observation for each month in the year 2000 and the variable SALES_DATE which contains a SAS date value for each of the twelve months.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How many of the original twelve observations in WORK.SALES_INFO are written to the WORK.REPORT data set?&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Answer :&amp;nbsp;&lt;/STRONG&gt;C. The qtr (quarter) values of each of the months (July through December) 7,8,9,10,11,12 is 3,3,3,4,4,4..Therefore 6 obs are included in the final dataset.&lt;BR /&gt;I do not understand the answer to this question.Can someone please explain?&lt;/DIV&gt;</description>
    <pubDate>Tue, 23 Jun 2020 22:15:32 GMT</pubDate>
    <dc:creator>stippur</dc:creator>
    <dc:date>2020-06-23T22:15:32Z</dc:date>
    <item>
      <title>question on the answer for SAS base certification</title>
      <link>https://communities.sas.com/t5/New-SAS-User/question-on-the-answer-for-SAS-base-certification/m-p/664502#M22873</link>
      <description>&lt;P&gt;&lt;SPAN&gt;data work.report;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;set work.sales_info;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if qtr(sales_date) ge 3;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The SAS data set WORK.SALES_INFO has one observation for each month in the year 2000 and the variable SALES_DATE which contains a SAS date value for each of the twelve months.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How many of the original twelve observations in WORK.SALES_INFO are written to the WORK.REPORT data set?&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Answer :&amp;nbsp;&lt;/STRONG&gt;C. The qtr (quarter) values of each of the months (July through December) 7,8,9,10,11,12 is 3,3,3,4,4,4..Therefore 6 obs are included in the final dataset.&lt;BR /&gt;I do not understand the answer to this question.Can someone please explain?&lt;/DIV&gt;</description>
      <pubDate>Tue, 23 Jun 2020 22:15:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/question-on-the-answer-for-SAS-base-certification/m-p/664502#M22873</guid>
      <dc:creator>stippur</dc:creator>
      <dc:date>2020-06-23T22:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: question on the answer for SAS base certification</title>
      <link>https://communities.sas.com/t5/New-SAS-User/question-on-the-answer-for-SAS-base-certification/m-p/664512#M22874</link>
      <description>&lt;P&gt;The function QTR returns the calendar quarter from a SAS date value. Qtr 1 is Jan, Feb, Mar, Qtr 2 is Apr, May, June; Qtr3 is Jul, Aug, Sep and Qtr 4 is Oct, Nov Dec.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you only have one record with a date for each month Qtr is ge 3 for Jul through Dec.&lt;/P&gt;
&lt;P&gt;The IF without a then is a subsetting if and only records where the if condition is true are kept in the output data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does this answer your question? If not please expand on what is confusing.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 22:41:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/question-on-the-answer-for-SAS-base-certification/m-p/664512#M22874</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-06-23T22:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: question on the answer for SAS base certification</title>
      <link>https://communities.sas.com/t5/New-SAS-User/question-on-the-answer-for-SAS-base-certification/m-p/664516#M22877</link>
      <description>&lt;P&gt;Thanks ballardw! Your explanation was very helpful.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 22:50:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/question-on-the-answer-for-SAS-base-certification/m-p/664516#M22877</guid>
      <dc:creator>stippur</dc:creator>
      <dc:date>2020-06-23T22:50:19Z</dc:date>
    </item>
  </channel>
</rss>

