<?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: Picture Format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Picture-Format/m-p/851391#M336510</link>
    <description>&lt;P&gt;What I need is this:&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="picture.png" style="width: 360px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78907iA7902CF8D86F55C4/image-size/large?v=v2&amp;amp;px=999" role="button" title="picture.png" alt="picture.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it's positiv its empty&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 28 Dec 2022 18:18:01 GMT</pubDate>
    <dc:creator>ssafmed</dc:creator>
    <dc:date>2022-12-28T18:18:01Z</dc:date>
    <item>
      <title>Picture Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Picture-Format/m-p/851374#M336500</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to use Picture FORMAT&amp;nbsp; to have the output in file like : -0000000000.0000000000&amp;nbsp; (the first one is for sign(if it's positiv it last empty but if it's negativ it's -) and ten zeros then dot then ten 0 It's 22 in total)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I use this format but I get&amp;nbsp;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;ERROR: Number of digit selectors (17)cannot exceed 16 &lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;picture ving&lt;BR /&gt;LOW-&amp;lt;0 = '9999999999.9999999999' (prefix='-')&lt;BR /&gt;0-HIGH = '9999999999.9999999999'&lt;BR /&gt;other = .&lt;BR /&gt;;&lt;/P&gt;
&lt;P&gt;Like this :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="picture.png" style="width: 360px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78908iDBCB3188C7F4E2E9/image-size/large?v=v2&amp;amp;px=999" role="button" title="picture.png" alt="picture.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Can u please help to solve this issue &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 19:35:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Picture-Format/m-p/851374#M336500</guid>
      <dc:creator>ssafmed</dc:creator>
      <dc:date>2022-12-28T19:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Picture Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Picture-Format/m-p/851379#M336503</link>
      <description>I think the error message is clear. You need to remove a digit somewhere. You can also try the BESTw.d format or the w.d format.</description>
      <pubDate>Wed, 28 Dec 2022 17:18:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Picture-Format/m-p/851379#M336503</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-12-28T17:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Picture Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Picture-Format/m-p/851380#M336504</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm afraid you have hit a limit on the number of digit selectors in a picture format.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;ERROR: Number of digit selectors (17) cannot exceed 16.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately 16 is the maximum number of digits you can have in a picture format.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This one is a precision thing. For numerics, SAS is only able to hold 16 digits (17 digits for EBCDIC machines), before precision is lost. So Proc Format was designed to reflect this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Obviously, SAS can hold bigger numbers (eg format 24.2), which it stores internally in floating point.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Proc Format is for display, and you are limited to 16 displayable chars maximum.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Koen&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 17:20:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Picture-Format/m-p/851380#M336504</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-12-28T17:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: Picture Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Picture-Format/m-p/851386#M336507</link>
      <description>&lt;P&gt;How is that any different than using 23.10 format?&lt;/P&gt;
&lt;PRE&gt;3504  data _null_;
3505    do x=0,1,-1,1E10,-1E10,1e-10,-1e-10;
3506      put x 23.10 +1 x= ;
3507    end;
3508  run;

           0.0000000000 x=0
           1.0000000000 x=1
          -1.0000000000 x=-1
 10000000000.0000000000 x=10000000000
-10000000000.0000000000 x=-10000000000
           0.0000000001 x=1E-10
          -0.0000000001 x=-1E-10
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Or perhaps the Z23.10 format?&lt;/P&gt;
&lt;PRE&gt;3509  data _null_;
3510    do x=0,1,-1,1E10,-1E10,1e-10,-1e-10;
3511      put x Z23.10 +1 x= ;
3512    end;
3513  run;

000000000000.0000000000 x=0
000000000001.0000000000 x=1
-00000000001.0000000000 x=-1
010000000000.0000000000 x=10000000000
-10000000000.0000000000 x=-10000000000
000000000000.0000000001 x=1E-10
-00000000000.0000000001 x=-1E-10
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Dec 2022 18:00:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Picture-Format/m-p/851386#M336507</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-12-28T18:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Picture Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Picture-Format/m-p/851391#M336510</link>
      <description>&lt;P&gt;What I need is this:&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="picture.png" style="width: 360px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78907iA7902CF8D86F55C4/image-size/large?v=v2&amp;amp;px=999" role="button" title="picture.png" alt="picture.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it's positiv its empty&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 18:18:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Picture-Format/m-p/851391#M336510</guid>
      <dc:creator>ssafmed</dc:creator>
      <dc:date>2022-12-28T18:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Picture Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Picture-Format/m-p/851399#M336515</link>
      <description>&lt;P&gt;So use a normal VALUE statement instead and combine it with the -R modifier on the format specification (ving22.-R).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;3616  proc format cntlout=xxx ;
3617  picture ving (default=22 )
3618  LOW-&amp;lt;0 = [Z22.10]
3619  0-HIGH = [Z21.10]
3620  other = '           .          '
3621  ;
NOTE: Format VING is already on the library WORK.FORMATS.
NOTE: Format VING has been output.
3622

NOTE: The data set WORK.XXX has 3 observations and 21 variables.
NOTE: PROCEDURE FORMAT used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds


3623  data _null_;
3624    do x=0,1,-1,1E9,-1E9,1e-10,-1e-10;
3625      put x ving22.-r +1 x= ;
3626    end;
3627  run;

 0000000000.0000000000 x=0
 0000000001.0000000000 x=1
-0000000001.0000000000 x=-1
 1000000000.0000000000 x=1000000000
-1000000000.0000000000 x=-1000000000
 0000000000.0000000001 x=1E-10
-0000000000.0000000001 x=-1E-10
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Dec 2022 19:42:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Picture-Format/m-p/851399#M336515</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-12-28T19:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: Picture Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Picture-Format/m-p/851400#M336516</link>
      <description>Thanks!</description>
      <pubDate>Wed, 28 Dec 2022 20:22:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Picture-Format/m-p/851400#M336516</guid>
      <dc:creator>ssafmed</dc:creator>
      <dc:date>2022-12-28T20:22:15Z</dc:date>
    </item>
  </channel>
</rss>

