<?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 targets.excelxp in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-targets-excelxp/m-p/137224#M11065</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; I don't know what you mean by "the HTML View is showing it left justified but I am not able to control it in excel" -- when you use TAGSETS.EXCELXP, you are creating an XML file, not an HTML file. Do you mean the automatic HTML file that you can get in Windows? I would expect your code to work on all servers, unless as Reeza suggests, the two servers are using different versions of the destination, although you can check that in the log. When I run the code below, my character variables are left justified (which is the default, so you really don't need the extra control). But if you run this code in Unix and get right-justified character variables, then your best resource is to work with Tech Support on a resolution. This output shows all the default justifications and I used TAGATTR to make sure that a large PIDNUM was formatted correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cynthia&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;data testit;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; set sashelp.shoes;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; index = stores;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; acctname = region;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; pidnum = int(sales*1377);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; pidname = product;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; insurance_type = upcase(substr(subsidiary,1,3));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods tagsets.excelxp file='c:\temp\testjust_default.xls' style=sasweb;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc report data=testit(obs=15) nowd&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; style(header)={cellwidth=2in};&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;column index acctname pidnum pidname insurance_type;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;define index / display 'Index=R';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;define acctname / display 'Acctname = L';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;define pidnum / display style(column)={tagattr="#########000"} 'Num=R';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;define pidname / display 'PIDNAME= L';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;define insurance_type / display 'I_T = L';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods tagsets.excelxp close;&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10644i35A6BAB8B1A170E6/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="show_default_just.png" title="show_default_just.png" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Mar 2014 22:05:55 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2014-03-07T22:05:55Z</dc:date>
    <item>
      <title>ODS targets.excelxp</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-targets-excelxp/m-p/137222#M11063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an&amp;nbsp; issue with ODS excelxp&amp;nbsp; as shown in image below. The Char variable are set to justify right, even though i have a just=L in the proc report. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is happening in a Unix SAS server. I copied the sas dataset to windows and there the same code sees to be working fine with ODS targerts.excelxp&lt;/P&gt;&lt;P&gt;. &lt;/P&gt;&lt;P&gt;The HTML View is showing it left justified, but I am not able to control it in excel &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Question on proc report ODS excexp.JPG" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/5118_Question on proc report ODS excexp.JPG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;Proc report definition - &lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;define GROUP_INDEX&lt;/TD&gt;&lt;TD&gt;/ DISPLAY 'GROUP INDEX' STYLE(column)={JUST=LEFT CELLWIDTH=0.6in };&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;define GROUP_NAME&lt;/TD&gt;&lt;TD&gt;/ display 'PID NAME' STYLE(column)={JUST=LEFT CELLWIDTH=2.8 in };&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;define ACCOUNT_NAME&lt;/TD&gt;&lt;TD&gt;/ display 'ACCOUNT NAME' STYLE(column)={JUST=LEFT CELLWIDTH=2.2in };&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11687i63BD1730EA5D89A5/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Question on proc report ODS excexp.JPG" title="Question on proc report ODS excexp.JPG" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 20:09:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-targets-excelxp/m-p/137222#M11063</guid>
      <dc:creator>Smijoss</dc:creator>
      <dc:date>2014-03-07T20:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: ODS targets.excelxp</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-targets-excelxp/m-p/137223#M11064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;are both using the same version of the tagset?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 21:21:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-targets-excelxp/m-p/137223#M11064</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-03-07T21:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: ODS targets.excelxp</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-targets-excelxp/m-p/137224#M11065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; I don't know what you mean by "the HTML View is showing it left justified but I am not able to control it in excel" -- when you use TAGSETS.EXCELXP, you are creating an XML file, not an HTML file. Do you mean the automatic HTML file that you can get in Windows? I would expect your code to work on all servers, unless as Reeza suggests, the two servers are using different versions of the destination, although you can check that in the log. When I run the code below, my character variables are left justified (which is the default, so you really don't need the extra control). But if you run this code in Unix and get right-justified character variables, then your best resource is to work with Tech Support on a resolution. This output shows all the default justifications and I used TAGATTR to make sure that a large PIDNUM was formatted correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cynthia&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;data testit;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; set sashelp.shoes;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; index = stores;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; acctname = region;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; pidnum = int(sales*1377);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; pidname = product;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; insurance_type = upcase(substr(subsidiary,1,3));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods tagsets.excelxp file='c:\temp\testjust_default.xls' style=sasweb;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc report data=testit(obs=15) nowd&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; style(header)={cellwidth=2in};&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;column index acctname pidnum pidname insurance_type;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;define index / display 'Index=R';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;define acctname / display 'Acctname = L';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;define pidnum / display style(column)={tagattr="#########000"} 'Num=R';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;define pidname / display 'PIDNAME= L';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;define insurance_type / display 'I_T = L';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods tagsets.excelxp close;&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10644i35A6BAB8B1A170E6/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="show_default_just.png" title="show_default_just.png" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 22:05:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-targets-excelxp/m-p/137224#M11065</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2014-03-07T22:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: ODS targets.excelxp</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-targets-excelxp/m-p/137225#M11066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cynthia ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks you for the Quic response,&amp;nbsp;&amp;nbsp; The added two Char variables to your code.&lt;/P&gt;&lt;P&gt;and both are coming out as left justified the the results screen but&amp;nbsp; right justified on the excel sheet. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the images below. Thanks .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data testit;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set sashelp.shoes;&lt;/P&gt;&lt;P&gt;&amp;nbsp; index = stores;&lt;/P&gt;&lt;P&gt;&amp;nbsp; acctname = region;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Char_var&amp;nbsp; = "weekend is near";&lt;/P&gt;&lt;P&gt;&amp;nbsp; pidname = product;&lt;/P&gt;&lt;P&gt;&amp;nbsp; insurance_type = "This is test";&lt;/P&gt;&lt;P&gt;&amp;nbsp; pidnum = int(sales*1377);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods tagsets.excelxp file='/apps/sas/datasets/data10/NAMSA92/TEST/zmsa_Smijo/testjust_default.xls' style=sasweb;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc report data=testit(obs=15) nowd&lt;/P&gt;&lt;P&gt;&amp;nbsp; style(header)={cellwidth=2in};&lt;/P&gt;&lt;P&gt;column index Char_var acctname pidnum pidname insurance_type;&lt;/P&gt;&lt;P&gt;define index / display 'Index=R';&lt;/P&gt;&lt;P&gt;define Char_var&amp;nbsp; / display 'Acctname = L'&amp;nbsp; style(column)={just=L};&lt;/P&gt;&lt;P&gt;define pidnum / display style(column)={tagattr="#########000"} 'Num=R';&lt;/P&gt;&lt;P&gt;define pidname / display 'PIDNAME= L';&lt;/P&gt;&lt;P&gt;define insurance_type / display 'I_T = L';&lt;/P&gt;&lt;P&gt;Title 'This is justify testing' ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods tagsets.excelxp close;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="untitled1.JPG" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/5122_untitled1.JPG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="untitled2.JPG" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/5123_untitled2.JPG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="untitled3.JPG" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/5124_untitled3.JPG" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 22:37:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-targets-excelxp/m-p/137225#M11066</guid>
      <dc:creator>Smijoss</dc:creator>
      <dc:date>2014-03-07T22:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: ODS targets.excelxp</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-targets-excelxp/m-p/137226#M11067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="1002" data-externalid="" data-presence="null" data-userid="255172" data-username="Reeza" href="https://communities.sas.com/people/Reeza" id="jive-2551729612178734298711" style="padding: 0 3px 0 0; font-weight: inherit; font-style: inherit; font-size: 1.1em; font-family: inherit; color: #0e66ba;"&gt;Reeza&lt;/A&gt; , Thank you for the response - &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I tired with a recent&amp;nbsp; tagset -&amp;nbsp; &lt;/P&gt;&lt;P&gt;Still shows same result &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://communities.sas.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;29&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ods tagsets.excelxp file='/apps/sas/datasets/data10/NAMSA92/TEST/zmsa_Smijo/testjust_default.xls' style=sasweb;&lt;/P&gt;&lt;P&gt;NOTE: Writing TAGSETS.EXCELXP Body file: /apps/sas/datasets/data10/NAMSA92/TEST/zmsa_Smijo/testjust_default.xls&lt;/P&gt;&lt;P&gt;NOTE: This is the Excel XP tagset (Compatible with SAS 9.1.3 and above, v1.130, 08/02/2013). Add options(doc='help') to the ods &lt;/P&gt;&lt;P&gt;statement for more information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 22:45:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-targets-excelxp/m-p/137226#M11067</guid>
      <dc:creator>Smijoss</dc:creator>
      <dc:date>2014-03-07T22:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: ODS targets.excelxp</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-targets-excelxp/m-p/137227#M11068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One more thing. out of curiosity&amp;nbsp; i replaced proc report with proc print and i get the same issue -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data testit;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Char_var&amp;nbsp; = "weekend is near";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods tagsets.excelxp file='/apps/sas/datasets/data10/NAMSA92/TEST/zmsa_Smijo/testjust_default.xls'&lt;/P&gt;&lt;P&gt;&amp;nbsp; style=sasweb&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print data=testit ;&lt;/P&gt;&lt;P&gt;Format Char_var $char50. ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods tagsets.excelxp close;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 23:05:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-targets-excelxp/m-p/137227#M11068</guid>
      <dc:creator>Smijoss</dc:creator>
      <dc:date>2014-03-07T23:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: ODS targets.excelxp</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-targets-excelxp/m-p/137228#M11069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&amp;nbsp; I am running this version by default:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;NOTE: Writing TAGSETS.EXCELXP Body file: c:\temp\testjust_default2.xls&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;NOTE: This is the Excel XP tagset (Compatible with SAS 9.1.3 and above, v1.129, 11/07/2011). Add options(doc='help') to the ods&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;statement for more information.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;And still all my character variables are left justified by default.&amp;nbsp; But, since I wasn't running the same version as you reported, I updated my template and reran the code and the results of using version 1.130 are also attached. Still left justified in Windows. I do not have a Unix system to play on. But Tech Support can test your code on Unix. Did you open a track with Tech Support?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;data testit;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; length char_var $50;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; set sashelp.shoes(obs=5);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; Char_var&amp;nbsp; = "weekend is near";&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods tagsets.excelxp file='c:\temp\testjust_default2.xls'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; options(embedded_titles='yes')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; style=sasweb&amp;nbsp;&amp;nbsp; ;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;proc print data=testit noobs;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;title 'All character vars are left justified and all numeric vars are right justified';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods tagsets.excelxp close;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10719i4EB1B8F02CB4106B/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="still_left_just_vers_1130.png" title="still_left_just_vers_1130.png" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10720iEAE5FAF334A66851/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="char_var_still_left_justified.png" title="char_var_still_left_justified.png" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Mar 2014 03:04:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-targets-excelxp/m-p/137228#M11069</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2014-03-08T03:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: ODS targets.excelxp</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-targets-excelxp/m-p/137229#M11070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Cynthia,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Yes, I have raised a ticket with tech support team. They are working on it.&amp;nbsp; I will update you once I have an answer.&amp;nbsp; Thank you so much for your time and efforts to help. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Have a great day ahead ! thanks .&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 15:21:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-targets-excelxp/m-p/137229#M11070</guid>
      <dc:creator>Smijoss</dc:creator>
      <dc:date>2014-03-12T15:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: ODS targets.excelxp</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-targets-excelxp/m-p/137230#M11071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reply from sas tech team : &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px; background-color: #ffffff;"&gt;The problem here appears to be the hot fix installed C0003 modified the the Base.Template.Style which is used as a&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px; background-color: #ffffff;"&gt;parent to all other styles. In this style that you sent me, if you scroll down to the Data, you will see that the Text-Align&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px; background-color: #ffffff;"&gt;style property was set to right. WE can modify the style and compile it and this will correct the problem for you. However, it SAS is installed on the Server, then we will need to compile this in SASHELP to see it change. You can add the below&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px; background-color: #ffffff;"&gt;ODS PATH statement to tell SAS add this to the WORK location or another location. Please let me know how this works after recompiling the below style&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px; background-color: #ffffff;"&gt;Run the following code -&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px; background-color: #ffffff;"&gt;proc template;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px; background-color: #ffffff;"&gt;&amp;nbsp; source&amp;nbsp; Base.Template.Style / file="&lt;/SPAN&gt;&lt;SPAN class="il" style="background-color: #ffffcc; color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;some&lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;SPAN class="il" style="background-color: #ffffcc; color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px;"&gt;directory&lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px; background-color: #ffffff;"&gt;\style.txt";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px; background-color: #ffffff;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open the output file to see the &lt;SPAN style="color: #000000; font-family: 'Courier New', Courier, monospace; font-size: 14px; background-color: #ffffff;"&gt;Base.Template.Style&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Courier New', Courier, monospace; font-size: 14.44444465637207px; background-color: #ffffff;"&gt;define style Base.Template.Style;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Courier New', Courier, monospace; font-size: 14.44444465637207px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; notes "Implicit parent for all style templates";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;:&amp;nbsp; searchfor below text and remove the align setting&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Courier New', Courier, monospace; font-size: 14.44444465637207px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; style Data from Cell&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Courier New', Courier, monospace; font-size: 14.44444465637207px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Default style for data cells in columns." &lt;SPAN style="text-decoration: line-through;"&gt;/&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'Courier New', Courier, monospace; font-size: 14.44444465637207px; background-color: #ffffff;"&gt;&lt;SPAN style="text-decoration: line-through;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; textalign = right&lt;/SPAN&gt;;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Courier New', Courier, monospace; font-size: 14.44444465637207px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Courier New', Courier, monospace; font-size: 14.44444465637207px; background-color: #ffffff;"&gt;The text alignment attribute abbove was causing the issue, remove it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Courier New', Courier, monospace; font-size: 14.44444465637207px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Courier New', Courier, monospace; font-size: 14.44444465637207px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Courier New', Courier, monospace; font-size: 14.44444465637207px; background-color: #ffffff;"&gt;They gave me an update command, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px; background-color: #ffffff;"&gt;ods path(prepend) work.templat(update);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px; background-color: #ffffff;"&gt;%include "styles.txt";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px; background-color: #ffffff;"&gt;/* your code */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px; background-color: #ffffff;"&gt;But it didnot seem to work (probably it defaults to server) so i gave a new style with the same description and used it and it worked!.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 17:07:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-targets-excelxp/m-p/137230#M11071</guid>
      <dc:creator>Smijoss</dc:creator>
      <dc:date>2014-03-28T17:07:40Z</dc:date>
    </item>
  </channel>
</rss>

