<?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 Issues and Questions about Reports using ODSOUT Objects in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Issues-and-Questions-about-Reports-using-ODSOUT-Objects/m-p/34759#M5014</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; A few clarifications...not about everything...but about a few things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;By Microsoft design&lt;/STRONG&gt;&lt;/SPAN&gt;, Spreadsheet ML 2003 does not allow the inclusion of images into the XML file. So your choice to use TAGSETS.MSOFFICE2_K is a good one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ODS ESCAPECHAR syntax does NOT work with SAS/GRAPH. The only place it will work is in TITLES/FOOTNOTES and only if you use the NOGTITLE/NOGFOOTNOTE options to allow ODS and the destination to control the TITLES/FOOTNOTES. So I would not expect your attempt to use ODS ESCAPECHAR with the labels to work for PROC GKPI (or any SAS/GRAPH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I have put images into MSOFFICE2K files and am generally not pleased with the image placement. For example, if I have a table and a graph, it is entirely possible for the graph to not be placed or spaced entirely correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; As for the dot or object syntax...I don't use it often, since it is still experimental, so I can't help you there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; You might want to try Tech Support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 21 Jan 2012 05:40:08 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2012-01-21T05:40:08Z</dc:date>
    <item>
      <title>Issues and Questions about Reports using ODSOUT Objects</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Issues-and-Questions-about-Reports-using-ODSOUT-Objects/m-p/34758#M5013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a report that currently uses msoffice2k_x to output a multisheet workbook.&amp;nbsp; There are a few issues I have.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) If I try to use excelxp output instead or msoffice2k_x the XML contains no data when using the ODSOUT object.&amp;nbsp; The structure is there, but the data is missing.&lt;/P&gt;&lt;P&gt;2) The file when opened in excel (using msoffice2k_x) has a few issues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a. The spacing for the image isn't perfect, what can be done to improve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b. The second tab for the workbook reports and error, it gets recovered and the data is present, however the sheet name is missing ('Male')&lt;/P&gt;&lt;P&gt;3) If the below is ran through EG the Enterprise Guide with crash upon completion.&amp;nbsp; The job runs fine and outputs are created, no crash occurs when using SAS interactivly through Linux.&lt;/P&gt;&lt;P&gt;4) The color styling applied through the BMI format in the GKPI Proc is not applied to the Label as would be expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created the following code as a example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods listing close;&lt;/P&gt;&lt;P&gt;filename tmp '/temp';&lt;/P&gt;&lt;P&gt;ods tagsets.msoffice2k_x path=tmp file='temp.html' newfile=output style=listing options(graph_height='74' graph_width='180');&lt;/P&gt;&lt;P&gt;ods escapechar='~';&lt;/P&gt;&lt;P&gt;goptions reset=all device=javaimg xpixels=180 ypixels=74;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt; value $gndr&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'F'='F - Female'&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'M'='M - Male';&lt;/P&gt;&lt;P&gt; picture bmi (round fuzz=.09)&lt;/P&gt;&lt;P&gt;&amp;nbsp; low&amp;nbsp; - 18.4 = '00.0)' (prefix='~S={color=black}Underweight (')&lt;/P&gt;&lt;P&gt;&amp;nbsp; 18.5 - 24.9 = '00.0)' (prefix='~S={color=green}Normal (')&lt;/P&gt;&lt;P&gt;&amp;nbsp; 25&amp;nbsp;&amp;nbsp; - 29.9 = '00.0)' (prefix='~S={color=orange}Overweight (')&lt;/P&gt;&lt;P&gt;&amp;nbsp; 30&amp;nbsp;&amp;nbsp; - high = '00.0)' (prefix='~S={color=red}Obese (');&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt; create view class as&lt;/P&gt;&lt;P&gt; select * from sashelp.class order by sex;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt; if _n_=1 then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp; declare odsout o();&lt;/P&gt;&lt;P&gt;&amp;nbsp; call execute('ods tagsets.msoffice2k_x close;');&lt;/P&gt;&lt;P&gt;&amp;nbsp; call execute('ods html file="/temp/gkpi.html" gpath=tmp style=listing;');&lt;/P&gt;&lt;P&gt;&amp;nbsp; call execute('proc gkpi mode=raised;');&lt;/P&gt;&lt;P&gt; end;&lt;/P&gt;&lt;P&gt; set class end=eof;&lt;/P&gt;&lt;P&gt; by sex;&lt;/P&gt;&lt;P&gt; if first.sex then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp; tot_ht=0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; tot_wt=0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; cnt=0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; o.table_start();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; o.head_start();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; o.row_start();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; o.format_cell(data:'This is a spanned header',column_span:5,overrides:'font_weight=bold font_size=16pt just=c');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; o.row_end();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;o.row_start();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; o.format_cell(data:'Name',overrides:'just=l fontweight=bold');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; o.format_cell(data:'Age',overrides:'just=r fontweight=bold');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; o.format_cell(data:'Height',overrides:'just=r fontweight=bold');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; o.format_cell(data:'Weight',overrides:'just=r fontweight=bold');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; o.format_cell(data:'BMI',overrides:'just=c fontweight=bold cellwidth=1.9in');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; o.head_end();&lt;/P&gt;&lt;P&gt; end;&lt;/P&gt;&lt;P&gt; o.row_start();&lt;/P&gt;&lt;P&gt;&amp;nbsp; tot_ht+height;&lt;/P&gt;&lt;P&gt;&amp;nbsp; tot_wt+weight;&lt;/P&gt;&lt;P&gt;&amp;nbsp; cnt+1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if sex='M' then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; o.format_cell(data:name,overrides:'just=l color=blue');&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp; else do;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; o.format_cell(data:name,overrides:'just=l color=purple');&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp; o.format_cell(data:age,overrides:'just=r');&lt;/P&gt;&lt;P&gt;&amp;nbsp; o.format_cell(data:height,overrides:'just=r');&lt;/P&gt;&lt;P&gt;&amp;nbsp; o.format_cell(data:weight,overrides:'just=r');&lt;/P&gt;&lt;P&gt;&amp;nbsp; bmi=(weight*703)/(height**2);&lt;/P&gt;&lt;P&gt;&amp;nbsp; call execute('slider actual=' || put(bmi,5.2) || ' bounds=(0 18.5 25 30 40) / noavalue target=21.7 colors=(white yellow green red) name="' || strip(name) || '" label="' || put(bmi,bmi.) || '"; run;');&lt;/P&gt;&lt;P&gt;&amp;nbsp; o.cell_start(overrides:'vjust=c just=c cellwidth=1.9in cellheight=.8in');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; o.image(text:cats(name,'.png'));&lt;/P&gt;&lt;P&gt;&amp;nbsp; o.cell_end();&lt;/P&gt;&lt;P&gt; o.row_end();&lt;/P&gt;&lt;P&gt; if last.sex then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp; o.row_start();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; o.format_cell(data:'Average',column_span:2,overrides:'just=r fontweight=bold');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; o.format_cell(data:floor(tot_ht/cnt),overrides:'just=r');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; o.format_cell(data:floor(tot_wt/cnt),overrides:'just=r');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; call execute('slider actual=' || put(bmi,5.2) || ' bounds=(0 18.5 25 30 40) / noavalue target=21.7 colors=(white yellow green red) name="average" label="' || put(bmi,bmi.) || '"; run;');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; o.cell_start(overrides:'vjust=c just=c cellwidth=1.9in cellheight=.8in');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; o.image(text:'average.png');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; o.cell_end();&lt;/P&gt;&lt;P&gt;&amp;nbsp; o.row_end();&lt;/P&gt;&lt;P&gt;&amp;nbsp; o.body_end();&lt;/P&gt;&lt;P&gt;&amp;nbsp; o.foot_start();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; o.row_start();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; o.format_cell(data:'This is a spanned footer',column_span:5,overrides:'just=c');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; o.row_end();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; o.row_start();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; o.format_cell(data:'Here is some other information:',column_span:5,overrides:'just=c color=white background=black font_size=16pt');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; o.row_end();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; o.row_start();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; o.format_cell(data:"~S={URL='http:\\www.sas.com'}I Made This With SAS",column_span:5);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; o.row_end();&lt;/P&gt;&lt;P&gt;&amp;nbsp; o.foot_end();&lt;/P&gt;&lt;P&gt;&amp;nbsp; o.table_end();&lt;/P&gt;&lt;P&gt; end;&lt;/P&gt;&lt;P&gt; if eof then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp; call execute('quit;');&lt;/P&gt;&lt;P&gt;&amp;nbsp; call execute('ods html close;');&lt;/P&gt;&lt;P&gt;&amp;nbsp; stop;&lt;/P&gt;&lt;P&gt; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods tagsets.msoffice2k_x file='/temp/temp.xls'&lt;/P&gt;&lt;P&gt; options( worksheet_source="Female#temp.html,Male#temp1.html" );&lt;/P&gt;&lt;P&gt;ods tagsets.msoffice2k_x close;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached a copy of the final output, as I see it, converted to XLS in Excel after opening the temp.xls file produced in the final step above (to avoid uploading the 19 image files, 2 html files and msoffice2k_x generated xls file).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 22:23:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Issues-and-Questions-about-Reports-using-ODSOUT-Objects/m-p/34758#M5013</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2012-01-20T22:23:19Z</dc:date>
    </item>
    <item>
      <title>Issues and Questions about Reports using ODSOUT Objects</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Issues-and-Questions-about-Reports-using-ODSOUT-Objects/m-p/34759#M5014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; A few clarifications...not about everything...but about a few things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;By Microsoft design&lt;/STRONG&gt;&lt;/SPAN&gt;, Spreadsheet ML 2003 does not allow the inclusion of images into the XML file. So your choice to use TAGSETS.MSOFFICE2_K is a good one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ODS ESCAPECHAR syntax does NOT work with SAS/GRAPH. The only place it will work is in TITLES/FOOTNOTES and only if you use the NOGTITLE/NOGFOOTNOTE options to allow ODS and the destination to control the TITLES/FOOTNOTES. So I would not expect your attempt to use ODS ESCAPECHAR with the labels to work for PROC GKPI (or any SAS/GRAPH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I have put images into MSOFFICE2K files and am generally not pleased with the image placement. For example, if I have a table and a graph, it is entirely possible for the graph to not be placed or spaced entirely correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; As for the dot or object syntax...I don't use it often, since it is still experimental, so I can't help you there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; You might want to try Tech Support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jan 2012 05:40:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Issues-and-Questions-about-Reports-using-ODSOUT-Objects/m-p/34759#M5014</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-01-21T05:40:08Z</dc:date>
    </item>
    <item>
      <title>Issues and Questions about Reports using ODSOUT Objects</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Issues-and-Questions-about-Reports-using-ODSOUT-Objects/m-p/34760#M5015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Cynthia, it is good to know about the XML restriction of image links.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really like the object syntax for ODS.&amp;nbsp; I find it most handy when creating documents like client invoices or customized newsletters, etc.&amp;nbsp; It works best with PDF output in my experience.&amp;nbsp; The only template that has ever given me issues is TAGSETS.EXCELXP.&amp;nbsp; Typicall for a rather straight forward report this this one I still find proc report to be a more simplistic and reliable solution, but I wanted to post an example I could throw together quickly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as the EG crashing is concerned I do plan to contact tech support, it is not often I see a hard fault from this application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jan 2012 05:55:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Issues-and-Questions-about-Reports-using-ODSOUT-Objects/m-p/34760#M5015</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2012-01-21T05:55:56Z</dc:date>
    </item>
  </channel>
</rss>

