<?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 markup in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ods-markup/m-p/895205#M43705</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Enable the ODS MARKUP destination */
ods markup file="example.xlsx" style=sasweb;

/* Your SAS code here */
data example;
   input Name $ Age Height Weight;
   datalines;
John 25 175 70
Mary 30 160 55
Bob 28 180 80
;

/* First PROC REPORT */
ods text=" "; /* Insert a page break before the first PROC REPORT */
proc report data=example nowd;
   /* Define your first report here */
   column Name Age Height Weight;
   define Name / display;
   define Age / display;
   define Height / display;
   define Weight / display;
run;

/* Insert another page break between reports */
ods text=" "; /* Insert a page break before the second PROC REPORT */

/* Second PROC REPORT */
proc report data=example nowd;
   /* Define your second report here */
   column Name Age Height;
   define Name / display;
   define Age / display;
   define Height / display;
run;

/* Disable the ODS MARKUP destination */
ods markup close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt;ods text=" ";  code&amp;nbsp;Creating&amp;nbsp;the&amp;nbsp;box&amp;nbsp;.&amp;nbsp;i&amp;nbsp;need&amp;nbsp;to &lt;SPAN&gt;one proc report one page and second proc report on second page&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Sep 2023 10:29:41 GMT</pubDate>
    <dc:creator>Daily1</dc:creator>
    <dc:date>2023-09-21T10:29:41Z</dc:date>
    <item>
      <title>Ods markup</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ods-markup/m-p/895205#M43705</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Enable the ODS MARKUP destination */
ods markup file="example.xlsx" style=sasweb;

/* Your SAS code here */
data example;
   input Name $ Age Height Weight;
   datalines;
John 25 175 70
Mary 30 160 55
Bob 28 180 80
;

/* First PROC REPORT */
ods text=" "; /* Insert a page break before the first PROC REPORT */
proc report data=example nowd;
   /* Define your first report here */
   column Name Age Height Weight;
   define Name / display;
   define Age / display;
   define Height / display;
   define Weight / display;
run;

/* Insert another page break between reports */
ods text=" "; /* Insert a page break before the second PROC REPORT */

/* Second PROC REPORT */
proc report data=example nowd;
   /* Define your second report here */
   column Name Age Height;
   define Name / display;
   define Age / display;
   define Height / display;
run;

/* Disable the ODS MARKUP destination */
ods markup close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt;ods text=" ";  code&amp;nbsp;Creating&amp;nbsp;the&amp;nbsp;box&amp;nbsp;.&amp;nbsp;i&amp;nbsp;need&amp;nbsp;to &lt;SPAN&gt;one proc report one page and second proc report on second page&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 10:29:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ods-markup/m-p/895205#M43705</guid>
      <dc:creator>Daily1</dc:creator>
      <dc:date>2023-09-21T10:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Ods markup</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ods-markup/m-p/895289#M43710</link>
      <description>&lt;P&gt;Why ODS MARKUP?&lt;/P&gt;
&lt;P&gt;ODS Excel by default will put each table of output on a separate sheet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, ODS MARKUP when you don't provide a TAGSET name generates stuff that is not actually XLSX and can cause issues with programs attempting to open the file complaining that the source is not proper.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should get in the habit of always including a full path, such as starting at a drive letter, drive mount point or network share for file names such as file= "C:\users\john\mydatafolder\example.xlsx". Otherwise you may spend a lot time trying to find where that file was written or get to troubleshoot errors where the file tries to write to a location that you don't have permissions.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 15:26:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ods-markup/m-p/895289#M43710</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-09-21T15:26:12Z</dc:date>
    </item>
  </channel>
</rss>

