<?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 ODS Excel max number of columns in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-max-number-of-columns/m-p/599114#M23418</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using ODS Excel to export a dataset into Excel. The dataset has 30 columns and 2000+ rows. Proc Report displays the dataset properly however, when opening the Excel file not all columns are being displayed. Out of the 30 columns only 25 columns are showing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a max number of columns that ODS Excel can accommodate? Any workaround to this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Barns&lt;/P&gt;</description>
    <pubDate>Thu, 24 Oct 2019 19:57:13 GMT</pubDate>
    <dc:creator>barnardmv</dc:creator>
    <dc:date>2019-10-24T19:57:13Z</dc:date>
    <item>
      <title>ODS Excel max number of columns</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-max-number-of-columns/m-p/599114#M23418</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using ODS Excel to export a dataset into Excel. The dataset has 30 columns and 2000+ rows. Proc Report displays the dataset properly however, when opening the Excel file not all columns are being displayed. Out of the 30 columns only 25 columns are showing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a max number of columns that ODS Excel can accommodate? Any workaround to this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Barns&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 19:57:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-max-number-of-columns/m-p/599114#M23418</guid>
      <dc:creator>barnardmv</dc:creator>
      <dc:date>2019-10-24T19:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel max number of columns</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-max-number-of-columns/m-p/599115#M23419</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;when opening the Excel file not all columns are being displayed&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Be specific, or show us.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Also show us the code you used to turn PROC REPORT into Excel.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 17:54:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-max-number-of-columns/m-p/599115#M23419</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-10-24T17:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel max number of columns</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-max-number-of-columns/m-p/599116#M23420</link>
      <description>&lt;P&gt;You should show the Proc report code and the method you are sending the results to Excel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Partially because you say "export a dataset" and "Proc Report displays the dataset". Export and Report are not always the same thing. Also it is possible with ODS Excel options to do all sorts of things to rows and columns that can affect the result.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 17:54:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-max-number-of-columns/m-p/599116#M23420</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-10-24T17:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel max number of columns</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-max-number-of-columns/m-p/599126#M23421</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the Proc report that I used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods Excel&lt;BR /&gt;file="&amp;amp;rpt_location./&amp;amp;report_cadetail."&lt;BR /&gt;options (absolute_column_width="20,20,40,20,50,20,20,50,20,20,20,20,20,20,25,25,25,25,25,25,25,25,25,30,30,30,30,30,30,30"&lt;BR /&gt;sheet_name='Detail exceptions' frozen_headers = 'on' autofilter = 'all' sheet_interval = 'none'&lt;BR /&gt;suppress_bylines='yes' embedded_titles='yes' embedded_footnotes='yes'&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc report data = report_ca_other_excp&lt;BR /&gt;style(column)=[tagattr="wrap:yes" cellwidth=1000% vjust=top ] ;&lt;BR /&gt;options missing='';&lt;BR /&gt;title justify= left "CA -&amp;nbsp; Report";&lt;BR /&gt;columns _ALL_;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ods Excel close;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 19:10:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-max-number-of-columns/m-p/599126#M23421</guid>
      <dc:creator>barnardmv</dc:creator>
      <dc:date>2019-10-24T19:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel max number of columns</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-max-number-of-columns/m-p/599128#M23422</link>
      <description>&lt;P&gt;Hi Paige,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I have 30 fields from the dataset but in Excel it only shows 25 fileds.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 19:12:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-max-number-of-columns/m-p/599128#M23422</guid>
      <dc:creator>barnardmv</dc:creator>
      <dc:date>2019-10-24T19:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel max number of columns</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-max-number-of-columns/m-p/599134#M23423</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I am not observing this behavior. When I use SASHELP.CLASS to make some wide data (43 columns), Excel displays all 43 columns as shown below (greatly zoomed out to see all 43 columns):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="all_visible_columns43.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/33386iFBF407B0580CA1F2/image-size/large?v=v2&amp;amp;px=999" role="button" title="all_visible_columns43.png" alt="all_visible_columns43.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here's the test code I ran:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data widedata (drop=i);
  set sashelp.class;
  array yval y2019-y2040;
  ** make 22 extra columns;
  do i = 1 to 22 by 1;
     if i = 1 then yval(i)=age;
     else yval(i) = sum(yval(i-1) + 1);
  end;
  ** make more columns until have more than 40 in total;
  age_2 = age;
  height_2 = height;
  weight_2 = weight;
  name_2 = catt('2~',name);
  age_3 = age;
  height_3 = height;
  weight_3 = weight;
  name_3 = catt('3~',name);
  age_4 = age;
  height_4 = height;
  weight_4 = weight;
  name_4 = catt('4~',name);
  age_5 = age;
  height_5 = height;
  weight_5 = weight;
  name_5 = catt('5~',name);
run;
  
ods excel file='c:\temp\widedata.xlsx';
proc report data=widedata;
  column name age height weight sex
         y2019-y2040 age_2 height_2 weight_2 name_2 
         age_3 height_3 weight_3 name_3
         age_4 height_4 weight_4 name_4
		 age_5 height_5 weight_5 name_5;
run;
ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should be able to run the code since it uses SASHELP.CLASS. If your test does not show all the columns when you open the file with Excel, then that is an issue to report to Tech Support. My Excel columns range from column A to column AQ -- and as you can see the data in column AQ is the number 5 concatenated to the name, as shown in the column statement. So no columns have been dropped by SAS or Excel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 19:21:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-max-number-of-columns/m-p/599134#M23423</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-10-24T19:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel max number of columns</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-max-number-of-columns/m-p/599145#M23424</link>
      <description>&lt;P&gt;Hi Cynthia,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried the code you provided and it does show all columns. However, when I tried it with a dataset with 2000+ rows then that's the time some of the fields drop off.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Barns&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 19:48:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-max-number-of-columns/m-p/599145#M23424</guid>
      <dc:creator>barnardmv</dc:creator>
      <dc:date>2019-10-24T19:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel max number of columns</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-max-number-of-columns/m-p/599155#M23425</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Again, that is not what I observe. I modified my program just a bit to create 2850 total rows or observations and still got my 43 columns in the Excel sheet, as shown below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="over_2k.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/33387iBBF43DF2CB4AE252/image-size/large?v=v2&amp;amp;px=999" role="button" title="over_2k.png" alt="over_2k.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 20:29:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-max-number-of-columns/m-p/599155#M23425</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-10-24T20:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel max number of columns</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-max-number-of-columns/m-p/599158#M23426</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/296697"&gt;@barnardmv&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I have 30 fields from the dataset but in Excel it only shows 25 fileds.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Show us so we can see for ourselves what you see.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 20:48:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-max-number-of-columns/m-p/599158#M23426</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-10-24T20:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel max number of columns</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-max-number-of-columns/m-p/599347#M23428</link>
      <description>&lt;P&gt;Cynthia,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the release of SAS are you running this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what we have.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%put &amp;amp;sysvlong&lt;BR /&gt;&lt;BR /&gt;9.04.01M3P062415&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've used the tagset.excelpxp to do this as a workaround and I do not have the same issue. All 30 fields are exported in Excel when using ODS tagset.excelxp.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2019 14:36:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-max-number-of-columns/m-p/599347#M23428</guid>
      <dc:creator>barnardmv</dc:creator>
      <dc:date>2019-10-25T14:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel max number of columns</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-max-number-of-columns/m-p/599367#M23429</link>
      <description>Hi: I am using 9.4 both M5 and M6 on different machines. I no longer have 9.4M3 to test with. Since the issue does NOT exist for me with ODS EXCEL my guess is that IF it is a bug, it was fixed in a later release.&lt;BR /&gt;&lt;BR /&gt;Cynthia</description>
      <pubDate>Fri, 25 Oct 2019 15:22:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-max-number-of-columns/m-p/599367#M23429</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-10-25T15:22:33Z</dc:date>
    </item>
  </channel>
</rss>

