<?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: ODS Excel and Pretext and ASIS in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-and-Pretext-and-ASIS/m-p/272278#M15934</link>
    <description>&lt;P&gt;I used the code from that SAS Knowledge Base note you referenced. &amp;nbsp;The note suggests a workaround using the MSOffice2K tagset. I ran that PROC REPORT code using the ODS Excel destination in SAS University Edition, and it works! &amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the code I tried:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
%let path=/folders/myfolders/ODS Excel examples;

ODS EXCEL FILE="&amp;amp;path/Use ASIS=ON.xlsx";
 
proc report data=sashelp.cars nowd;  
   col origin cylinders mpg_highway mpg_city;
   define origin        / group;
   define cylinders     / group;
   define mpg_highway   / mean format=4.; 
   define mpg_city      / mean format=4.;  
                            
   compute origin;    
      if origin ne "Europe" then do; 
         call define(_col_,"style","style={pretext='   ' asis=on}"); 
      end; 
   endcomp; 
run;

ODS EXCEL CLOSE;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And this is the output:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/3283i96D0502A2E0E822C/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="Use ASIS=ON in ODS Excel.jpg" title="Use ASIS=ON in ODS Excel.jpg" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 21 May 2016 21:42:09 GMT</pubDate>
    <dc:creator>SuzanneDorinski</dc:creator>
    <dc:date>2016-05-21T21:42:09Z</dc:date>
    <item>
      <title>ODS Excel and Pretext and ASIS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-and-Pretext-and-ASIS/m-p/269529#M15853</link>
      <description>&lt;P&gt;In 9.4M3, ODS EXCEL is new.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Previously, ODS Tagsets.ExcelXP has been the mainstay for generating Excel spreadsheet. &amp;nbsp;I would like to refer to SAS KB &lt;A href="http://support.sas.com/kb/44/126.html" target="_blank"&gt;#44126&lt;/A&gt; "ASIS=ON does not maintain leading or trailing blanks in the output generated by the ExcelXP tagset".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It appears that ODS EXCEL still does not honor ASIS=ON or PRETEXT options in the CALL DEFINE statement. &amp;nbsp;If so, I would have to continue to use Tagsets.ExcelXP? &amp;nbsp;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 17:50:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-and-Pretext-and-ASIS/m-p/269529#M15853</guid>
      <dc:creator>CurtisER</dc:creator>
      <dc:date>2016-05-10T17:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel and Pretext and ASIS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-and-Pretext-and-ASIS/m-p/272278#M15934</link>
      <description>&lt;P&gt;I used the code from that SAS Knowledge Base note you referenced. &amp;nbsp;The note suggests a workaround using the MSOffice2K tagset. I ran that PROC REPORT code using the ODS Excel destination in SAS University Edition, and it works! &amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the code I tried:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
%let path=/folders/myfolders/ODS Excel examples;

ODS EXCEL FILE="&amp;amp;path/Use ASIS=ON.xlsx";
 
proc report data=sashelp.cars nowd;  
   col origin cylinders mpg_highway mpg_city;
   define origin        / group;
   define cylinders     / group;
   define mpg_highway   / mean format=4.; 
   define mpg_city      / mean format=4.;  
                            
   compute origin;    
      if origin ne "Europe" then do; 
         call define(_col_,"style","style={pretext='   ' asis=on}"); 
      end; 
   endcomp; 
run;

ODS EXCEL CLOSE;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And this is the output:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/3283i96D0502A2E0E822C/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="Use ASIS=ON in ODS Excel.jpg" title="Use ASIS=ON in ODS Excel.jpg" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 May 2016 21:42:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-and-Pretext-and-ASIS/m-p/272278#M15934</guid>
      <dc:creator>SuzanneDorinski</dc:creator>
      <dc:date>2016-05-21T21:42:09Z</dc:date>
    </item>
  </channel>
</rss>

