<?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: ODS TAGSETS.EXCELXP proc report : remove an empty line in the header of the exported excel file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ODS-TAGSETS-EXCELXP-proc-report-remove-an-empty-line-in-the/m-p/414626#M101597</link>
    <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;Instead of this:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;column AXE_PRODUIT GENERATION measure periode_month_M0,value ;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;use one of these options:&lt;BR /&gt;Option 1) Change only column statement:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;column AXE_PRODUIT GENERATION measure &lt;FONT color="#FF00FF"&gt;value&lt;/FONT&gt;,&lt;FONT color="#0000FF"&gt;periode_month_M0&lt;/FONT&gt; ;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;or&lt;BR /&gt;Option 2) Change column statement to move header up on same level as values for periode_month_M0 and also, change define statements:&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;column ('Produit' AXE_PRODUIT) ('Generation' GENERATION) ('Indicateur' measure) periode_month_M0,value;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;define produit / group ' ';&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;define generation / group ' ';&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;define measure / ' ';&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Cynthia&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 18 Nov 2017 18:33:50 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2017-11-18T18:33:50Z</dc:date>
    <item>
      <title>ODS TAGSETS.EXCELXP proc report : remove an empty line in the header of the exported excel file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-TAGSETS-EXCELXP-proc-report-remove-an-empty-line-in-the/m-p/409216#M99965</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture empty line.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16359i95F8E9E73AECD1EF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture empty line.PNG" alt="Capture empty line.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;by executing this code, 2 empty lines appears &amp;nbsp;in the header (in yellow in the screenshot). I would like to remove them.&lt;/P&gt;&lt;P&gt;thanks a lot for your help&lt;/P&gt;&lt;P&gt;kind regards&lt;/P&gt;&lt;P&gt;Nasser&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ODS TAGSETS.EXCELXP FILE = "&amp;amp;xlsfile."  style=normal  ;

	/* 1er onglet : mois courant sans cumul */
	ODS TAGSETS.EXCELXP options ( skip_space='1,0,0,0,0'  sheet_name='mois courant sans cumul' ) ;
	PROC REPORT DATA = work.T7_MEASURES_M0 (where=(INDEX(Measure,'sans cumul'))) nowd ;
	column AXE_PRODUIT GENERATION measure periode_month_M0  , value ;
	define AXE_PRODUIT / group 'Produit' ;
		COMPUTE AXE_PRODUIT ;
		IF AXE_PRODUIT NE '' then hold_axe_produit = AXE_PRODUIT ;
		IF AXE_PRODUIT EQ '' then AXE_PRODUIT = hold_axe_produit ;
		ENDCOMP ;
	define GENERATION / group 'Génération' ; 
		COMPUTE GENERATION ;
		IF GENERATION NE '' then hold_GENERATION = GENERATION ;
		IF GENERATION EQ '' then GENERATION = hold_GENERATION ;
		ENDCOMP ;
	define measure /  group 'Indicateur' ;
	define periode_month_M0 / across '' ;
	define value / '' ;
		compute value ;
 		if INDEX(measure,'Mont') then do ;
 		call define(_COL_,'FORMAT','12.2') ;
 		end;
 		else call define(_COL_,'FORMAT','percent12.9') ;
 		endcomp ;
  	RUN ;
ODS TAGSETS.EXCELXP CLOSE ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 31 Oct 2017 17:04:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-TAGSETS-EXCELXP-proc-report-remove-an-empty-line-in-the/m-p/409216#M99965</guid>
      <dc:creator>Nasser_DRMCP</dc:creator>
      <dc:date>2017-10-31T17:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: ODS TAGSETS.EXCELXP proc report : remove an empty line in the header of the exported excel file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-TAGSETS-EXCELXP-proc-report-remove-an-empty-line-in-the/m-p/414626#M101597</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;Instead of this:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;column AXE_PRODUIT GENERATION measure periode_month_M0,value ;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;use one of these options:&lt;BR /&gt;Option 1) Change only column statement:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;column AXE_PRODUIT GENERATION measure &lt;FONT color="#FF00FF"&gt;value&lt;/FONT&gt;,&lt;FONT color="#0000FF"&gt;periode_month_M0&lt;/FONT&gt; ;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;or&lt;BR /&gt;Option 2) Change column statement to move header up on same level as values for periode_month_M0 and also, change define statements:&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;column ('Produit' AXE_PRODUIT) ('Generation' GENERATION) ('Indicateur' measure) periode_month_M0,value;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;define produit / group ' ';&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;define generation / group ' ';&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;define measure / ' ';&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Cynthia&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Nov 2017 18:33:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-TAGSETS-EXCELXP-proc-report-remove-an-empty-line-in-the/m-p/414626#M101597</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-11-18T18:33:50Z</dc:date>
    </item>
  </channel>
</rss>

