<?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: Multi title in 1row with ods excel and proc odstext in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Multi-title-in-1row-with-ods-excel-and-proc-odstext/m-p/807329#M318273</link>
    <description>&lt;P&gt;Thank you,&amp;nbsp;but your comment might be for my another question.[ Sheet_Interval='none' ]&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/ODS-EXCEL-1-sheet-with-multi-proc-step-no-dividng-separating/m-p/807314" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/SAS-Programming/ODS-EXCEL-1-sheet-with-multi-proc-step-no-dividng-separating/m-p/807314&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Apr 2022 09:44:29 GMT</pubDate>
    <dc:creator>t_ar_taat</dc:creator>
    <dc:date>2022-04-12T09:44:29Z</dc:date>
    <item>
      <title>Multi title in 1row with ods excel and proc odstext</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multi-title-in-1row-with-ods-excel-and-proc-odstext/m-p/807307#M318265</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I want to make more than 1 title (multi title / multi cell) in 1 row with ods excel.&lt;BR /&gt;What I want is&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="what-i-want.jpg" style="width: 200px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70302i9025C6242F429766/image-size/small?v=v2&amp;amp;px=200" role="button" title="what-i-want.jpg" alt="what-i-want.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;only 1 title like this is&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bef.jpg" style="width: 200px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70303iC5DA00181BA3E050/image-size/small?v=v2&amp;amp;px=200" role="button" title="bef.jpg" alt="bef.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;ods excel file= "D:\test.xlsx" ;

proc odstext;
  p "A";
run;  
proc print data=sashelp.heart(obs=5);
 var Status;
run;
ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;For get what I want, I change odstext to&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc odstext;
  p "A" "B" "C";
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;but it failed like this&lt;/P&gt;&lt;P&gt;667 proc odstext;&lt;BR /&gt;668 p "A" "B" "C";&lt;BR /&gt;___&lt;BR /&gt;22&lt;BR /&gt;76&lt;BR /&gt;ERROR: Syntax error while parsing WHERE clause.&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: ;, !, !!, &amp;amp;, *, **, +, -, /, &amp;lt;, &amp;lt;=, &amp;lt;&amp;gt;, =, &amp;gt;, &amp;gt;=, ?, AND, BETWEEN,&lt;BR /&gt;CONTAINS, EQ, GE, GT, IN, IS, LE, LIKE, LT, NE, NOT, NOTIN, OR, ^, ^=, |, ||, ~, ~=.&lt;BR /&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;BR /&gt;669 run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm happy if someone help me.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 07:49:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multi-title-in-1row-with-ods-excel-and-proc-odstext/m-p/807307#M318265</guid>
      <dc:creator>t_ar_taat</dc:creator>
      <dc:date>2022-04-12T07:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Multi title in 1row with ods excel and proc odstext</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multi-title-in-1row-with-ods-excel-and-proc-odstext/m-p/807324#M318272</link>
      <description>Have you tried the suggestion from Reeza in this post &lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-Single-Sheet-with-By-Groups/td-p/321793" target="_blank"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-Single-Sheet-with-By-Groups/td-p/321793&lt;/A&gt;.</description>
      <pubDate>Tue, 12 Apr 2022 09:24:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multi-title-in-1row-with-ods-excel-and-proc-odstext/m-p/807324#M318272</guid>
      <dc:creator>JosvanderVelden</dc:creator>
      <dc:date>2022-04-12T09:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Multi title in 1row with ods excel and proc odstext</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multi-title-in-1row-with-ods-excel-and-proc-odstext/m-p/807329#M318273</link>
      <description>&lt;P&gt;Thank you,&amp;nbsp;but your comment might be for my another question.[ Sheet_Interval='none' ]&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/ODS-EXCEL-1-sheet-with-multi-proc-step-no-dividng-separating/m-p/807314" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/SAS-Programming/ODS-EXCEL-1-sheet-with-multi-proc-step-no-dividng-separating/m-p/807314&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 09:44:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multi-title-in-1row-with-ods-excel-and-proc-odstext/m-p/807329#M318273</guid>
      <dc:creator>t_ar_taat</dc:creator>
      <dc:date>2022-04-12T09:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Multi title in 1row with ods excel and proc odstext</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multi-title-in-1row-with-ods-excel-and-proc-odstext/m-p/807521#M318390</link>
      <description>&lt;P&gt;I found a way for this with "declare odsout".&lt;BR /&gt;&lt;A href="https://www.lexjansen.com/phuse/2014/cs/CS01_ppt.pdf" target="_blank" rel="noopener"&gt;https://www.lexjansen.com/phuse/2014/cs/CS01_ppt.pdf&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;ods excel file= "D:\test.xlsx" ;

data _null_;
 declare odsout o();
 o.table_start();
 o.row_start();
 o.format_cell(text: 'text 1');
 o.format_cell(text: 'text 2');
 o.row_end();
 o.row_start();
 o.format_cell(text: 'text 3');
 o.format_cell(text: 'text 4');
 o.row_end();
 o.table_end();
 o.delete();
run;

proc print data=sashelp.heart(obs=5);
 var Status;
run;
ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="98.jpg" style="width: 131px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70334i4612882A6AE8B8D4/image-size/small?v=v2&amp;amp;px=200" role="button" title="98.jpg" alt="98.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2022 01:14:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multi-title-in-1row-with-ods-excel-and-proc-odstext/m-p/807521#M318390</guid>
      <dc:creator>t_ar_taat</dc:creator>
      <dc:date>2022-04-13T01:14:14Z</dc:date>
    </item>
  </channel>
</rss>

