<?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: SAS - set quarter/year (written in YYYY QQ format) in proper SAS format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-set-quarter-year-written-in-YYYY-QQ-format-in-proper-SAS/m-p/606121#M175969</link>
    <description>&lt;P&gt;How do I view whether it is a character variable?&lt;/P&gt;</description>
    <pubDate>Thu, 21 Nov 2019 13:34:14 GMT</pubDate>
    <dc:creator>adrfinance</dc:creator>
    <dc:date>2019-11-21T13:34:14Z</dc:date>
    <item>
      <title>SAS - set quarter/year (written in YYYY QQ format) in proper SAS format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-set-quarter-year-written-in-YYYY-QQ-format-in-proper-SAS/m-p/606117#M175967</link>
      <description>&lt;P&gt;I have a variable called qy that looks like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;2008 Q1&lt;/P&gt;&lt;P&gt;2008 Q1&lt;/P&gt;&lt;P&gt;2009 Q2&lt;/P&gt;&lt;P&gt;2009 Q2&lt;/P&gt;&lt;P&gt;2009 Q3&lt;/P&gt;&lt;P&gt;2009 Q4&lt;/P&gt;&lt;P&gt;2009 Q4&lt;/P&gt;&lt;P&gt;2009 Q4&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I set it in proper SAS format?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 13:28:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-set-quarter-year-written-in-YYYY-QQ-format-in-proper-SAS/m-p/606117#M175967</guid>
      <dc:creator>adrfinance</dc:creator>
      <dc:date>2019-11-21T13:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: SAS - set quarter/year (written in YYYY QQ format) in proper SAS format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-set-quarter-year-written-in-YYYY-QQ-format-in-proper-SAS/m-p/606120#M175968</link>
      <description>&lt;P&gt;What do you consider a 'proper' SAS format?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, is this a character variable?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 13:30:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-set-quarter-year-written-in-YYYY-QQ-format-in-proper-SAS/m-p/606120#M175968</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-11-21T13:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: SAS - set quarter/year (written in YYYY QQ format) in proper SAS format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-set-quarter-year-written-in-YYYY-QQ-format-in-proper-SAS/m-p/606121#M175969</link>
      <description>&lt;P&gt;How do I view whether it is a character variable?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 13:34:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-set-quarter-year-written-in-YYYY-QQ-format-in-proper-SAS/m-p/606121#M175969</guid>
      <dc:creator>adrfinance</dc:creator>
      <dc:date>2019-11-21T13:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: SAS - set quarter/year (written in YYYY QQ format) in proper SAS format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-set-quarter-year-written-in-YYYY-QQ-format-in-proper-SAS/m-p/606122#M175970</link>
      <description>&lt;P&gt;in the "Alphabetic List of Variables and Attributes" section of the output from&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc contents data=YourDataSetHere;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Nov 2019 13:35:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-set-quarter-year-written-in-YYYY-QQ-format-in-proper-SAS/m-p/606122#M175970</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-11-21T13:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: SAS - set quarter/year (written in YYYY QQ format) in proper SAS format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-set-quarter-year-written-in-YYYY-QQ-format-in-proper-SAS/m-p/606123#M175971</link>
      <description>&lt;P&gt;It says it is a character&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 13:37:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-set-quarter-year-written-in-YYYY-QQ-format-in-proper-SAS/m-p/606123#M175971</guid>
      <dc:creator>adrfinance</dc:creator>
      <dc:date>2019-11-21T13:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: SAS - set quarter/year (written in YYYY QQ format) in proper SAS format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-set-quarter-year-written-in-YYYY-QQ-format-in-proper-SAS/m-p/606125#M175972</link>
      <description>&lt;P&gt;Ok. Do like this then&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input qy $&amp;amp;;
datalines;
2008 Q1
2008 Q1
2009 Q2
2009 Q2
2009 Q3
2009 Q4
2009 Q4
2009 Q4
;

data want;
    set have;
    dt=input(compress(qy), yyq7.);
    format dt date9.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;qy      dt
2008 Q1 01JAN2008
2008 Q1 01JAN2008
2009 Q2 01APR2009
2009 Q2 01APR2009
2009 Q3 01JUL2009
2009 Q4 01OCT2009
2009 Q4 01OCT2009
2009 Q4 01OCT2009&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 13:43:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-set-quarter-year-written-in-YYYY-QQ-format-in-proper-SAS/m-p/606125#M175972</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-11-21T13:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: SAS - set quarter/year (written in YYYY QQ format) in proper SAS format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-set-quarter-year-written-in-YYYY-QQ-format-in-proper-SAS/m-p/606127#M175973</link>
      <description>&lt;P&gt;My initial dataset has over 8000 rows but when I run your code it gets reduced to only 10 rows.. Why is this the case? How can I fix it?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 13:44:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-set-quarter-year-written-in-YYYY-QQ-format-in-proper-SAS/m-p/606127#M175973</guid>
      <dc:creator>adrfinance</dc:creator>
      <dc:date>2019-11-21T13:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: SAS - set quarter/year (written in YYYY QQ format) in proper SAS format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-set-quarter-year-written-in-YYYY-QQ-format-in-proper-SAS/m-p/606129#M175974</link>
      <description>&lt;P&gt;What does your log say?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 13:46:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-set-quarter-year-written-in-YYYY-QQ-format-in-proper-SAS/m-p/606129#M175974</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-11-21T13:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: SAS - set quarter/year (written in YYYY QQ format) in proper SAS format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-set-quarter-year-written-in-YYYY-QQ-format-in-proper-SAS/m-p/606232#M176024</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/300616"&gt;@adrfinance&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;My initial dataset has over 8000 rows but when I run your code it gets reduced to only 10 rows.. Why is this the case? How can I fix it?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Copy the code with the messages from the LOG. Paste into a code box opened on the forum using the {I} icon.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why? Need code and info that will be in the log.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 17:45:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-set-quarter-year-written-in-YYYY-QQ-format-in-proper-SAS/m-p/606232#M176024</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-11-21T17:45:07Z</dc:date>
    </item>
  </channel>
</rss>

