<?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 Digit Selector Setting in PROC FORMAT PICTURE in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Digit-Selector-Setting-in-PROC-FORMAT-PICTURE/m-p/618295#M181367</link>
    <description>&lt;P&gt;I created a custom format to enclose numbers using parentheses, so&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input x @@;
cards;
1.234 5.678 9.012 3.456 7.890
;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I applied the following format.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
picture parenthesis low-&amp;lt;0="0009.00)" (prefix="(-") 0-high="0009.00)" (prefix="(");
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And printed as follows.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
set have;
format x parenthesis.;
put _all_;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Here is the log output.&lt;/P&gt;&lt;PRE&gt;x=(1.23) _ERROR_=0 _N_=1
x=(5.67) _ERROR_=0 _N_=2
x=(9.01) _ERROR_=0 _N_=3
x=(3.45) _ERROR_=0 _N_=4
x=(7.89) _ERROR_=0 _N_=5&lt;/PRE&gt;&lt;P&gt;(1) Similar to ready-made SAS formats, can I make the new format PARENTHESIS flexible using &lt;EM&gt;w&lt;/EM&gt; and &lt;EM&gt;d&lt;/EM&gt;s? For example. I want to obtain something PARENTHESIS12.4 or PARENTHESIS8.2.&lt;/P&gt;&lt;P&gt;(2) This format does not round each number—the second output displays (5.67) despite the original value 5.678. I tried ROUND right after PREFIX but failed. Where should I adjust? Thanks.&lt;/P&gt;</description>
    <pubDate>Sat, 18 Jan 2020 23:13:54 GMT</pubDate>
    <dc:creator>Junyong</dc:creator>
    <dc:date>2020-01-18T23:13:54Z</dc:date>
    <item>
      <title>Digit Selector Setting in PROC FORMAT PICTURE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Digit-Selector-Setting-in-PROC-FORMAT-PICTURE/m-p/618295#M181367</link>
      <description>&lt;P&gt;I created a custom format to enclose numbers using parentheses, so&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input x @@;
cards;
1.234 5.678 9.012 3.456 7.890
;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I applied the following format.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
picture parenthesis low-&amp;lt;0="0009.00)" (prefix="(-") 0-high="0009.00)" (prefix="(");
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And printed as follows.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
set have;
format x parenthesis.;
put _all_;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Here is the log output.&lt;/P&gt;&lt;PRE&gt;x=(1.23) _ERROR_=0 _N_=1
x=(5.67) _ERROR_=0 _N_=2
x=(9.01) _ERROR_=0 _N_=3
x=(3.45) _ERROR_=0 _N_=4
x=(7.89) _ERROR_=0 _N_=5&lt;/PRE&gt;&lt;P&gt;(1) Similar to ready-made SAS formats, can I make the new format PARENTHESIS flexible using &lt;EM&gt;w&lt;/EM&gt; and &lt;EM&gt;d&lt;/EM&gt;s? For example. I want to obtain something PARENTHESIS12.4 or PARENTHESIS8.2.&lt;/P&gt;&lt;P&gt;(2) This format does not round each number—the second output displays (5.67) despite the original value 5.678. I tried ROUND right after PREFIX but failed. Where should I adjust? Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jan 2020 23:13:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Digit-Selector-Setting-in-PROC-FORMAT-PICTURE/m-p/618295#M181367</guid>
      <dc:creator>Junyong</dc:creator>
      <dc:date>2020-01-18T23:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Digit Selector Setting in PROC FORMAT PICTURE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Digit-Selector-Setting-in-PROC-FORMAT-PICTURE/m-p/618298#M181370</link>
      <description>&lt;P&gt;ROUND goes inside brackets just after the picture name:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
picture parenthesis (round)&lt;BR /&gt;low-&amp;lt;0="0009.00)" (prefix="(-")&lt;BR /&gt;0-high="0009.00)" (prefix="(");
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 18 Jan 2020 23:42:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Digit-Selector-Setting-in-PROC-FORMAT-PICTURE/m-p/618298#M181370</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-01-18T23:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: Digit Selector Setting in PROC FORMAT PICTURE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Digit-Selector-Setting-in-PROC-FORMAT-PICTURE/m-p/618390#M181408</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
picture parenthesis (round) low-high="0009.00)" (prefix="(");
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 19 Jan 2020 20:00:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Digit-Selector-Setting-in-PROC-FORMAT-PICTURE/m-p/618390#M181408</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-01-19T20:00:28Z</dc:date>
    </item>
  </channel>
</rss>

