<?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 Error---ODS EXCEL with now option in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Error-ODS-EXCEL-with-now-option/m-p/966182#M376052</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I run this code using ODS EXCEL with now option.&lt;/P&gt;
&lt;P&gt;I a using SAS enterprise guide 8.3.&lt;/P&gt;
&lt;P&gt;Client version :&amp;nbsp;'8.3.0.103'&amp;nbsp; (When I run&amp;nbsp;%put &amp;amp;_clientversion;)&lt;/P&gt;
&lt;P&gt;My question-&amp;nbsp; what is the reason for this error????&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
ods excel file="/usr/local/SAS/SASUsers/LabRet/UserDir/udclk79/Ex12.xlsx" options(sheet_interval="none");
proc print data=sashelp.class(where=(sex="M"));
run;
proc means data=sashelp.class(where=(sex="M"));
run;

ods excel options(sheet_interval="now");
proc print data=sashelp.class(where=(sex="F"));
run;
proc means data=sashelp.class(where=(sex="F"));
run;
ods excel close;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here is the Log&amp;nbsp; where can see the errors&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;1                                                          The SAS System                               08:38 Wednesday, May 7, 2025

1          ;*';*";*/;quit;run;
2          OPTIONS PAGENO=MIN;
3          %LET _CLIENTTASKLABEL='ODS EXCEL_b_Best!.sas';
4          %LET _CLIENTPROCESSFLOWNAME='Standalone Not In Project';
5          %LET _CLIENTPROJECTPATH='';
6          %LET _CLIENTPROJECTPATHHOST='';
7          %LET _CLIENTPROJECTNAME='';
8          %LET _SASPROGRAMFILE='M:\a.ריכוז תוכניות\Learn\ODS EXCEL_b_Best!.sas';
9          %LET _SASPROGRAMFILEHOST='HKSU102561A79';
10         
11         ODS _ALL_ CLOSE;
12         OPTIONS DEV=SVG;
13         GOPTIONS XPIXELS=0 YPIXELS=0;
14         %macro HTML5AccessibleGraphSupported;
15             %if %_SAS_VERCOMP_FV(9,4,4, 0,0,0) &amp;gt;= 0 %then ACCESSIBLE_GRAPH;
16         %mend;
17         FILENAME EGHTML TEMP;
18         ODS HTML5(ID=EGHTML) FILE=EGHTML
19             OPTIONS(BITMAP_MODE='INLINE')
20             %HTML5AccessibleGraphSupported
NOTE: The ACCESSIBLE_GRAPH option is pre-production for this release.
21             ENCODING='utf-8'
22             STYLE=HTMLBlue
23             NOGTITLE
24             NOGFOOTNOTE
25             GPATH=&amp;amp;sasworklocation
26         ;
NOTE: Writing HTML5(EGHTML) Body file: EGHTML
27         
28         ods excel file="/usr/local/SAS/SASUsers/LabRet/UserDir/udclk79/Ex12.xlsx" options(sheet_interval="none");
WARNING: Unsupported device 'SVG' for EXCEL destination. Using default device 'PNG'.
29         proc print data=sashelp.class(where=(sex="M"));
30         run;

NOTE: There were 10 observations read from the data set SASHELP.CLASS.
      WHERE sex='M';
NOTE: PROCEDURE PRINT used (Total process time):
      real time           0.12 seconds
      user cpu time       0.04 seconds
      system cpu time     0.00 seconds
      memory              2953.12k
      OS Memory           50200.00k
      Timestamp           05/09/2025 08:34:39 PM
      Step Count                        8508  Switch Count  0
      Page Faults                       0
      Page Reclaims                     187
      Page Swaps                        0
      Voluntary Context Switches        13
      Involuntary Context Switches      1
      Block Input Operations            0
      Block Output Operations           0
      

31         proc means data=sashelp.class(where=(sex="M"));
32         run;

NOTE: Multiple concurrent threads will be used to summarize data.
NOTE: There were 10 observations read from the data set SASHELP.CLASS.
2                                                          The SAS System                               08:38 Wednesday, May 7, 2025

      WHERE sex='M';
NOTE: PROCEDURE MEANS used (Total process time):
      real time           0.04 seconds
      user cpu time       0.03 seconds
      system cpu time     0.01 seconds
      memory              7087.29k
      OS Memory           56876.00k
      Timestamp           05/09/2025 08:34:39 PM
      Step Count                        8509  Switch Count  1
      Page Faults                       0
      Page Reclaims                     1741
      Page Swaps                        0
      Voluntary Context Switches        36
      Involuntary Context Switches      0
      Block Input Operations            0
      Block Output Operations           0
      

1                                                          The SAS System                                  20:34 Friday, May 9, 2025

ERROR: Argument now for word option sheet_interval not recognized. Expecting one of these keywords output, table, page, bygroup, 
       bygroups, proc, none or none.
33         
34         ods excel options(sheet_interval="now");
35         proc print data=sashelp.class(where=(sex="F"));
36         run;

ERROR: In event 'output': Out of space writing to file 
       /usr/local/saswork/SAS_workD9C000003A20_LINX107717A13/SAS_workD57B00003A20_LINX107717A13/_T00007F31DAA2F460/xl/worksheets/she
       et1.xml.
stack traceback:
    [C]: in function 'error'
    ?: in function &amp;lt;?:127&amp;gt;
    (tail call): ?
    ?: in function 'close'
    ?: in function 'close'
    ?: in function 'finish_worksheet'
    ?: in function 'start_worksheet'
    ?: in function '?'
    ?: in function &amp;lt;?:508&amp;gt;
    (tail call): ?
ERROR: An error occurred during script execution. See the preceding messages.

NOTE: The SAS System stopped processing this step because of errors.
NOTE: There were 9 observations read from the data set SASHELP.CLASS.
      WHERE sex='F';
NOTE: PROCEDURE PRINT used (Total process time):
      real time           0.02 seconds
      user cpu time       0.01 seconds
      system cpu time     0.00 seconds
      memory              618.78k
      OS Memory           51736.00k
      Timestamp           05/09/2025 08:34:39 PM
      Step Count                        8510  Switch Count  6
      Page Faults                       0
      Page Reclaims                     18
      Page Swaps                        0
      Voluntary Context Switches        101
      Involuntary Context Switches      0
      Block Input Operations            0
      Block Output Operations           0
      


37         proc means data=sashelp.class(where=(sex="F"));
38         run;

NOTE: Multiple concurrent threads will be used to summarize data.
ERROR: In event 'output': ?:0: attempt to index field 'sheetdata' (a nil value)
stack traceback:
    ?: in function 'finish_worksheet'
    ?: in function 'start_worksheet'
    ?: in function '?'
    ?: in function &amp;lt;?:508&amp;gt;
    (tail call): ?
NOTE: The SAS System stopped processing this step because of errors.
NOTE: There were 9 observations read from the data set SASHELP.CLASS.
      WHERE sex='F';
NOTE: PROCEDURE MEANS used (Total process time):
      real time           0.01 seconds
      user cpu time       0.01 seconds
      system cpu time     0.01 seconds
      memory              6580.40k
3                                                          The SAS System                               08:38 Wednesday, May 7, 2025

      OS Memory           57644.00k
      Timestamp           05/09/2025 08:34:40 PM
      Step Count                        8511  Switch Count  1
      Page Faults                       0
      Page Reclaims                     1442
      Page Swaps                        0
      Voluntary Context Switches        34
      Involuntary Context Switches      0
      Block Input Operations            0
      Block Output Operations           0
      
ERROR: In event 'doc': ?:0: attempt to index field 'sheetdata' (a nil value)
stack traceback:
    ?: in function 'finish_worksheet'
    ?: in function '?'
    ?: in function &amp;lt;?:508&amp;gt;
    (tail call): ?
39         ods excel close;
NOTE: Writing EXCEL file: /usr/local/SAS/SASUsers/LabRet/UserDir/udclk79/Ex12.xlsx
40         
41         
42         %LET _CLIENTTASKLABEL=;
43         %LET _CLIENTPROCESSFLOWNAME=;
44         %LET _CLIENTPROJECTPATH=;
45         %LET _CLIENTPROJECTPATHHOST=;
46         %LET _CLIENTPROJECTNAME=;
47         %LET _SASPROGRAMFILE=;
48         %LET _SASPROGRAMFILEHOST=;
1                                                          The SAS System                                  20:34 Friday, May 9, 2025

ERROR: Calling global tagset function 'detach_stream':
Out of space writing to file /usr/local/saswork/SAS_workD9C000003A20_LINX107717A13/#LN05564.
stack traceback:
    [C]: in function 'error'
    ?: in function &amp;lt;?:127&amp;gt;
    (tail call): ?
    ?: in function 'close'
    ?: in function 'detach'
    ?: in function &amp;lt;?:43&amp;gt;
49         
50         ;*';*";*/;quit;run;
51         ODS _ALL_ CLOSE;
ERROR: An error occurred during script execution. See the preceding messages.
52         
53         
54         QUIT; RUN;
55         
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 May 2025 17:41:01 GMT</pubDate>
    <dc:creator>Ronein</dc:creator>
    <dc:date>2025-05-09T17:41:01Z</dc:date>
    <item>
      <title>Error---ODS EXCEL with now option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-ODS-EXCEL-with-now-option/m-p/966182#M376052</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I run this code using ODS EXCEL with now option.&lt;/P&gt;
&lt;P&gt;I a using SAS enterprise guide 8.3.&lt;/P&gt;
&lt;P&gt;Client version :&amp;nbsp;'8.3.0.103'&amp;nbsp; (When I run&amp;nbsp;%put &amp;amp;_clientversion;)&lt;/P&gt;
&lt;P&gt;My question-&amp;nbsp; what is the reason for this error????&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
ods excel file="/usr/local/SAS/SASUsers/LabRet/UserDir/udclk79/Ex12.xlsx" options(sheet_interval="none");
proc print data=sashelp.class(where=(sex="M"));
run;
proc means data=sashelp.class(where=(sex="M"));
run;

ods excel options(sheet_interval="now");
proc print data=sashelp.class(where=(sex="F"));
run;
proc means data=sashelp.class(where=(sex="F"));
run;
ods excel close;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here is the Log&amp;nbsp; where can see the errors&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;1                                                          The SAS System                               08:38 Wednesday, May 7, 2025

1          ;*';*";*/;quit;run;
2          OPTIONS PAGENO=MIN;
3          %LET _CLIENTTASKLABEL='ODS EXCEL_b_Best!.sas';
4          %LET _CLIENTPROCESSFLOWNAME='Standalone Not In Project';
5          %LET _CLIENTPROJECTPATH='';
6          %LET _CLIENTPROJECTPATHHOST='';
7          %LET _CLIENTPROJECTNAME='';
8          %LET _SASPROGRAMFILE='M:\a.ריכוז תוכניות\Learn\ODS EXCEL_b_Best!.sas';
9          %LET _SASPROGRAMFILEHOST='HKSU102561A79';
10         
11         ODS _ALL_ CLOSE;
12         OPTIONS DEV=SVG;
13         GOPTIONS XPIXELS=0 YPIXELS=0;
14         %macro HTML5AccessibleGraphSupported;
15             %if %_SAS_VERCOMP_FV(9,4,4, 0,0,0) &amp;gt;= 0 %then ACCESSIBLE_GRAPH;
16         %mend;
17         FILENAME EGHTML TEMP;
18         ODS HTML5(ID=EGHTML) FILE=EGHTML
19             OPTIONS(BITMAP_MODE='INLINE')
20             %HTML5AccessibleGraphSupported
NOTE: The ACCESSIBLE_GRAPH option is pre-production for this release.
21             ENCODING='utf-8'
22             STYLE=HTMLBlue
23             NOGTITLE
24             NOGFOOTNOTE
25             GPATH=&amp;amp;sasworklocation
26         ;
NOTE: Writing HTML5(EGHTML) Body file: EGHTML
27         
28         ods excel file="/usr/local/SAS/SASUsers/LabRet/UserDir/udclk79/Ex12.xlsx" options(sheet_interval="none");
WARNING: Unsupported device 'SVG' for EXCEL destination. Using default device 'PNG'.
29         proc print data=sashelp.class(where=(sex="M"));
30         run;

NOTE: There were 10 observations read from the data set SASHELP.CLASS.
      WHERE sex='M';
NOTE: PROCEDURE PRINT used (Total process time):
      real time           0.12 seconds
      user cpu time       0.04 seconds
      system cpu time     0.00 seconds
      memory              2953.12k
      OS Memory           50200.00k
      Timestamp           05/09/2025 08:34:39 PM
      Step Count                        8508  Switch Count  0
      Page Faults                       0
      Page Reclaims                     187
      Page Swaps                        0
      Voluntary Context Switches        13
      Involuntary Context Switches      1
      Block Input Operations            0
      Block Output Operations           0
      

31         proc means data=sashelp.class(where=(sex="M"));
32         run;

NOTE: Multiple concurrent threads will be used to summarize data.
NOTE: There were 10 observations read from the data set SASHELP.CLASS.
2                                                          The SAS System                               08:38 Wednesday, May 7, 2025

      WHERE sex='M';
NOTE: PROCEDURE MEANS used (Total process time):
      real time           0.04 seconds
      user cpu time       0.03 seconds
      system cpu time     0.01 seconds
      memory              7087.29k
      OS Memory           56876.00k
      Timestamp           05/09/2025 08:34:39 PM
      Step Count                        8509  Switch Count  1
      Page Faults                       0
      Page Reclaims                     1741
      Page Swaps                        0
      Voluntary Context Switches        36
      Involuntary Context Switches      0
      Block Input Operations            0
      Block Output Operations           0
      

1                                                          The SAS System                                  20:34 Friday, May 9, 2025

ERROR: Argument now for word option sheet_interval not recognized. Expecting one of these keywords output, table, page, bygroup, 
       bygroups, proc, none or none.
33         
34         ods excel options(sheet_interval="now");
35         proc print data=sashelp.class(where=(sex="F"));
36         run;

ERROR: In event 'output': Out of space writing to file 
       /usr/local/saswork/SAS_workD9C000003A20_LINX107717A13/SAS_workD57B00003A20_LINX107717A13/_T00007F31DAA2F460/xl/worksheets/she
       et1.xml.
stack traceback:
    [C]: in function 'error'
    ?: in function &amp;lt;?:127&amp;gt;
    (tail call): ?
    ?: in function 'close'
    ?: in function 'close'
    ?: in function 'finish_worksheet'
    ?: in function 'start_worksheet'
    ?: in function '?'
    ?: in function &amp;lt;?:508&amp;gt;
    (tail call): ?
ERROR: An error occurred during script execution. See the preceding messages.

NOTE: The SAS System stopped processing this step because of errors.
NOTE: There were 9 observations read from the data set SASHELP.CLASS.
      WHERE sex='F';
NOTE: PROCEDURE PRINT used (Total process time):
      real time           0.02 seconds
      user cpu time       0.01 seconds
      system cpu time     0.00 seconds
      memory              618.78k
      OS Memory           51736.00k
      Timestamp           05/09/2025 08:34:39 PM
      Step Count                        8510  Switch Count  6
      Page Faults                       0
      Page Reclaims                     18
      Page Swaps                        0
      Voluntary Context Switches        101
      Involuntary Context Switches      0
      Block Input Operations            0
      Block Output Operations           0
      


37         proc means data=sashelp.class(where=(sex="F"));
38         run;

NOTE: Multiple concurrent threads will be used to summarize data.
ERROR: In event 'output': ?:0: attempt to index field 'sheetdata' (a nil value)
stack traceback:
    ?: in function 'finish_worksheet'
    ?: in function 'start_worksheet'
    ?: in function '?'
    ?: in function &amp;lt;?:508&amp;gt;
    (tail call): ?
NOTE: The SAS System stopped processing this step because of errors.
NOTE: There were 9 observations read from the data set SASHELP.CLASS.
      WHERE sex='F';
NOTE: PROCEDURE MEANS used (Total process time):
      real time           0.01 seconds
      user cpu time       0.01 seconds
      system cpu time     0.01 seconds
      memory              6580.40k
3                                                          The SAS System                               08:38 Wednesday, May 7, 2025

      OS Memory           57644.00k
      Timestamp           05/09/2025 08:34:40 PM
      Step Count                        8511  Switch Count  1
      Page Faults                       0
      Page Reclaims                     1442
      Page Swaps                        0
      Voluntary Context Switches        34
      Involuntary Context Switches      0
      Block Input Operations            0
      Block Output Operations           0
      
ERROR: In event 'doc': ?:0: attempt to index field 'sheetdata' (a nil value)
stack traceback:
    ?: in function 'finish_worksheet'
    ?: in function '?'
    ?: in function &amp;lt;?:508&amp;gt;
    (tail call): ?
39         ods excel close;
NOTE: Writing EXCEL file: /usr/local/SAS/SASUsers/LabRet/UserDir/udclk79/Ex12.xlsx
40         
41         
42         %LET _CLIENTTASKLABEL=;
43         %LET _CLIENTPROCESSFLOWNAME=;
44         %LET _CLIENTPROJECTPATH=;
45         %LET _CLIENTPROJECTPATHHOST=;
46         %LET _CLIENTPROJECTNAME=;
47         %LET _SASPROGRAMFILE=;
48         %LET _SASPROGRAMFILEHOST=;
1                                                          The SAS System                                  20:34 Friday, May 9, 2025

ERROR: Calling global tagset function 'detach_stream':
Out of space writing to file /usr/local/saswork/SAS_workD9C000003A20_LINX107717A13/#LN05564.
stack traceback:
    [C]: in function 'error'
    ?: in function &amp;lt;?:127&amp;gt;
    (tail call): ?
    ?: in function 'close'
    ?: in function 'detach'
    ?: in function &amp;lt;?:43&amp;gt;
49         
50         ;*';*";*/;quit;run;
51         ODS _ALL_ CLOSE;
ERROR: An error occurred during script execution. See the preceding messages.
52         
53         
54         QUIT; RUN;
55         
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 17:41:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-ODS-EXCEL-with-now-option/m-p/966182#M376052</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2025-05-09T17:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Error---ODS EXCEL with now option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-ODS-EXCEL-with-now-option/m-p/966185#M376053</link>
      <description>&lt;P&gt;What is the value of macro variable &amp;amp;sysvlong?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, we don't need to see 100 lines of the log before the first ODS EXCEL, and we don't need to see the lines after the error.&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 17:55:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-ODS-EXCEL-with-now-option/m-p/966185#M376053</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2025-05-09T17:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: Error---ODS EXCEL with now option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-ODS-EXCEL-with-now-option/m-p/966213#M376071</link>
      <description>&lt;P&gt;From the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/odsugwhatsnew94.htm" target="_blank" rel="noopener"&gt;documentation&lt;/A&gt;:&lt;/P&gt;
&lt;P class="xisDoc-paragraph"&gt;In &lt;SPAN class="xisDoc-codeFocus"&gt;SAS 9.4M5&lt;/SPAN&gt;, the ODS EXCEL statement supports the following options:&lt;/P&gt;
&lt;UL class="xisDoc-listUnordered"&gt;
&lt;LI class="xisDoc-item"&gt;&lt;A tabindex="0" href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p1pt77toue3iyun0z4l9gth5as9f.htm#p13i3589hqhi2un1su6b83ovgv2l" target="_blank"&gt;TAGATTR= style attribute&lt;/A&gt;&lt;/LI&gt;
&lt;LI class="xisDoc-item"&gt;&lt;A tabindex="0" href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p09n5pw9ol0897n1qe04zeur27rv.htm#n14kzx0j3pmce9n1eysz6cco2sqn" target="_blank"&gt;SHEET_INTERVAL= NOW&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;You need to be using at least 9.4M5 to use NOW.&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 23:04:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-ODS-EXCEL-with-now-option/m-p/966213#M376071</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2025-05-09T23:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error---ODS EXCEL with now option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-ODS-EXCEL-with-now-option/m-p/966216#M376072</link>
      <description>&lt;P&gt;Show the value of SYSVLONG, not _CLIENTVERSION.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It does not matter what version of Enterprise Guide you are using to edit your SAS code.&amp;nbsp; Just like it would not matter what version of EMACS or VSCode you were using to edit your SAS code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 23:24:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-ODS-EXCEL-with-now-option/m-p/966216#M376072</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-05-09T23:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: Error---ODS EXCEL with now option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-ODS-EXCEL-with-now-option/m-p/966230#M376077</link>
      <description>&lt;P&gt;I got no problem with that code.&lt;/P&gt;
&lt;P&gt;But another workaround way is creating a DUMMY proc by 'ods select none' to reset the option 'sheet_interval='.&lt;/P&gt;
&lt;P&gt;And it is mentioned in this:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/kb/57/766.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://support.sas.com/kb/57/766.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ods excel file="c:\temp\temp.xlsx"
options(sheet_name="Sh1" sheet_interval="none" embedded_titles='yes' );
title 'Table1';
proc print data=sashelp.class(obs=3) noobs;
run;
title 'Table2';
proc print data=sashelp.shoes(obs=3) noobs;
run;


&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;
ods select none;
ods excel options(sheet_name="xx" sheet_interval="proc"); /*This tells SAS to start a new sheet for next PROCs*/
proc print data=sashelp.class;run;
ods select all;&lt;/STRONG&gt;&lt;/FONT&gt;



ods excel options(sheet_name="Sh2" sheet_interval="none"); /*This tells SAS to start a new sheet for next PROCs*/
proc print data=sashelp.cars(obs=5);
run;
title 'Table2';
proc print data=sashelp.shoes(obs=3) noobs;
run;



ods excel close;&lt;/PRE&gt;</description>
      <pubDate>Sat, 10 May 2025 03:19:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-ODS-EXCEL-with-now-option/m-p/966230#M376077</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-05-10T03:19:57Z</dc:date>
    </item>
  </channel>
</rss>

