<?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: Take time to open XLS spread sheet. in Microsoft Integration with SAS</title>
    <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Take-time-to-open-XLS-spread-sheet/m-p/4413#M172</link>
    <description>Thanks Cynthia,&lt;BR /&gt;
I want to make sure that I am using right SAS version.&lt;BR /&gt;
&lt;BR /&gt;
My SAS version is : SAS (r) 9.1 (TS1M3)&lt;BR /&gt;
OS : Windows 2000.&lt;BR /&gt;
HardWare Pentium : Intel(R) Pentium(R)M Processor 1.60Hz.&lt;BR /&gt;
Ram: 1 Gb.</description>
    <pubDate>Thu, 30 Aug 2007 14:11:44 GMT</pubDate>
    <dc:creator>Inp</dc:creator>
    <dc:date>2007-08-30T14:11:44Z</dc:date>
    <item>
      <title>Take time to open XLS spread sheet.</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Take-time-to-open-XLS-spread-sheet/m-p/4411#M170</link>
      <description>Hi  I have ran with the following code with 30,000 records and it took only 12 sec , but I am not able to open the xls file and take so long to open a file with 5000 records. When I changed ods msoffice2k to ExcelXP and removed all fomatting in the proc report and ran with 30,000 records, it took 4 hours to run the program. Can any one give advice, how can I optimize this time issue or any thing wrong with my coding?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
LIBNAME mylib 'C:\TEMP';&lt;BR /&gt;
ods tagsets.msoffice2K path="C\TEMP" file=FILENAME.XLS rs=none&lt;BR /&gt;
	style=minimal options(doc='QUICK'&lt;BR /&gt;
						  Sheet_Name='Report'&lt;BR /&gt;
						  Orientation='LANDSCAPE'&lt;BR /&gt;
						  Embedded_Titles='YES'&lt;BR /&gt;
						  Embed_Titles_Once='YES'&lt;BR /&gt;
						  Suppress_Bylines='YES'&lt;BR /&gt;
						  Sheet_Interval='NONE'&lt;BR /&gt;
						  Convert_Percentages='YES'&lt;BR /&gt;
						  Skip_Space='3,0,1,1,1'&lt;BR /&gt;
						  Absolute_Column_Width='40,7,12,9,9,9,10,7,10,9,9,10,9,9,9,9,9,9,9'&lt;BR /&gt;
						 );&lt;BR /&gt;
   run;&lt;BR /&gt;
TITLE;&lt;BR /&gt;
OPTIONS NOBYLINE;&lt;BR /&gt;
PROC REPORT DATA=mylib.INDATA NOWINDOWS;&lt;BR /&gt;
   COLUMN VAR1 VAR2 VAR3 VAR4 VAR5 VAR6 VAR7 VAR8&lt;BR /&gt;
          VAR9 VAR10 VAR11 VAR12 VAR13 VAR14 VAR15 VAR16&lt;BR /&gt;
          VAR17 VAR18 VAR19;&lt;BR /&gt;
   DEFINE VAR1  / DISPLAY 'VAR1' &lt;BR /&gt;
		STYLE(COLUMN)={HTMLSTYLE='mso-number-format:00000'};&lt;BR /&gt;
   DEFINE VAR2  / DISPLAY 'VAR2';&lt;BR /&gt;
   DEFINE VAR3  / DISPLAY 'VAR3' &lt;BR /&gt;
		STYLE(COLUMN)={HTMLSTYLE='mso-number-format:000000000000'};&lt;BR /&gt;
   DEFINE VAR4    / DISPLAY 'VAR4';&lt;BR /&gt;
   DEFINE VAR5  / DISPLAY 'VAR5';&lt;BR /&gt;
   DEFINE VAR6    / DISPLAY 'VAR6' FORMAT=COMMA13.;&lt;BR /&gt;
   DEFINE VAR7 / DISPLAY 'VAR7';&lt;BR /&gt;
   DEFINE VAR8 / DISPLAY 'VAR8' &lt;BR /&gt;
		STYLE(COLUMN)={HTMLSTYLE='mso-number-format:00000'};&lt;BR /&gt;
   DEFINE VAR9  / DISPLAY 'VAR9';&lt;BR /&gt;
   DEFINE VAR10      / DISPLAY 'VAR10';&lt;BR /&gt;
   DEFINE VAR11   / DISPLAY 'VAR11';&lt;BR /&gt;
   DEFINE VAR12  / DISPLAY 'VAR12' &lt;BR /&gt;
		STYLE(COLUMN)={HTMLSTYLE='mso-number-format:000000000000'};&lt;BR /&gt;
   DEFINE VAR13 / DISPLAY 'VAR13';&lt;BR /&gt;
   DEFINE VAR14  / DISPLAY 'VAR14';&lt;BR /&gt;
   DEFINE VAR15     / DISPLAY 'VAR15';&lt;BR /&gt;
   DEFINE VAR16  / DISPLAY 'VAR16';&lt;BR /&gt;
   DEFINE VAR17 / DISPLAY 'VAR17';&lt;BR /&gt;
   DEFINE VAR18 / DISPLAY 'VAR18';&lt;BR /&gt;
   DEFINE VAR19 / DISPLAY 'VAR19';&lt;BR /&gt;
RUN;&lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
ods listing;&lt;BR /&gt;
ods results;&lt;BR /&gt;
ods trace off;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
&lt;BR /&gt;
Inp</description>
      <pubDate>Wed, 29 Aug 2007 21:49:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Take-time-to-open-XLS-spread-sheet/m-p/4411#M170</guid>
      <dc:creator>Inp</dc:creator>
      <dc:date>2007-08-29T21:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Take time to open XLS spread sheet.</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Take-time-to-open-XLS-spread-sheet/m-p/4412#M171</link>
      <description>Hi:&lt;BR /&gt;
  You might consider contacting Tech Support for more help. At a quick glance, I note the following:&lt;BR /&gt;
1) TAGSETS.MSOFFICE2K will NOT give you any error message on the use of ExcelXP options, but it will not use any of the ExcelXP options.&lt;BR /&gt;
&lt;BR /&gt;
2) This is incorrect: path="C\TEMP" or else it's a typo...you need it to be &lt;B&gt;"C:\Temp"&lt;/B&gt; (with a colon after the drive letter).&lt;BR /&gt;
&lt;BR /&gt;
3) this is also incorrect:  file=FILENAME.XLS &lt;BR /&gt;
If you are specifying a file name, then you need to have the name in quotes: &lt;B&gt; file="FILENAME.XLS" &lt;/B&gt; OR you need to have this:&lt;BR /&gt;
 &lt;BR /&gt;
4) HTMLSTYLE= override is the correct override for TAGSETS.MSOFFICE2K to send Microsoft formats to Excel. However, when you use TAGSETS.EXCELXP, you have to use the TAGATTR= style override to pass a Microsoft format from ODS to Excel.&lt;BR /&gt;
[pre]&lt;BR /&gt;
filename mywb 'c:\temp\mywb.xls';&lt;BR /&gt;
ods tagsets.msoffice2k path='c:\temp' file=mywb;&lt;BR /&gt;
[/pre] &lt;BR /&gt;
 &lt;BR /&gt;
When I ran a quick test using both tagsets on a 30000 obs, 19 var file, I did not see outrageous response times (see attached log)&lt;BR /&gt;
[pre]&lt;BR /&gt;
44176  data bigfile(keep=name age height weight var1-var15);&lt;BR /&gt;
44177    set sashelp.class;&lt;BR /&gt;
44178    var1 = age;&lt;BR /&gt;
44179    var2 = age;&lt;BR /&gt;
44180    var3 = age;&lt;BR /&gt;
44181    var4 = age;&lt;BR /&gt;
44182    var5 = age;&lt;BR /&gt;
44183    var6 = height;&lt;BR /&gt;
44184    var7 = height;&lt;BR /&gt;
44185    var8 = height;&lt;BR /&gt;
44186    var9 = height;&lt;BR /&gt;
44187    var10 = height;&lt;BR /&gt;
44188    var11 = weight;&lt;BR /&gt;
44189    var12 = weight;&lt;BR /&gt;
44190    var13 = weight;&lt;BR /&gt;
44191    var14 = weight;&lt;BR /&gt;
44192    var15 = weight;&lt;BR /&gt;
44193    if _n_ le 3;&lt;BR /&gt;
44194    do i = 1 to 10000 by 1;&lt;BR /&gt;
44195       output;&lt;BR /&gt;
44196    end;&lt;BR /&gt;
44197  run;&lt;BR /&gt;
&lt;BR /&gt;
NOTE: There were 19 observations read from the data set SASHELP.CLASS.&lt;BR /&gt;
NOTE: The data set WORK.BIGFILE has 30000 observations and 19 variables.&lt;BR /&gt;
NOTE: DATA statement used (Total process time):&lt;BR /&gt;
      real time           0.01 seconds&lt;BR /&gt;
      cpu time            0.01 seconds&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
44198&lt;BR /&gt;
44199  ods msoffice2k path='c:\temp' (url=none)&lt;BR /&gt;
44200                 file='bigfile1.xls';&lt;BR /&gt;
NOTE: Writing MSOFFICE2K Body file: bigfile1.xls&lt;BR /&gt;
44201  proc report data=bigfile nowd;&lt;BR /&gt;
44202  run;&lt;BR /&gt;
&lt;BR /&gt;
NOTE: There were 30000 observations read from the data set WORK.BIGFILE.&lt;BR /&gt;
NOTE: PROCEDURE REPORT used (Total process time):&lt;BR /&gt;
      real time           25.61 seconds&lt;BR /&gt;
      cpu time            24.29 seconds&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
44203  ods _all_ close;&lt;BR /&gt;
44204&lt;BR /&gt;
44205  ods tagsets.excelxp path='c:\temp' (url=none)&lt;BR /&gt;
44206                      file='bigfile2.xls';&lt;BR /&gt;
NOTE: Writing TAGSETS.EXCELXP Body file: bigfile2.xls&lt;BR /&gt;
NOTE: This is the Excel XP tagset (SAS 9.1.3, v1.28, 08/29/05). Add options(doc='help') to the&lt;BR /&gt;
ods statement for more information.&lt;BR /&gt;
44207&lt;BR /&gt;
44208  proc report data=bigfile nowd;&lt;BR /&gt;
44209  run;&lt;BR /&gt;
&lt;BR /&gt;
NOTE: There were 30000 observations read from the data set WORK.BIGFILE.&lt;BR /&gt;
NOTE: PROCEDURE REPORT used (Total process time):&lt;BR /&gt;
      real time           1:14.29&lt;BR /&gt;
      cpu time            1:14.10&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
44210  ods _all_ close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
I can't see that adding a bit more PROC REPORT or ExcelXP options -- even with style overrides -- would add that much more time. This problem is really a good one for Tech Support. If there is a huge performance difference using your data and your code (once it's corrected), then that is something that Tech Support can convey to the developers.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Wed, 29 Aug 2007 22:30:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Take-time-to-open-XLS-spread-sheet/m-p/4412#M171</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-08-29T22:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Take time to open XLS spread sheet.</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Take-time-to-open-XLS-spread-sheet/m-p/4413#M172</link>
      <description>Thanks Cynthia,&lt;BR /&gt;
I want to make sure that I am using right SAS version.&lt;BR /&gt;
&lt;BR /&gt;
My SAS version is : SAS (r) 9.1 (TS1M3)&lt;BR /&gt;
OS : Windows 2000.&lt;BR /&gt;
HardWare Pentium : Intel(R) Pentium(R)M Processor 1.60Hz.&lt;BR /&gt;
Ram: 1 Gb.</description>
      <pubDate>Thu, 30 Aug 2007 14:11:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Take-time-to-open-XLS-spread-sheet/m-p/4413#M172</guid>
      <dc:creator>Inp</dc:creator>
      <dc:date>2007-08-30T14:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: Take time to open XLS spread sheet.</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Take-time-to-open-XLS-spread-sheet/m-p/4414#M173</link>
      <description>Hi:&lt;BR /&gt;
MSOFFICE2K and ExcelXP tagsets are both available starting in SAS 9. Tech Support is really your best bet for help with this problem.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 30 Aug 2007 15:30:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Take-time-to-open-XLS-spread-sheet/m-p/4414#M173</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-08-30T15:30:26Z</dc:date>
    </item>
  </channel>
</rss>

