<?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: order=formatted when no format specified for a CATEGORICAL variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/order-formatted-when-no-format-specified-for-a-CATEGORICAL/m-p/649427#M194699</link>
    <description>&lt;P&gt;Thanks so much for confirming!&lt;/P&gt;</description>
    <pubDate>Thu, 21 May 2020 01:31:41 GMT</pubDate>
    <dc:creator>Cecillia_Mao</dc:creator>
    <dc:date>2020-05-21T01:31:41Z</dc:date>
    <item>
      <title>order=formatted when no format specified for a CATEGORICAL variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/order-formatted-when-no-format-specified-for-a-CATEGORICAL/m-p/649073#M194551</link>
      <description>&lt;P&gt;Hi everybody, I have a question regarding ORDER=FORMATTED: If no format is applied, the BEST12. format is used for numeric variables. &lt;FONT color="#3366FF"&gt;However, I haven't found any description for categorical variables. &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tested using sashelp.cars dataset. It seems like the order is the same as the result of order=internal. So my question is if no format is specified for order=formatted, does SAS use order=internal instead？&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc report data=sashelp.cars(OBS=30);&lt;BR /&gt;Column Type invoice ;&lt;BR /&gt;define type/order order=formatted;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc report data=sashelp.cars(OBS=30);&lt;BR /&gt;Column Type invoice ;&lt;BR /&gt;define type/order order=internal;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help in advance! Any thoughts would be appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 02:13:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/order-formatted-when-no-format-specified-for-a-CATEGORICAL/m-p/649073#M194551</guid>
      <dc:creator>Cecillia_Mao</dc:creator>
      <dc:date>2020-05-20T02:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: order=formatted when no format specified for a CATEGORICAL variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/order-formatted-when-no-format-specified-for-a-CATEGORICAL/m-p/649094#M194563</link>
      <description>&lt;P&gt;If there is no format associated, the value is used, which is what option &lt;EM&gt;internal&lt;/EM&gt; does.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 06:16:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/order-formatted-when-no-format-specified-for-a-CATEGORICAL/m-p/649094#M194563</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-05-20T06:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: order=formatted when no format specified for a CATEGORICAL variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/order-formatted-when-no-format-specified-for-a-CATEGORICAL/m-p/649222#M194608</link>
      <description>&lt;P&gt;If by "categorical" you mean Character then the format will be $W.&amp;nbsp; Which will generally mean your national language sort setting. Note that you may get some things that appear out of order if they have leading spaces because the sort will use the space for determining order but the display in many procedures will not display the leading space.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Numerical variables can be used as categorical. Custom formats to create groups of values, such as 10-year intervals for age, can turn continuous values into categorical values for most analysis, reporting graphing procedures.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 13:50:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/order-formatted-when-no-format-specified-for-a-CATEGORICAL/m-p/649222#M194608</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-05-20T13:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: order=formatted when no format specified for a CATEGORICAL variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/order-formatted-when-no-format-specified-for-a-CATEGORICAL/m-p/649427#M194699</link>
      <description>&lt;P&gt;Thanks so much for confirming!&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 01:31:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/order-formatted-when-no-format-specified-for-a-CATEGORICAL/m-p/649427#M194699</guid>
      <dc:creator>Cecillia_Mao</dc:creator>
      <dc:date>2020-05-21T01:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: order=formatted when no format specified for a CATEGORICAL variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/order-formatted-when-no-format-specified-for-a-CATEGORICAL/m-p/649431#M194703</link>
      <description>Thanks so much for the comments! I just learned that most procedures won't display leading spaces. Regarding order=formatted, If there is no specified format, it will use best12. format for numerical variable and $w. format for categorical variables. And the order for those formats still follow 1-9, A-Z, a-z order.&lt;BR /&gt;Thank you!</description>
      <pubDate>Thu, 21 May 2020 01:43:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/order-formatted-when-no-format-specified-for-a-CATEGORICAL/m-p/649431#M194703</guid>
      <dc:creator>Cecillia_Mao</dc:creator>
      <dc:date>2020-05-21T01:43:26Z</dc:date>
    </item>
  </channel>
</rss>

