<?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: Format issue in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Format-issue/m-p/891792#M352265</link>
    <description>&lt;P&gt;Could you explain how the words you wrote relate to the data you show? I don't see a connection.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Aug 2023 18:46:54 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2023-08-30T18:46:54Z</dc:date>
    <item>
      <title>Format issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-issue/m-p/891783#M352263</link>
      <description>&lt;P&gt;My format table contains start, end and label columns,&lt;/P&gt;&lt;P&gt;For Label -&amp;nbsp;Not Prime the start and end vales are **OTHER**, the other labels are correctly populates where as&amp;nbsp;Not Prime is not populated and output is getting impacted, how to over come this and get "Not Prime " instead below values&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="qwerty12_1-1693420536959.png" style="width: 173px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/87336i746100319B86498A/image-dimensions/173x123?v=v2" width="173" height="123" role="button" title="qwerty12_1-1693420536959.png" alt="qwerty12_1-1693420536959.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 18:36:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-issue/m-p/891783#M352263</guid>
      <dc:creator>qwerty12</dc:creator>
      <dc:date>2023-08-30T18:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: Format issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-issue/m-p/891791#M352264</link>
      <description>&lt;P&gt;It is not clear what you mean.&lt;/P&gt;
&lt;P&gt;Did you define a custom format?&amp;nbsp; Did you do it by writing a VALUE statement?&amp;nbsp; Please show the value statement.&lt;/P&gt;
&lt;P&gt;Did you do it by creating a CTLNIN dataset? Please show the dataset.&amp;nbsp; Does the dataset contain the HLO variable?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Show an example input dataset and how you want those values to print when using the format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please post code and data as text, not photographs.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 18:46:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-issue/m-p/891791#M352264</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-08-30T18:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Format issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-issue/m-p/891792#M352265</link>
      <description>&lt;P&gt;Could you explain how the words you wrote relate to the data you show? I don't see a connection.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 18:46:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-issue/m-p/891792#M352265</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-08-30T18:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: Format issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-issue/m-p/891793#M352266</link>
      <description>&lt;P&gt;***OTHER*** for start/end values appear when the format was defined with an "OTHER =" statement, or setting the HLO variable to include 'O' in a&amp;nbsp; format cntlin data set indicating that any value not appearing in an explicit assignment range will be assigned the label. This is normal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Showing a picture from a part of spreadsheet is not particularly helpful to diagnose something.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Where is the code that creates the format? That would help.&lt;/P&gt;
&lt;P&gt;Or if you used a Cntlin data set with proc format then the values in that data set.&lt;/P&gt;
&lt;P&gt;Then actual examples of the data. I am afraid that the picture you show sort of implies that the values of your data are likely to be character and ranges notoriously do not work well with character values because of the comparisons are conducted to result in equal/not equal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 18:52:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-issue/m-p/891793#M352266</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-08-30T18:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: Format issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-issue/m-p/891797#M352268</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/437573"&gt;@qwerty12&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The key for the "other" category to work is that variable HLO='O'. If HLO is blank or not even contained in your CNTLIN dataset, the string "**OTHER**" in the START and END variables is treated like any other string. It has &lt;EM&gt;no&lt;/EM&gt; special meaning. However, if HLO='O', the values of START and END are &lt;EM&gt;ignored&lt;/EM&gt; for that observation, so you can leave them blank. The string "**OTHER**" for START and END will appear in FMTLIB output and a CNTLOUT dataset automatically. There is no need to type it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data fmt;
retain fmtname '$testfmt';
input start $ label $ hlo $;
cards;
A one .
B two .
. any O
;

proc format cntlin=fmt;
run;

data _null_;
do c='A','B','X';
  put c $testfmt.;
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Aug 2023 19:24:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-issue/m-p/891797#M352268</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2023-08-30T19:24:16Z</dc:date>
    </item>
  </channel>
</rss>

