<?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: Proc format error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-format-error/m-p/261275#M50806</link>
    <description>&lt;P&gt;Instead of this, you may want&amp;nbsp;create a custom format to display the date in that format rather than add the 1. etc I'm assuming it's to order the data, but it looks uglier in my opinion in this format. In fact, it should sort naturally, so I'm not sure why you're doing this at all...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Look into proc picture and how to create a custom date format.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also look into a multilabel format to create multiple levels when formatting.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Formats are extremely powerful, they're worth learning well.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To diagnose your problem with your format for example you can use the following to see how proc format stored the format and noticed that the first one was missing so you could check your code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format cntlout=check_format;
run;

proc print data=check_format;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Apr 2016 04:17:51 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-04-05T04:17:51Z</dc:date>
    <item>
      <title>Proc format error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-format-error/m-p/261263#M50801</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to use the followng format and put function to revalue yr_qt variable, however the first row of the format could not show off &amp;nbsp;(&lt;SPAN&gt;"2011_Q1"='1.2011_Q1' ). After put function, the 2011_Q1 is still 2011_Q1 instead of &amp;nbsp;1.2011_Q1 .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am wondering what is wrong. &amp;nbsp;Thank you very much.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc format ;&lt;BR /&gt;value&lt;BR /&gt;$yr_qtf 30.&lt;BR /&gt;"2011_Q1"='1.2011_Q1'&lt;BR /&gt;"2011_Q2"='2.2011_Q2'&lt;BR /&gt;"2011_Q3"='3.2011_Q3'&lt;BR /&gt;"2011_Q4"='4.2011_Q4'&lt;BR /&gt;"2012_Q1"='5.2012_Q1'&lt;BR /&gt;"2012_Q2"='6.2012_Q2'&lt;BR /&gt;"2012_Q3"='7.2012_Q3'&lt;BR /&gt;"2012_Q4"='8.2012_Q4'&lt;BR /&gt;"2013_Q1"='9.2013_Q1'&lt;BR /&gt;"2013_Q2"='91.2013_Q2'&lt;BR /&gt;"2013_Q3"='92.2013_Q3'&lt;BR /&gt;"2013_Q4"='93.2013_Q4'&lt;BR /&gt;"2014_Q1"='94.2014_Q1'&lt;BR /&gt;"2014_Q2"='95.2014_Q2'&lt;BR /&gt;"2014_Q3"='96.2014_Q3'&lt;BR /&gt;"2014_Q4"='97.2014_Q4'&lt;BR /&gt;"2015_Q1"='98.2015_Q1'&lt;BR /&gt;"2015_Q2"='99.2015_Q2'&lt;BR /&gt;"2015_Q3"='991.2015_Q3'&lt;BR /&gt;"2015_Q4"='992.2015_Q4'&lt;BR /&gt;'All years'='0.ALL years'&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data table2;&lt;/P&gt;&lt;P&gt;set table2;&lt;/P&gt;&lt;P&gt;yr_qt_1 = put ( yr_qt, yr_qtf. ) ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2016 02:51:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-format-error/m-p/261263#M50801</guid>
      <dc:creator>Ivy</dc:creator>
      <dc:date>2016-04-05T02:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: Proc format error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-format-error/m-p/261266#M50802</link>
      <description>Please remove 30. from the proc format step and the format will work. &lt;BR /&gt;&lt;BR /&gt;Please let me know if it does not work. &lt;BR /&gt;</description>
      <pubDate>Tue, 05 Apr 2016 02:55:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-format-error/m-p/261266#M50802</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2016-04-05T02:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Proc format error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-format-error/m-p/261268#M50803</link>
      <description>Thank you very much, it works !</description>
      <pubDate>Tue, 05 Apr 2016 03:08:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-format-error/m-p/261268#M50803</guid>
      <dc:creator>Ivy</dc:creator>
      <dc:date>2016-04-05T03:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Proc format error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-format-error/m-p/261275#M50806</link>
      <description>&lt;P&gt;Instead of this, you may want&amp;nbsp;create a custom format to display the date in that format rather than add the 1. etc I'm assuming it's to order the data, but it looks uglier in my opinion in this format. In fact, it should sort naturally, so I'm not sure why you're doing this at all...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Look into proc picture and how to create a custom date format.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also look into a multilabel format to create multiple levels when formatting.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Formats are extremely powerful, they're worth learning well.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To diagnose your problem with your format for example you can use the following to see how proc format stored the format and noticed that the first one was missing so you could check your code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format cntlout=check_format;
run;

proc print data=check_format;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2016 04:17:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-format-error/m-p/261275#M50806</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-04-05T04:17:51Z</dc:date>
    </item>
  </channel>
</rss>

