<?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: excel in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/excel/m-p/184152#M12784</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; But, behind the scenes %stpbegin and %stpend are using ODS. This question would be better posted in the Stored Process forum or worked with Tech Support. When you use a stored process, you RARELY need to change the STPSRV_HEADER type. And, generally, STPSRV_HEADER is only used by web-based clients. So if you are running the SP in Excel (using the SAS Add-in for Office) or in EG, it is entirely possible that the STPSRV_HEADER is being ignored. Grid lines come from either the client application's rendering of the stored process results based on the style used by the stored process. The default style is set by %stpbegin, based on the client application. My recommendation would be that you open a track with Tech Support. Figuring out your client application, your default style, your reason for using STPSRV_HEADER seems complicated for a forum posting and if your Platform settings are different from someone else's the chances are good that their suggestions won't be of much use to you.&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Jan 2015 20:57:58 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2015-01-15T20:57:58Z</dc:date>
    <item>
      <title>excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/excel/m-p/184151#M12783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using below in 9.4 stored process&lt;/P&gt;&lt;P&gt;Selected Execution result is both Stream and Package&lt;/P&gt;&lt;P&gt;code: &lt;/P&gt;&lt;P&gt;*ProcessBody;&lt;/P&gt;&lt;P&gt;ods listing close;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt; rc= stpsrv_header('Content-type', 'text/plain');&lt;/P&gt;&lt;P&gt; rc= stpsrv_header('Content-disposition', 'attachment;&lt;/P&gt;&lt;P&gt; filename= Admin - User and their roles.xls');&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;%stpbegin;&lt;/P&gt;&lt;P&gt;proc report data=test;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;%stpend;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not using any ods statements in above stored process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting result in excel with exact column width, but not seeing grid lines as attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11340iF1A90C5248ECFDA8/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="grid lines.png" title="grid lines.png" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 11:36:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/excel/m-p/184151#M12783</guid>
      <dc:creator>sunilreddy</dc:creator>
      <dc:date>2015-01-15T11:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/excel/m-p/184152#M12784</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; But, behind the scenes %stpbegin and %stpend are using ODS. This question would be better posted in the Stored Process forum or worked with Tech Support. When you use a stored process, you RARELY need to change the STPSRV_HEADER type. And, generally, STPSRV_HEADER is only used by web-based clients. So if you are running the SP in Excel (using the SAS Add-in for Office) or in EG, it is entirely possible that the STPSRV_HEADER is being ignored. Grid lines come from either the client application's rendering of the stored process results based on the style used by the stored process. The default style is set by %stpbegin, based on the client application. My recommendation would be that you open a track with Tech Support. Figuring out your client application, your default style, your reason for using STPSRV_HEADER seems complicated for a forum posting and if your Platform settings are different from someone else's the chances are good that their suggestions won't be of much use to you.&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 20:57:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/excel/m-p/184152#M12784</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2015-01-15T20:57:58Z</dc:date>
    </item>
  </channel>
</rss>

