<?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: Output displays Question mark &amp;quot;?&amp;quot;  in ods tagsets.excelxp using picture format in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Output-displays-Question-mark-quot-quot-in-ods-tagsets-excelxp/m-p/237131#M14765</link>
    <description>&lt;P&gt;First question, why do you need a format for that, just round()?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Secondly its likely that a special character is being interpreted. &amp;nbsp;This gets a bit tricky, and the cause is likely to be Excel. &amp;nbsp;Firstly, what does the underlying XML look like, open it in a proper hex editor and get the hex number of the character - &amp;gt; Excel does a great job of interpreting things behind the scenes, so don't trust what it is showing you. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Remember also that between the two operating systems there is differences, end of line for instance on Win is LF+CR, its only CR on Unix for example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A final thing to do is to specify the format on the report:&lt;/P&gt;
&lt;P&gt;define variable / "Variable" style={tagattr='format:0.00'};&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Dec 2015 09:31:11 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2015-12-01T09:31:11Z</dc:date>
    <item>
      <title>Output displays Question mark "?"  in ods tagsets.excelxp using picture format</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Output-displays-Question-mark-quot-quot-in-ods-tagsets-excelxp/m-p/237098#M14760</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have simple proc report where i calculate median for a given variable and than use picture format with round option to round it.&lt;/P&gt;&lt;P&gt;Using ODS i save results in excel and it shows no issue when i run code in interactive mode.&lt;/P&gt;&lt;P&gt;But when i run same code in non interactive mode (sas unix) i see "?" with values where i applied picture format.&lt;/P&gt;&lt;P&gt;Example &lt;STRONG&gt;48.24?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to get rid of "?" for values&amp;nbsp;from output. Below is sample code for reference.&lt;/P&gt;&lt;P&gt;i am using unix sas 9.2. Use exceed to run in interactive mode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample code&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;picture jjc&amp;nbsp;(round)&lt;/P&gt;&lt;P&gt;Low-high = ‘00.00’;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%MACRO Report_N;&lt;/P&gt;&lt;P&gt;Proc report data= work.Median nowd missing;&lt;/P&gt;&lt;P&gt;columns A&amp;nbsp;B&amp;nbsp;C&amp;nbsp;D&amp;nbsp;E &amp;nbsp;;&lt;/P&gt;&lt;P&gt;define A&amp;nbsp;/ order Group;&lt;/P&gt;&lt;P&gt;define B&amp;nbsp;/ analysis sum;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;define C/analysis median format=jjc.;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;define D/analysis median format=jjc.;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;define E/analysis median format=jjc.;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;compute after;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;Class='Total';&lt;/P&gt;&lt;P&gt;&amp;nbsp; endcomp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;rbreak after / summarize&amp;nbsp; dol dul ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;%MEND&amp;nbsp;&lt;SPAN&gt;Report_N&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;/******** Export &amp;nbsp;Results to Excel **************/&lt;/P&gt;&lt;P&gt;ODS tagsets.excelxp FILE="&amp;amp;outdir.&amp;amp;File_Name..xls";&lt;/P&gt;&lt;P&gt;&amp;nbsp;/* Tried both tagsets and ods html both shows "?" */&lt;/P&gt;&lt;P&gt;/*&lt;/P&gt;&lt;P&gt;filename out1 "&amp;amp;outdir.&amp;amp;File_Name..xls";&lt;/P&gt;&lt;P&gt;ods html body=out1 style=styles.noborder;&lt;/P&gt;&lt;P&gt;*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%&lt;SPAN&gt;Report_N&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 03:44:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Output-displays-Question-mark-quot-quot-in-ods-tagsets-excelxp/m-p/237098#M14760</guid>
      <dc:creator>sasuser101</dc:creator>
      <dc:date>2015-12-01T03:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Output displays Question mark "?"  in ods tagsets.excelxp using picture format</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Output-displays-Question-mark-quot-quot-in-ods-tagsets-excelxp/m-p/237131#M14765</link>
      <description>&lt;P&gt;First question, why do you need a format for that, just round()?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Secondly its likely that a special character is being interpreted. &amp;nbsp;This gets a bit tricky, and the cause is likely to be Excel. &amp;nbsp;Firstly, what does the underlying XML look like, open it in a proper hex editor and get the hex number of the character - &amp;gt; Excel does a great job of interpreting things behind the scenes, so don't trust what it is showing you. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Remember also that between the two operating systems there is differences, end of line for instance on Win is LF+CR, its only CR on Unix for example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A final thing to do is to specify the format on the report:&lt;/P&gt;
&lt;P&gt;define variable / "Variable" style={tagattr='format:0.00'};&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 09:31:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Output-displays-Question-mark-quot-quot-in-ods-tagsets-excelxp/m-p/237131#M14765</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-12-01T09:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Output displays Question mark "?"  in ods tagsets.excelxp using picture format</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Output-displays-Question-mark-quot-quot-in-ods-tagsets-excelxp/m-p/237197#M14767</link>
      <description>&lt;P&gt;You don't mention what your input data is but I think your picture needs work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With this code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
   input x;
   put x= jjc.;
datalines;
1
.1
100
100.5
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I get output of:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;x=1.00’
x=10’
x=
x=50’
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I suspect that Excel doesn't like the trailing ' .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 16:34:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Output-displays-Question-mark-quot-quot-in-ods-tagsets-excelxp/m-p/237197#M14767</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-12-01T16:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Output displays Question mark "?"  in ods tagsets.excelxp using picture format</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Output-displays-Question-mark-quot-quot-in-ods-tagsets-excelxp/m-p/237278#M14770</link>
      <description>The issue got resolved by fixing single quote on picture format. Apparently looks like single quote was treated as different character as it was tilted kinda 45 degrees(might be copied from different application by previous developer). i deleted and reentered single quote and i didn't see question marks in output. Thanks to your replies.</description>
      <pubDate>Tue, 01 Dec 2015 23:37:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Output-displays-Question-mark-quot-quot-in-ods-tagsets-excelxp/m-p/237278#M14770</guid>
      <dc:creator>sasuser101</dc:creator>
      <dc:date>2015-12-01T23:37:47Z</dc:date>
    </item>
  </channel>
</rss>

