<?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: Unable to create multiple sheets in excel when doing a proc export in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-create-multiple-sheets-in-excel-when-doing-a-proc/m-p/498283#M132376</link>
    <description>&lt;P&gt;Hi RW9&lt;/P&gt;&lt;P&gt;Here's the contents of the log&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;1          ;*';*";*/;quit;run;
2          OPTIONS PAGENO=MIN;
3          %LET _CLIENTTASKLABEL='Program';
4          %LET _CLIENTPROJECTPATH='';
5          %LET _CLIENTPROJECTNAME='';
6          %LET _SASPROGRAMFILE=;
7          
8          ODS _ALL_ CLOSE;
9          OPTIONS DEV=ACTIVEX;
10         GOPTIONS XPIXELS=0 YPIXELS=0;
11         FILENAME EGSR TEMP;
12         ODS tagsets.sasreport13(ID=EGSR) FILE=EGSR STYLE=HtmlBlue
12       ! STYLESHEET=(URL="file:///C:/Program%20Files/SASHome/SASEnterpriseGuide/5.1/Styles/HtmlBlue.css") NOGTITLE NOGFOOTNOTE
12       ! GPATH=&amp;amp;sasworklocation ENCODING=UTF8 options(rolap="on");
NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR
13         
14         GOPTIONS ACCESSIBLE;
15         
16         
17         
18         
19         proc export data=sashelp.class (where=( sex='M'))
20                     outfile="/sasproj/prod/user/teamD/97_Team_Folders/08_JSB/CLASS.xlsx"
21                     dbms=xlsx
22                     ;
23            sheet="MALE";
24         run;

NOTE: The export data set has 10 observations and 5 variables.
NOTE: "/sasproj/prod/user/teamD/97_Team_Folders/08_JSB/CLASS.xlsx" file was successfully created.
NOTE: PROCEDURE EXPORT used (Total process time):
      real time           0.01 seconds
      cpu time            0.00 seconds
      

25         
26         
27         proc export data=sashelp.class (where=( sex='F'))
28                     outfile="/sasproj/prod/user/teamD/97_Team_Folders/08_JSB/CLASS.xlsx"
29                     dbms=xlsx replace;
30            sheet="FEMALE";
31         run;

NOTE: The export data set has 9 observations and 5 variables.
NOTE: "/sasproj/prod/user/teamD/97_Team_Folders/08_JSB/CLASS.xlsx" file was successfully created.
NOTE: PROCEDURE EXPORT used (Total process time):
      real time           0.00 seconds
      cpu time            0.01 seconds&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Same thing happened.&amp;nbsp; The old tab "MALE" disappeared and was replaced by FEMALE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this approach too&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc export data=sashelp.class (where=( sex='M')) 
            outfile="/sasproj/prod/user/teamD/97_Team_Folders/08_JSB/CLASS.xlsx" 
            dbms=xlsx replace  
            ; 
   sheet="MALE"; 
run; 


proc export data=sashelp.class (where=( sex='F')) 
            outfile="/sasproj/prod/user/teamD/97_Team_Folders/08_JSB/CLASS.xlsx" 
            dbms=xlsx replace; 
   sheet="FEMALE"; 
run; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Submit one the proc export step to create the "MALE" tab.&amp;nbsp; Open Excel to confirm and it was created.&amp;nbsp; However, when I submitted the 2nd proc export step, opened the excel file I can only see the "FEMALE" tab.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What goal is to create 2 tabs "MALE" and "FEMALE" in just 1 xlsx file.&lt;/P&gt;</description>
    <pubDate>Mon, 24 Sep 2018 05:24:34 GMT</pubDate>
    <dc:creator>ShiroAmada</dc:creator>
    <dc:date>2018-09-24T05:24:34Z</dc:date>
    <item>
      <title>Unable to create multiple sheets in excel when doing a proc export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-create-multiple-sheets-in-excel-when-doing-a-proc/m-p/496871#M131531</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc export data = auto1(where=( PD_DATE IS MISSING ) ) outfile= "Z:\M_Auto1.xlsx" dbms= xlsxreplace; sheet="MISSING"; run; 

proc export data = auto1(where=( PD_DATE IS NOT MISSING ) )outfile= Z:\M_Auto1.xlsx" dbms= xlsxreplace; sheet="WITH_DATE"; run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I have the code above.&amp;nbsp; No errors.&amp;nbsp; However, the file gets overwritten and only the tab present is the one stated in the last submitted proc export step.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't figure out what is missing or what is wrong with my proc export step.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 09:42:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-create-multiple-sheets-in-excel-when-doing-a-proc/m-p/496871#M131531</guid>
      <dc:creator>ShiroAmada</dc:creator>
      <dc:date>2018-09-19T09:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create multiple sheets in excel when doing a proc export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-create-multiple-sheets-in-excel-when-doing-a-proc/m-p/496879#M131534</link>
      <description>&lt;P&gt;There is a clue, hidden in your dbms statement which tells you where the replace is happening:&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;dbms&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; xlsxreplace&lt;/LI-CODE&gt;
&lt;P&gt;I believe you are missing a space there (and you are missing a quote in the second pathname), and that should only appear on the first step, so:&lt;/P&gt;
&lt;PRE&gt;proc export data=auto1 (where=(pd_date is missing)) 
            outfile="Z:\M_Auto1.xlsx" 
            dbms=xlsx 
            replace; 
   sheet="MISSING"; 
run; 

proc export data=auto1 (where=(pd_date is not missing))
            outfile="Z:\M_Auto1.xlsx" 
            dbms=xlsx; 
   sheet="WITH_DATE"; 
run;&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Sep 2018 09:57:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-create-multiple-sheets-in-excel-when-doing-a-proc/m-p/496879#M131534</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-09-19T09:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create multiple sheets in excel when doing a proc export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-create-multiple-sheets-in-excel-when-doing-a-proc/m-p/496934#M131548</link>
      <description>&lt;PRE&gt;
An workaround way is :

libname x xlsx "Z:\M_Auto1.xlsx";
data x.MISSING;
 set auto1(where=( PD_DATE IS MISSING ) );
run;
data x.WITH_DATE;
 set auto1(where=( PD_DATE IS NOT MISSING ) );
run;


&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Sep 2018 12:44:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-create-multiple-sheets-in-excel-when-doing-a-proc/m-p/496934#M131548</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-09-19T12:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create multiple sheets in excel when doing a proc export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-create-multiple-sheets-in-excel-when-doing-a-proc/m-p/496938#M131551</link>
      <description>&lt;P&gt;Dont forget to:&lt;/P&gt;
&lt;PRE&gt;libname x clear;&lt;/PRE&gt;
&lt;P&gt;Otherwise file will not be written/closed.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 12:49:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-create-multiple-sheets-in-excel-when-doing-a-proc/m-p/496938#M131551</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-09-19T12:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create multiple sheets in excel when doing a proc export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-create-multiple-sheets-in-excel-when-doing-a-proc/m-p/496941#M131553</link>
      <description>&lt;PRE&gt;
An workaround way is :

libname x xlsx "Z:\M_Auto1.xlsx";
data x.MISSING;
 set auto1(where=( PD_DATE IS MISSING ) );
run;
data x.WITH_DATE;
 set auto1(where=( PD_DATE IS NOT MISSING ) );
run;


&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Sep 2018 12:55:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-create-multiple-sheets-in-excel-when-doing-a-proc/m-p/496941#M131553</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-09-19T12:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create multiple sheets in excel when doing a proc export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-create-multiple-sheets-in-excel-when-doing-a-proc/m-p/498280#M132374</link>
      <description>&lt;P&gt;Hi Ksharp, I got an error that says&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ERROR: The XLSX engine cannot be found.
ERROR: Error in the LIBNAME statement.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Sep 2018 05:13:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-create-multiple-sheets-in-excel-when-doing-a-proc/m-p/498280#M132374</guid>
      <dc:creator>ShiroAmada</dc:creator>
      <dc:date>2018-09-24T05:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create multiple sheets in excel when doing a proc export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-create-multiple-sheets-in-excel-when-doing-a-proc/m-p/498283#M132376</link>
      <description>&lt;P&gt;Hi RW9&lt;/P&gt;&lt;P&gt;Here's the contents of the log&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;1          ;*';*";*/;quit;run;
2          OPTIONS PAGENO=MIN;
3          %LET _CLIENTTASKLABEL='Program';
4          %LET _CLIENTPROJECTPATH='';
5          %LET _CLIENTPROJECTNAME='';
6          %LET _SASPROGRAMFILE=;
7          
8          ODS _ALL_ CLOSE;
9          OPTIONS DEV=ACTIVEX;
10         GOPTIONS XPIXELS=0 YPIXELS=0;
11         FILENAME EGSR TEMP;
12         ODS tagsets.sasreport13(ID=EGSR) FILE=EGSR STYLE=HtmlBlue
12       ! STYLESHEET=(URL="file:///C:/Program%20Files/SASHome/SASEnterpriseGuide/5.1/Styles/HtmlBlue.css") NOGTITLE NOGFOOTNOTE
12       ! GPATH=&amp;amp;sasworklocation ENCODING=UTF8 options(rolap="on");
NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR
13         
14         GOPTIONS ACCESSIBLE;
15         
16         
17         
18         
19         proc export data=sashelp.class (where=( sex='M'))
20                     outfile="/sasproj/prod/user/teamD/97_Team_Folders/08_JSB/CLASS.xlsx"
21                     dbms=xlsx
22                     ;
23            sheet="MALE";
24         run;

NOTE: The export data set has 10 observations and 5 variables.
NOTE: "/sasproj/prod/user/teamD/97_Team_Folders/08_JSB/CLASS.xlsx" file was successfully created.
NOTE: PROCEDURE EXPORT used (Total process time):
      real time           0.01 seconds
      cpu time            0.00 seconds
      

25         
26         
27         proc export data=sashelp.class (where=( sex='F'))
28                     outfile="/sasproj/prod/user/teamD/97_Team_Folders/08_JSB/CLASS.xlsx"
29                     dbms=xlsx replace;
30            sheet="FEMALE";
31         run;

NOTE: The export data set has 9 observations and 5 variables.
NOTE: "/sasproj/prod/user/teamD/97_Team_Folders/08_JSB/CLASS.xlsx" file was successfully created.
NOTE: PROCEDURE EXPORT used (Total process time):
      real time           0.00 seconds
      cpu time            0.01 seconds&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Same thing happened.&amp;nbsp; The old tab "MALE" disappeared and was replaced by FEMALE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this approach too&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc export data=sashelp.class (where=( sex='M')) 
            outfile="/sasproj/prod/user/teamD/97_Team_Folders/08_JSB/CLASS.xlsx" 
            dbms=xlsx replace  
            ; 
   sheet="MALE"; 
run; 


proc export data=sashelp.class (where=( sex='F')) 
            outfile="/sasproj/prod/user/teamD/97_Team_Folders/08_JSB/CLASS.xlsx" 
            dbms=xlsx replace; 
   sheet="FEMALE"; 
run; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Submit one the proc export step to create the "MALE" tab.&amp;nbsp; Open Excel to confirm and it was created.&amp;nbsp; However, when I submitted the 2nd proc export step, opened the excel file I can only see the "FEMALE" tab.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What goal is to create 2 tabs "MALE" and "FEMALE" in just 1 xlsx file.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2018 05:24:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-create-multiple-sheets-in-excel-when-doing-a-proc/m-p/498283#M132376</guid>
      <dc:creator>ShiroAmada</dc:creator>
      <dc:date>2018-09-24T05:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create multiple sheets in excel when doing a proc export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-create-multiple-sheets-in-excel-when-doing-a-proc/m-p/498286#M132379</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/160362"&gt;@ShiroAmada&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi Ksharp, I got an error that says&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ERROR: The XLSX engine cannot be found.
ERROR: Error in the LIBNAME statement.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Seems you have an outdated sas-version. Please post some details about SAS-version and licenced modules, proc setinit print the relevant data to the log, remove Site-Number and other personal details before posting.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2018 05:59:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-create-multiple-sheets-in-excel-when-doing-a-proc/m-p/498286#M132379</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2018-09-24T05:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create multiple sheets in excel when doing a proc export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-create-multiple-sheets-in-excel-when-doing-a-proc/m-p/498298#M132386</link>
      <description>&lt;P&gt;Please look at my previous post.&lt;/P&gt;
&lt;P&gt;The keyword&amp;nbsp;&lt;U&gt;&lt;STRONG&gt;replace&lt;/STRONG&gt;&lt;/U&gt; should only appear on&amp;nbsp;&lt;U&gt;&lt;STRONG&gt;the first instance of the export&lt;/STRONG&gt;&lt;/U&gt;.&amp;nbsp; If you put it on any subsequent proc exports the file is overwritten rather than being added to.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2018 07:33:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-create-multiple-sheets-in-excel-when-doing-a-proc/m-p/498298#M132386</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-09-24T07:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create multiple sheets in excel when doing a proc export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-create-multiple-sheets-in-excel-when-doing-a-proc/m-p/498333#M132406</link>
      <description>&lt;P&gt;Hi andreas_lds&amp;nbsp; please refer to the contents of the proc setinit&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Original site validation data
Site name:    'xxxxxxx'.
Site number:  1234567890.
Expiration:   30DEC2018.
Grace Period:  30 days (ending 29JAN2019).
Warning Period: 30 days (ending 28FEB2019).
System birthday:   20APR2018.
Operating System:   SUN 64  .
Product expiration dates:
---Base SAS Software                                                                                    30DEC2018  
---SAS/STAT                                                                                             30DEC2018  
---SAS/GRAPH                                                                                            30DEC2018  
---SAS/SHARE                                                                                            30DEC2018  
---SAS/CONNECT                                                                                          30DEC2018  
---SAS/SHARE*NET                                                                                        30DEC2018  
---SAS Enterprise Miner                                                                                 30DEC2018  
---SAS Integration Technologies                                                                         30DEC2018  
---SAS Enterprise Miner Server                                                                          30DEC2018  
---SAS Enterprise Miner Client                                                                          30DEC2018  
---SAS Data Quality Server                                                                              30DEC2018  
---SAS Enterprise Guide                                                                                 30DEC2018  
---SAS/ACCESS Interface to DB2                                                                          30DEC2018  
---SAS/ACCESS Interface to PC Files                                                                     30DEC2018  
---SAS Data Quality Server - English (United States)                                                    30DEC2018  
---DataFlux QKB English                                                                                 30DEC2018  
---DataFlux QKB Latin-1 encod                                                                           30DEC2018  
---SAS Workspace Server for Local Access                                                                30DEC2018  
---DataFlux Trans DB Driver                                                                             30DEC2018  
---SAS Framework Data Server                                                                            30DEC2018  
---SAS Add-in for Microsoft Excel                                                                       30DEC2018  
2                                                          The SAS System                           17:41 Monday, September 24, 2018

---SAS Add-in for Microsoft Outlook                                                                     30DEC2018  
---SAS Add-in for Microsoft PowerPoint                                                                  30DEC2018  
---SAS Add-in for Microsoft Word                                                                        30DEC2018  &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Sep 2018 09:44:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-create-multiple-sheets-in-excel-when-doing-a-proc/m-p/498333#M132406</guid>
      <dc:creator>ShiroAmada</dc:creator>
      <dc:date>2018-09-24T09:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create multiple sheets in excel when doing a proc export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-create-multiple-sheets-in-excel-when-doing-a-proc/m-p/498337#M132408</link>
      <description>&lt;P&gt;Dear RW9,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried but Export cancelled on the second proc export step.&amp;nbsp; No error.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;18         proc export data=sashelp.class (where=( sex='M'))
19                     outfile="/sasproj/prod/user/teamD/97_Team_Folders/08_JSB/CLASS.xlsx"
20                     dbms=xlsx replace
21                     ;
22            sheet="MALE";
23         run;

NOTE: The export data set has 10 observations and 5 variables.
NOTE: "/sasproj/prod/user/teamD/97_Team_Folders/08_JSB/CLASS.xlsx" file was successfully created.
NOTE: PROCEDURE EXPORT used (Total process time):
      real time           0.02 seconds
      cpu time            0.01 seconds
      

24         
25         
26         proc export data=sashelp.class (where=( sex='F'))
27                     outfile="/sasproj/prod/user/teamD/97_Team_Folders/08_JSB/CLASS.xlsx"
28                     dbms=xlsx ;
29            sheet="FEMALE";
30         run;

NOTE: Export cancelled.  Output file /sasproj/prod/user/teamD/97_Team_Folders/08_JSB/CLASS.xlsx already exists. Specify REPLACE 
      option to overwrite it.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE EXPORT used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
      &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Sep 2018 09:52:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-create-multiple-sheets-in-excel-when-doing-a-proc/m-p/498337#M132408</guid>
      <dc:creator>ShiroAmada</dc:creator>
      <dc:date>2018-09-24T09:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create multiple sheets in excel when doing a proc export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-create-multiple-sheets-in-excel-when-doing-a-proc/m-p/498339#M132409</link>
      <description>&lt;P&gt;This code worked fine on my machine:&lt;/P&gt;
&lt;PRE&gt;proc export data=sashelp.class (where=( sex='M'))
                     outfile=".../CLASS.xlsx"
                     dbms=xlsx ;
            sheet="MALE";
         run;

proc export data=sashelp.class (where=( sex='F'))
                     outfile=".../CLASS.xlsx"
                     dbms=xlsx ;
            sheet="FEMALE";
         run;&lt;/PRE&gt;
&lt;P&gt;Created an Excel file with two worksheets.&amp;nbsp; I am afraid I suspect it maybe your SAS version being too old. You may need to use ods tagsets.excelxp or one of those to create your file.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2018 10:31:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-create-multiple-sheets-in-excel-when-doing-a-proc/m-p/498339#M132409</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-09-24T10:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create multiple sheets in excel when doing a proc export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-create-multiple-sheets-in-excel-when-doing-a-proc/m-p/498340#M132410</link>
      <description>&lt;P&gt;You could try other ENGINE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;libname x xls&amp;nbsp; 'c:\......';&lt;/P&gt;
&lt;P&gt;libname x excel 'c:\.......';&lt;/P&gt;
&lt;P&gt;.................&lt;/P&gt;
&lt;P&gt;libname x clear;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2018 10:35:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-create-multiple-sheets-in-excel-when-doing-a-proc/m-p/498340#M132410</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-09-24T10:35:29Z</dc:date>
    </item>
  </channel>
</rss>

