<?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: How can I export several tables in 2 differents sheets of an excel document with ods? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-export-several-tables-in-2-differents-sheets-of-an/m-p/445183#M21522</link>
    <description>&lt;P&gt;I don't think I understand what you mean, I tried first to write:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ods excel&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; options(&amp;nbsp; sheet_interval= 'now'&amp;nbsp; sheet_name="sheet2"&amp;nbsp; ');&lt;/P&gt;&lt;P&gt;and it export me each table in one sheet after that sentence is written. I also tried writting this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ods excel&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; options(&amp;nbsp; sheet_interval= 'now'&amp;nbsp; sheet_name="sheet2" );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ods excel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; options ( sheet_interval = 'none' sheet_name = "sheet2"&amp;nbsp; embedded_titles= 'on' );&lt;/P&gt;&lt;P&gt;I don't know if you were refering to any of this ones but if it isn't, Would you mind explaining your way, please?&lt;/P&gt;&lt;P&gt;Thank you &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Mar 2018 14:27:10 GMT</pubDate>
    <dc:creator>Marta27</dc:creator>
    <dc:date>2018-03-13T14:27:10Z</dc:date>
    <item>
      <title>How can I export several tables in 2 differents sheets of an excel document with ods?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-export-several-tables-in-2-differents-sheets-of-an/m-p/441132#M21512</link>
      <description>&lt;P&gt;I'am trying to export several tables to an excel sheet in a concrete format with ods. I want to export 3 tables in one sheet and one table in a second sheet without changing of document, but I am not able to do it with ods.&lt;/P&gt;&lt;P&gt;I have tried "ods layout end" and "ods layout start" and this one continuous exporting in the same sheet, as well I tried closing ods and opening the same excel changin the name of the sheet but it replaced it.&lt;/P&gt;&lt;P&gt;Here I left what I wnat to export, it is mark&amp;nbsp; with a coment where I want to beging exporting in another sheet.&lt;/P&gt;&lt;P&gt;Thank you &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file = "C:\Prueba\exportar.xlsx" style=pearl	
		options (start_at="2,2" sheet_interval = 'page' sheet_name = "Prom");
		ods escapechar='~';
		ods text = "~S={font_size=14pt font_weight=bold foreground=blue font_face='Algerian' TEXTDECORATION=underline}~Capacidad Discriminante";
		ods text = "

		";
		ods text = "~S={font_size=11pt font_weight=bold}~    1. Tabla 1";
		ods text = "

		";
		*Tabla 1;
			proc report data=RWORK.Tabla1
				style(header)=[JUST = center FONT_FACE=Arial FONT_SIZE=10pt background = lightblue];
				column GINI REF DISC;
				define GINI/ 'Gini';
				define REF/ 'Referencia';
				define DISC/ 'Capacidad';
				define GINI / style(column) = {JUST=c FONT_FACE=Arial
						FONT_SIZE=10pt CELLWIDTH=200 ASIS=on};
				define REF / style(column) = {JUST=c FONT_FACE=Arial
						FONT_SIZE=10pt CELLWIDTH=120 ASIS=on};
				define DISC / style(column) = {JUST=c FONT_FACE=Arial
						FONT_SIZE=10pt CELLWIDTH=200 ASIS=on};
			run;
		ods text = "

			";
		ods text = "~S={font_size=11pt font_weight=bold}~    2. Tabla 2";
		ods text = "

		";
		*Tabla 2;
			proc report data=RWORK.Tabla2
				style(header)=[JUST = center FONT_FACE=Arial FONT_SIZE=10pt background = lightblue];
				column Variables VI_Ref VI_Disc;
				define Variables/ 'Variables';
				define VI_Ref/ 'Referencia';
				define VI_Disc/ 'discriminante';
				define Variables / style(column) = {JUST=c FONT_FACE=Arial
						FONT_SIZE=10pt CELLWIDTH=200 ASIS=on};
				define VI_Ref / style(column) = {JUST=c FONT_FACE=Arial
						FONT_SIZE=10pt CELLWIDTH=200 ASIS=on};
				define VI_Disc / style(column) = {JUST=c FONT_FACE=Arial
						FONT_SIZE=10pt CELLWIDTH=200 ASIS=on};
			run;
		ods text = "

		";
		ods text = "~S={font_size=14pt font_weight=bold foreground=blue font_face='Algerian' TEXTDECORATION=underline}~Estabilidad";
		ods text = "

		";
		ods text = "~S={font_size=11pt font_weight=bold}~    1. Tabla3";
		ods text = "

		";
		*Tabla 3;
			proc report data=RWORK.Tabla3
				style(header)=[JUST = center FONT_FACE=Arial FONT_SIZE=10pt background = lightblue];
				column Periodo P_Cuant P_Cual P_comportamental P_Final;
				define P_Cuant/ 'P. Cuantitativa';
				define P_Cual/ 'P. Cualitativa';
				define P_comportamental/ 'P. Comportamental';
				define P_Final/ 'P. Final';
				define Periodo / style(column) = {JUST=c FONT_FACE=Arial
						FONT_SIZE=10pt CELLWIDTH=200 ASIS=on};
				define P_Cuant / style(column) = {JUST=c FONT_FACE=Arial
						FONT_SIZE=10pt CELLWIDTH=200 ASIS=on};
				define P_Cual / style(column) = {JUST=c FONT_FACE=Arial
						FONT_SIZE=10pt CELLWIDTH=200 ASIS=on};
				define P_comportamental / style(column) = {JUST=c FONT_FACE=Arial
						FONT_SIZE=10pt CELLWIDTH=200 ASIS=on};
				define P_Final / style(column) = {JUST=c FONT_FACE=Arial
						FONT_SIZE=10pt CELLWIDTH=200 ASIS=on};
			run;
		ods text = "

		";

		*______________________________________________________________________________________

		I WOULD LIKE TO CHANGE HERE OF SHEET

		 ______________________________________________________________________________________
		;
		ods text = "~S={font_size=11pt font_weight=bold}~    2. Tabla 4";
		ods text = "

		";
		*Tabla 4;
			proc report data=RWORK.Tabla4
				style(header)=[JUST = center FONT_FACE=Arial FONT_SIZE=10pt background = lightblue];
				column Ks_estabilidad;
				define Ks_estabilidad/ 'Kolmogorov-Smirov';
				define Ks_estabilidad / style(column) = {JUST=c FONT_FACE=Arial
						FONT_SIZE=10pt CELLWIDTH=250 ASIS=on};
			run;
	ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Mar 2018 08:11:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-export-several-tables-in-2-differents-sheets-of-an/m-p/441132#M21512</guid>
      <dc:creator>Marta27</dc:creator>
      <dc:date>2018-03-01T08:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: How can I export several tables in 2 differents sheets of an excel document with ods?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-export-several-tables-in-2-differents-sheets-of-an/m-p/441147#M21513</link>
      <description>&lt;P&gt;You can control the name and when to create a new worksheet using the options SHEET_INTERVAL=&amp;nbsp; and SHEET_NAME=, see below for an example. Check the doc on ODS EXCEL and all the options you can use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file="c:\temp\sample.xlsx"
  options(
    sheet_interval= 'none'
    sheet_name="table1"
  )
;

proc print data=sashelp.class;
  where sex = "F";
run;


proc print data=sashelp.class;
  where sex = "F";
run;

ods excel
  options(
    sheet_interval= 'now'
    sheet_name="table2"
  )
;
proc print data=sashelp.cars;
run;
ods excel close;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Mar 2018 10:35:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-export-several-tables-in-2-differents-sheets-of-an/m-p/441147#M21513</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2018-03-01T10:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: How can I export several tables in 2 differents sheets of an excel document with ods?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-export-several-tables-in-2-differents-sheets-of-an/m-p/441165#M21514</link>
      <description>&lt;P&gt;Ok, Thank you very much.&lt;/P&gt;&lt;P&gt;I have a problem with this one, after the line in which is indicate "sheet_interval = 'now'" it exports me the tittle of the table in one sheet and the table in other. ¿Do you know how can it be in the same sheet?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 12:13:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-export-several-tables-in-2-differents-sheets-of-an/m-p/441165#M21514</guid>
      <dc:creator>Marta27</dc:creator>
      <dc:date>2018-03-01T12:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: How can I export several tables in 2 differents sheets of an excel document with ods?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-export-several-tables-in-2-differents-sheets-of-an/m-p/441175#M21515</link>
      <description>&lt;P&gt;Yes I see, using ODS TEXT= does not behave as wanted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As an alternative you can make use of the TITLE statement together with EMVEDDED_TITLES= option&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title;
options nocenter;
ods excel file="c:\temp\sample.xlsx"
  options(
  sheet_interval= 'none'
  sheet_name="table1"
  embedded_titles= 'on'
/*  title_footnote_width='1'*/
  )
;
title "Listing for F";

proc print data=sashelp.class;
  where sex = "F";
run;

title  "Listing for M";

proc print data=sashelp.class;
  where sex = "M";
run;

ods excel
  options(
  sheet_interval= 'now'
  sheet_name="table2"
  )
;

title "Listing for Cars";

proc print data=sashelp.cars;
run;
title;
ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 12:48:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-export-several-tables-in-2-differents-sheets-of-an/m-p/441175#M21515</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2018-03-01T12:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: How can I export several tables in 2 differents sheets of an excel document with ods?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-export-several-tables-in-2-differents-sheets-of-an/m-p/441233#M21516</link>
      <description>&lt;P&gt;Thanks for your quick response. I have been trying "EMVEDDED_TITLES" and "EMBED_TITLES_ONCE" and none of them have worked for me. The tittles doesn't appear in the excel, using the "ods test" the test appear in a new sheet but with this other the test doesn't appear. I have tried the options = 'yes' asnd = 'on' without results. I would also like to know if it is possible to export more than one table on that second sheet.&lt;/P&gt;&lt;P&gt;Thank you very much &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 15:52:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-export-several-tables-in-2-differents-sheets-of-an/m-p/441233#M21516</guid>
      <dc:creator>Marta27</dc:creator>
      <dc:date>2018-03-01T15:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can I export several tables in 2 differents sheets of an excel document with ods?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-export-several-tables-in-2-differents-sheets-of-an/m-p/441503#M21517</link>
      <description>Does the sample code provided, work for you?&lt;BR /&gt;ODS TEXT and TITLE/FOOTNOTE are not the same.</description>
      <pubDate>Fri, 02 Mar 2018 09:05:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-export-several-tables-in-2-differents-sheets-of-an/m-p/441503#M21517</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2018-03-02T09:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: How can I export several tables in 2 differents sheets of an excel document with ods?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-export-several-tables-in-2-differents-sheets-of-an/m-p/441530#M21518</link>
      <description>&lt;P&gt;Yes, that same code works for me, but at the time I try to apply it to my code it doesn't work. Could it be because I'am using "proc report" instead of "proc print"? I want to use proc report because I want to give format to my tables (giving colors to the headers, change the names of the colums, writting a vector across intead of up to down....etc). With your code I have tried to export 2 tables in the second sheet, I couldn't, Is there any way to do it?&lt;/P&gt;&lt;P&gt;Thank you very much &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 10:32:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-export-several-tables-in-2-differents-sheets-of-an/m-p/441530#M21518</guid>
      <dc:creator>Marta27</dc:creator>
      <dc:date>2018-03-02T10:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: How can I export several tables in 2 differents sheets of an excel document with ods?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-export-several-tables-in-2-differents-sheets-of-an/m-p/442271#M21519</link>
      <description>&lt;P&gt;Proc PRINT or Proc REPORT should not make any difference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please use the TITLE&amp;nbsp;statement&amp;nbsp;instead of the ODS TEXT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To insert some text just before a table you may also use this syntax:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title "Listing for F";

proc report data=sashelp.class
  style(report) = { pretext="Text before the table" }
;
  where sex = "F";
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Mar 2018 08:29:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-export-several-tables-in-2-differents-sheets-of-an/m-p/442271#M21519</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2018-03-05T08:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: How can I export several tables in 2 differents sheets of an excel document with ods?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-export-several-tables-in-2-differents-sheets-of-an/m-p/442309#M21520</link>
      <description>&lt;P&gt;Ok, thank you very much, now it works for me. Do you know if it is possible to export 2 tables in the second sheet?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Mar 2018 11:41:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-export-several-tables-in-2-differents-sheets-of-an/m-p/442309#M21520</guid>
      <dc:creator>Marta27</dc:creator>
      <dc:date>2018-03-05T11:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: How can I export several tables in 2 differents sheets of an excel document with ods?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-export-several-tables-in-2-differents-sheets-of-an/m-p/444940#M21521</link>
      <description>you use the same basic code for the second sheet, as was used in the example on the first sheet</description>
      <pubDate>Mon, 12 Mar 2018 21:02:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-export-several-tables-in-2-differents-sheets-of-an/m-p/444940#M21521</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2018-03-12T21:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: How can I export several tables in 2 differents sheets of an excel document with ods?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-export-several-tables-in-2-differents-sheets-of-an/m-p/445183#M21522</link>
      <description>&lt;P&gt;I don't think I understand what you mean, I tried first to write:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ods excel&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; options(&amp;nbsp; sheet_interval= 'now'&amp;nbsp; sheet_name="sheet2"&amp;nbsp; ');&lt;/P&gt;&lt;P&gt;and it export me each table in one sheet after that sentence is written. I also tried writting this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ods excel&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; options(&amp;nbsp; sheet_interval= 'now'&amp;nbsp; sheet_name="sheet2" );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ods excel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; options ( sheet_interval = 'none' sheet_name = "sheet2"&amp;nbsp; embedded_titles= 'on' );&lt;/P&gt;&lt;P&gt;I don't know if you were refering to any of this ones but if it isn't, Would you mind explaining your way, please?&lt;/P&gt;&lt;P&gt;Thank you &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 14:27:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-export-several-tables-in-2-differents-sheets-of-an/m-p/445183#M21522</guid>
      <dc:creator>Marta27</dc:creator>
      <dc:date>2018-03-13T14:27:10Z</dc:date>
    </item>
  </channel>
</rss>

