<?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: Proc Report ods excel content issue in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-ods-excel-content-issue/m-p/576455#M23067</link>
    <description>Hi Ballardw,&lt;BR /&gt;&lt;BR /&gt;I attached on my first post code and result.&lt;BR /&gt;Many thanks for your replay.</description>
    <pubDate>Thu, 25 Jul 2019 06:07:29 GMT</pubDate>
    <dc:creator>mmilbrant</dc:creator>
    <dc:date>2019-07-25T06:07:29Z</dc:date>
    <item>
      <title>Proc Report ods excel content issue</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-ods-excel-content-issue/m-p/576115#M23054</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please check my issue with Proc Report Sas.&lt;/P&gt;&lt;P&gt;I'm using SAS 9.4 Entrprise Guide 7.15 HF7.&lt;/P&gt;&lt;P&gt;I'm trying save report in excel but one column is out of report.&lt;/P&gt;&lt;P&gt;Is some restrictions for max columns in report? I didn't find information about it.&lt;/P&gt;&lt;P&gt;Is not matter what is the column, always last is in AZ Excel.&lt;/P&gt;&lt;P&gt;When I choose less columns in report then everything is ok.&lt;/P&gt;&lt;P&gt;In sas report result look fine.&lt;/P&gt;&lt;P&gt;I attached xlsx file and sas program with code (is nothing special but maybe will be helpful for you to find issue).&lt;/P&gt;&lt;P&gt;Many thanks for your support.&lt;/P&gt;&lt;P&gt;I have one warring for below code: &lt;EM&gt;'WARNING 1-322: Assuming the symbol SUMMARIZE was misspelled as sumarize.'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename Report "\\fs01\usersbs\mariusz.milbrant\testOdsrent\rent_sas.xlsx";
ods excel file= Report
options(embedded_titles='yes'frozen_headers='yes');
title "Client Rent &amp;amp;id_klient for the period &amp;amp;rok_p._&amp;amp;miesiac_pod - &amp;amp;rok_k._&amp;amp;miesiac_kdo";
proc report data=work.rent_client spanrows ;
Options missing=0;
col year month net_rofit net_cost profit_cost margin
	net_rofit_worker net_cost_worker profit_cost_worker marigin_worker
	net_rofit_compain_person net_cost_compain_person profit_cost_compain_person	margin_compain_person
	net_rofit_kids	net_cost_kids profit_cost_kids margin_kids
	net_rofit_child net_cost_child profit_cost_child margin_child
	net_rofit_senior net_cost_senior profit_cost_senior	margin_senior;

define year / group style(column)={vjust=center just=center};
define month / group style(column)={vjust=center just=center};

define net_rofit / sum format=comma18.2;
define net_cost /sum format=comma18.2;
define profit_cost / computed format=comma18.2;
define margin / computed format= percentn10.2;

define net_rofit_worker /sum format=comma18.2;
define net_cost_worker /sum format=comma18.2;
define profit_cost_worker /computed format=comma18.2;
define marigin_worker / computed format= percentn10.2;

define net_rofit_compain_person /sum format=comma18.2;
define net_cost_compain_person /sum format=comma18.2;
define profit_cost_compain_person /computed format=comma18.2;
define margin_compain_person / computed format= percentn10.2;

define net_rofit_kids /sum format=comma18.2;
define net_cost_kids /sum format=comma18.2;
define profit_cost_kids /computed format=comma18.2;
define margin_kids / computed format= percentn10.2;

define net_rofit_child /sum format=comma18.2;
define net_cost_child /sum format=comma18.2;
define profit_cost_child /computed format=comma18.2;
define margin_child / computed format= percentn10.2;

define net_rofit_senior /sum format=comma18.2;
define net_cost_senior /sum format=comma18.2;
define profit_cost_senior /computed format=comma18.2;
define margin_senior / computed format= percentn10.2;

rbreak after /sumarize ;
compute profit_cost;
profit_cost=net_rofit.sum-net_cost.sum;
endcomp;
compute margin;
margin=((net_rofit.sum-net_cost.sum) / net_rofit.sum);
endcomp;

compute profit_cost_worker;
profit_cost_worker=net_rofit_worker.sum-net_cost_worker.sum;
endcomp;
compute marigin_worker;
marigin_worker=((net_rofit_worker.sum-net_cost_worker.sum)/net_rofit_worker.sum);
endcomp;

compute profit_cost_compain_person;
profit_cost_compain_person=net_rofit_compain_person.sum-net_cost_compain_person.sum;
endcomp;
compute margin_compain_person;
margin_compain_person=((net_rofit_compain_person.sum-net_cost_compain_person.sum)/net_rofit_compain_person.sum);
endcomp;

compute profit_cost_kids;
profit_cost_kids=net_rofit_kids.sum-net_cost_kids.sum;
endcomp;
compute margin_kids;
margin_kids=((net_rofit_kids.sum-net_cost_kids.sum)/net_rofit_kids.sum);
endcomp;

compute profit_cost_child;;
profit_cost_child=net_rofit_child.sum-net_cost_child.sum;
endcomp;
compute margin_child;
margin_child=((net_rofit_child.sum-net_cost_child.sum)/net_rofit_child.sum);
endcomp;

compute profit_cost_senior;
profit_cost_senior=net_rofit_senior.sum-net_cost_senior.sum;
endcomp;
compute margin_senior;
margin_senior=((net_rofit_senior.sum-net_cost_senior.sum)/net_rofit_senior.sum);
endcomp;

run;
ods excel close;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;There is result of xlsx file.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="img.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31282iB8E0842F56D1AC49/image-size/large?v=v2&amp;amp;px=999" role="button" title="img.PNG" alt="img.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best Regards Mariusz.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 06:06:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-ods-excel-content-issue/m-p/576115#M23054</guid>
      <dc:creator>mmilbrant</dc:creator>
      <dc:date>2019-07-25T06:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report ods excel content issue</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-ods-excel-content-issue/m-p/576219#M23055</link>
      <description>&lt;P&gt;Please post code or log&amp;nbsp;in code boxes on the forum opened using the forum's {I} or "running man" icon.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What did the log show?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Without data we can't tell anything that may have gone wrong, especially will that long of a proc report code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 15:49:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-ods-excel-content-issue/m-p/576219#M23055</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-07-24T15:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report ods excel content issue</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-ods-excel-content-issue/m-p/576455#M23067</link>
      <description>Hi Ballardw,&lt;BR /&gt;&lt;BR /&gt;I attached on my first post code and result.&lt;BR /&gt;Many thanks for your replay.</description>
      <pubDate>Thu, 25 Jul 2019 06:07:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-ods-excel-content-issue/m-p/576455#M23067</guid>
      <dc:creator>mmilbrant</dc:creator>
      <dc:date>2019-07-25T06:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report ods excel content issue</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-ods-excel-content-issue/m-p/576694#M23087</link>
      <description>&lt;P&gt;&lt;STRONG&gt;INPUT &lt;/STRONG&gt;data is needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 17:00:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-ods-excel-content-issue/m-p/576694#M23087</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-07-25T17:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report ods excel content issue</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-ods-excel-content-issue/m-p/577316#M23108</link>
      <description>&lt;P&gt;Here you are sashelp table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;filename Report "\\your destination file";
ods excel file= Report
options(embedded_titles='yes'frozen_headers='yes');
title "test sas community";
proc report data=SASHELP.LEUTRAIN spanrows ;
col y x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15 x16 x17 x18 x19 x20 x21 x22 x23 x24 x25 x26 x27;
run;
ods excel close;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="imgissue1.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31349i3DF58BF8C4B626F9/image-size/large?v=v2&amp;amp;px=999" role="button" title="imgissue1.PNG" alt="imgissue1.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="imgissue.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31348iF6CD7D3A7D88D133/image-size/large?v=v2&amp;amp;px=999" role="button" title="imgissue.PNG" alt="imgissue.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 10:54:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-ods-excel-content-issue/m-p/577316#M23108</guid>
      <dc:creator>mmilbrant</dc:creator>
      <dc:date>2019-07-29T10:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report ods excel content issue</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-ods-excel-content-issue/m-p/578256#M23109</link>
      <description>&lt;P&gt;You might be using an older version of SAS.&amp;nbsp; I remember seeing that issue with ODS Excel several years ago, perhaps in SAS 9.4 maintenance release 1?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using the test code you provided, the last column of data in the spreadsheet is the value of x27 in column AB.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The screen shot below shows that there aren't any blank columns between x24 and x25.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAS 9.4 Maintenance Release 6 produces correct output for ODS Excel destination" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31451iAC87F3B03215330C/image-size/large?v=v2&amp;amp;px=999" role="button" title="SAS 94M6 produces correct output for ODS Excel destination.jpg" alt="SAS 9.4 Maintenance Release 6 produces correct output for ODS Excel destination" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;SAS 9.4 Maintenance Release 6 produces correct output for ODS Excel destination&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2019 02:39:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-ods-excel-content-issue/m-p/578256#M23109</guid>
      <dc:creator>SuzanneDorinski</dc:creator>
      <dc:date>2019-08-01T02:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report ods excel content issue</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-ods-excel-content-issue/m-p/580168#M23159</link>
      <description>&lt;P&gt;That sample code works on my SAS system:&lt;/P&gt;&lt;P&gt;SAS 9.4 TS1M3&lt;/P&gt;&lt;P&gt;Using SAS EG with a SAS grid running on a linux server&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 15:14:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-ods-excel-content-issue/m-p/580168#M23159</guid>
      <dc:creator>DWilson</dc:creator>
      <dc:date>2019-08-09T15:14:22Z</dc:date>
    </item>
  </channel>
</rss>

