<?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: print blank instead of 0 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/print-blank-instead-of-0/m-p/70234#M15201</link>
    <description>Okay - now share all SAS code related to the problem, which would include your PROC REPORT code, otherwise it is a guessing game (whether or not the "mainframe" is involved).&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
    <pubDate>Mon, 06 Sep 2010 14:34:46 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2010-09-06T14:34:46Z</dc:date>
    <item>
      <title>print blank instead of 0</title>
      <link>https://communities.sas.com/t5/SAS-Programming/print-blank-instead-of-0/m-p/70231#M15198</link>
      <description>dear all,&lt;BR /&gt;
code below works fine on PC:&lt;BR /&gt;
proc format ;&lt;BR /&gt;
 VALUE ZERO             &lt;BR /&gt;
        0 = ' '         &lt;BR /&gt;
    other = [commax15.] &lt;BR /&gt;
  ;                     &lt;BR /&gt;
RUN;                    &lt;BR /&gt;
&lt;BR /&gt;
BUT on mainframe not the formatted value is printed but the string [commax15.] &lt;BR /&gt;
&lt;BR /&gt;
any ideas?&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Herman</description>
      <pubDate>Mon, 06 Sep 2010 14:21:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/print-blank-instead-of-0/m-p/70231#M15198</guid>
      <dc:creator>Jaheuk</dc:creator>
      <dc:date>2010-09-06T14:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: print blank instead of 0</title>
      <link>https://communities.sas.com/t5/SAS-Programming/print-blank-instead-of-0/m-p/70232#M15199</link>
      <description>Share with us some SAS-generated log output that demonstrates the behavior you are encountering, with all of your SAS code revealed (that would include a formatted PUT in a DATA or PROC step output.  You will want to first desk-check to see if SAS has correctly applied your output FORMAT -- by doing a PROC CONTENTS against your SAS file.  What you have shown in your post is only a piece of what is required to make the process work -- now you need to convey what SAS code that references your format is not working for you.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Mon, 06 Sep 2010 14:25:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/print-blank-instead-of-0/m-p/70232#M15199</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-09-06T14:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: print blank instead of 0</title>
      <link>https://communities.sas.com/t5/SAS-Programming/print-blank-instead-of-0/m-p/70233#M15200</link>
      <description>NO errors appear in the log, format is used in proc report</description>
      <pubDate>Mon, 06 Sep 2010 14:32:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/print-blank-instead-of-0/m-p/70233#M15200</guid>
      <dc:creator>Jaheuk</dc:creator>
      <dc:date>2010-09-06T14:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: print blank instead of 0</title>
      <link>https://communities.sas.com/t5/SAS-Programming/print-blank-instead-of-0/m-p/70234#M15201</link>
      <description>Okay - now share all SAS code related to the problem, which would include your PROC REPORT code, otherwise it is a guessing game (whether or not the "mainframe" is involved).&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Mon, 06 Sep 2010 14:34:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/print-blank-instead-of-0/m-p/70234#M15201</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-09-06T14:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: print blank instead of 0</title>
      <link>https://communities.sas.com/t5/SAS-Programming/print-blank-instead-of-0/m-p/70235#M15202</link>
      <description>Jaheuk&lt;BR /&gt;
for me, "commax" indicates you are probably suffering a code-page issue in NLS (national language support) with the square brackets on zOS. &lt;BR /&gt;
I don't recall clearly but in SAS6 days (where I got most of my more-recent &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; experience of zOS-SAS) there was a work-around with iirc !( and !) or something like that. (in the last millennium!! the zOS keyboards I worked on did not support square brackets so SAS provided those alternatives.&lt;BR /&gt;
At &lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/63026/HTML/default/viewer.htm#a000205506.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/63026/HTML/default/viewer.htm#a000205506.htm&lt;/A&gt; the CHARCODE system option is documented describing how characters required by syntax but not on a "keyboard", can be achieved with a ?-combination.&lt;BR /&gt;
&lt;B&gt;&lt;I&gt;I was wrong about ?( and ?)&lt;/I&gt;&lt;/B&gt; That documentation shows it should be ?&amp;lt; and ?&amp;gt;&lt;BR /&gt;
 &lt;BR /&gt;
good luck&lt;BR /&gt;
peterC</description>
      <pubDate>Sat, 18 Sep 2010 10:22:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/print-blank-instead-of-0/m-p/70235#M15202</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2010-09-18T10:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: print blank instead of 0</title>
      <link>https://communities.sas.com/t5/SAS-Programming/print-blank-instead-of-0/m-p/70236#M15203</link>
      <description>Could you post the result of a&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc format fmtlib;&lt;BR /&gt;
  select zero;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
run on your mainframe? (In case I have the syntax wrong, the intent is to display the format definition as it was interpreted by SAS when the format was created).</description>
      <pubDate>Sat, 18 Sep 2010 22:50:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/print-blank-instead-of-0/m-p/70236#M15203</guid>
      <dc:creator>Robert_Bardos</dc:creator>
      <dc:date>2010-09-18T22:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: print blank instead of 0</title>
      <link>https://communities.sas.com/t5/SAS-Programming/print-blank-instead-of-0/m-p/70237#M15204</link>
      <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
May be what you observe is related to this issue:&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/35/029.html" target="_blank"&gt;http://support.sas.com/kb/35/029.html&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
And different OS could behave different (i.e. different patch levels).&lt;BR /&gt;
&lt;BR /&gt;
I would give the suggestions in the SAS note a go:&lt;BR /&gt;
"A possible circumvention for this issue is to assign a width on the FORMAT statement."&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick

Message was edited by: Patrick</description>
      <pubDate>Sun, 19 Sep 2010 01:15:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/print-blank-instead-of-0/m-p/70237#M15204</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2010-09-19T01:15:36Z</dc:date>
    </item>
  </channel>
</rss>

