<?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: &amp;quot;YYQ5.&amp;quot; informat to read year-quarter date in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/quot-YYQ5-quot-informat-to-read-year-quarter-date/m-p/550703#M8844</link>
    <description>thank you so much, it's really helpful.</description>
    <pubDate>Fri, 12 Apr 2019 15:49:27 GMT</pubDate>
    <dc:creator>changxuosu</dc:creator>
    <dc:date>2019-04-12T15:49:27Z</dc:date>
    <item>
      <title>"YYQ5." informat to read year-quarter date</title>
      <link>https://communities.sas.com/t5/New-SAS-User/quot-YYQ5-quot-informat-to-read-year-quarter-date/m-p/550668#M8839</link>
      <description>&lt;P&gt;&lt;FONT color="#000000" face="Courier New" size="3"&gt;Hi Sas Community!&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Courier New" size="3"&gt;I tried to use the "YYQ5." informat to read year-quarter date, but cant get this quite right. Can any one catch what's going wrong with the following code?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Courier New" size="3"&gt;Thank you!!! Have a nice weekend.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; temp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;input&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; date &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;YYQ5.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; prime &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;4.2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;datalines&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;18Q01 3.45&lt;/P&gt;&lt;P&gt;18Q02 3.44&lt;/P&gt;&lt;P&gt;18Q03 3.23&lt;/P&gt;&lt;P&gt;18Q04 1.23&lt;/P&gt;&lt;P&gt;19Q01 2.12&lt;/P&gt;&lt;P&gt;19Q02 3.23&lt;/P&gt;&lt;P&gt;19Q03 1.42&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2019 14:50:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/quot-YYQ5-quot-informat-to-read-year-quarter-date/m-p/550668#M8839</guid>
      <dc:creator>changxuosu</dc:creator>
      <dc:date>2019-04-12T14:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: "YYQ5." informat to read year-quarter date</title>
      <link>https://communities.sas.com/t5/New-SAS-User/quot-YYQ5-quot-informat-to-read-year-quarter-date/m-p/550671#M8840</link>
      <description>&lt;P&gt;What makes you think there is a problem. You did not assign any format to DATE so the value displayed is the number of days since 1JAn1960.&lt;/P&gt;
&lt;P&gt;The informat will assign a date value of the first day of the calendar quarter if you use a date format that will display day and month such as:&lt;/P&gt;
&lt;PRE&gt;data temp;
input date YYQ5. prime 4.2;
format date date9.;
datalines;
18Q01 3.45
18Q02 3.44
18Q03 3.23
18Q04 1.23
19Q01 2.12
19Q02 3.23
19Q03 1.42
;
run;&lt;/PRE&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Working-with-Dates-and-Times-in-SAS-Tutorial/ta-p/424354" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/Working-with-Dates-and-Times-in-SAS-Tutorial/ta-p/424354&lt;/A&gt; has a PDF with much information about dates.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2019 14:55:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/quot-YYQ5-quot-informat-to-read-year-quarter-date/m-p/550671#M8840</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-04-12T14:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: "YYQ5." informat to read year-quarter date</title>
      <link>https://communities.sas.com/t5/New-SAS-User/quot-YYQ5-quot-informat-to-read-year-quarter-date/m-p/550672#M8841</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data temp;

input date yyq5. prime 4.2;
datalines;
18Q01 3.45
18Q02 3.44
18Q03 3.23
18Q04 1.23
19Q01 2.12
19Q02 3.23
19Q03 1.42
;
data got;
	set temp;
	new = date;
	format new yyq5.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 Apr 2019 14:56:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/quot-YYQ5-quot-informat-to-read-year-quarter-date/m-p/550672#M8841</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2019-04-12T14:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: "YYQ5." informat to read year-quarter date</title>
      <link>https://communities.sas.com/t5/New-SAS-User/quot-YYQ5-quot-informat-to-read-year-quarter-date/m-p/550702#M8843</link>
      <description>thank you so much, now I understand the difference btw formats and informats.... You're always very helpful.</description>
      <pubDate>Fri, 12 Apr 2019 15:49:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/quot-YYQ5-quot-informat-to-read-year-quarter-date/m-p/550702#M8843</guid>
      <dc:creator>changxuosu</dc:creator>
      <dc:date>2019-04-12T15:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: "YYQ5." informat to read year-quarter date</title>
      <link>https://communities.sas.com/t5/New-SAS-User/quot-YYQ5-quot-informat-to-read-year-quarter-date/m-p/550703#M8844</link>
      <description>thank you so much, it's really helpful.</description>
      <pubDate>Fri, 12 Apr 2019 15:49:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/quot-YYQ5-quot-informat-to-read-year-quarter-date/m-p/550703#M8844</guid>
      <dc:creator>changxuosu</dc:creator>
      <dc:date>2019-04-12T15:49:27Z</dc:date>
    </item>
  </channel>
</rss>

