<?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 to apply the format when export data into excel format is missing in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-apply-the-format-when-export-data-into-excel-format-is/m-p/193848#M13120</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i seen your image the problem was in this image the numeric variable are in the format comma8.1 ,comma8.2, comma8.3&lt;/P&gt;&lt;P&gt;but in my dataset its having proc format i.e. fmt32.&lt;/P&gt;&lt;P&gt;in that variable both comma32. and percent12.1 are available.&lt;/P&gt;&lt;P&gt;So when using this image code its not working.&lt;/P&gt;&lt;P&gt;i think you have seen my proc format above.&lt;/P&gt;&lt;P&gt;i want to export it into excel.&lt;/P&gt;&lt;P&gt;So could you please help me to export the whole variable into in a single with comma and percentage format.&lt;/P&gt;&lt;P&gt;it will be great helpful for me anybody to give comments.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Apr 2015 06:47:26 GMT</pubDate>
    <dc:creator>Ravikumarkummari</dc:creator>
    <dc:date>2015-04-15T06:47:26Z</dc:date>
    <item>
      <title>how to apply the format when export data into excel format is missing</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-apply-the-format-when-export-data-into-excel-format-is/m-p/193836#M13108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Good day all,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;i have the dataset of emp data.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;its having different formats for salary variable. comma and percent format.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;so i&amp;nbsp; apply proc format for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;PROC FORMAT;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;VALUE FMT&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; LOW-0,1-HIGH=[COMMA32.]&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; OTHER=[PERCENT8.1]&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;RUN;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;empno&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; salary&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;aaa&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,52,133&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;bbb&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2,50,111&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;aaa&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 25%&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;bbb&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 50%.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;in proc report its showing as it is. but while exporting it into excel only percentages format is applying. the comma format is missing.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;after export into excel the output like this.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;empno&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; salary&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;aaa&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 152133&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;bbb&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 250111&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;aaa&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 25%&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;bbb&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 50%&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;how to get the required output with applying comma and percentage format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;your valid comments are helps me a lot.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Apr 2015 11:56:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-apply-the-format-when-export-data-into-excel-format-is/m-p/193836#M13108</guid>
      <dc:creator>Ravikumarkummari</dc:creator>
      <dc:date>2015-04-11T11:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to apply the format when export data into excel format is missing</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-apply-the-format-when-export-data-into-excel-format-is/m-p/193837#M13109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Your posted data doesn't make sense to me. You say that these are the values for SALARY: 1,52,133 or 2,50,111 -- but why do you have commas in inappropriate places? Usually the commas stand as the THOUSANDS separator -- this is what COMMA31 will give you. So if you want 1,52,133, you will NOT get that from COMMA32 -- what you would get for 152133 is 152,133 and what you would get for 1234567 is&amp;nbsp; 1,234,567; and what you would get&amp;nbsp; for 123456789 is 123,456,789; and what you would get for 987654321123456789 is 987,654,321,123,456,789 so your representation of the data doesn't make sense. Second, even through EMPNO is fake, do you really have non-unique EMPNO values? Is this pre-summarized data? Do you have one ROW with a value AAA and then a second row with EXACTLY the same value of AAA? That doesn't make sense either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Finally, what PROC REPORT code have you tried? What is your destination of interest? How are you making your file for Excel? Excel generally ignores any SAS formats that you send to it -- it uses a default column width and default "General" format for numbers. Excel doesn't like numbers stored as text and so without seeing some code, including your ODS statements, it is hard to comment in a constructive way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Apr 2015 14:11:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-apply-the-format-when-export-data-into-excel-format-is/m-p/193837#M13109</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2015-04-11T14:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to apply the format when export data into excel format is missing</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-apply-the-format-when-export-data-into-excel-format-is/m-p/193838#M13110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very funny. Even I change it into character variable. Excel is still considering it as a numeric value . Therefore ,I have to put a TAB character before it to make it as character forcedly .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;
PROC FORMAT;
VALUE FMT
&amp;nbsp; LOW-0,1-HIGH=[COMMA32.2]
&amp;nbsp; OTHER=[PERCENT8.1]
&amp;nbsp; ;
RUN;

&amp;nbsp; data have;
input&amp;nbsp; value;
cards;
0.5
0.8
4323
232134.87
4563454.8
457456.9
4642348.7
453439.8
;
run;

ods listing close;
ods tagsets.excelxp file='c:\temp\z.xls' style=sasweb;
proc report data=have nowd;
column value v;
define value/display noprint;
define v/computed ;
compute v/character length=30;
 v='09'x||put(value,fmt18. -l) ;
endcomp;
run;
ods tagsets.excelxp close;
ods listing;

&lt;/PRE&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;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Xia Keshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Apr 2015 14:12:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-apply-the-format-when-export-data-into-excel-format-is/m-p/193838#M13110</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-04-11T14:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to apply the format when export data into excel format is missing</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-apply-the-format-when-export-data-into-excel-format-is/m-p/193839#M13111</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; The user-defined format will work for other ODS destinations, like RTF, PDF and HTML, but will rarely work for Excel. Instead of making a character variable or padding with a tab character, the OP could use CALL DEFINE. But without knowing what destination is being used to get the output into Excel -- could be CSV, could be HTML, could be XML -- there's no way to show the proper CALL DEFINE code. It would be useful for the OP to post some sample code and explain the anomalies in the comma format for the numbers that were posted.&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Apr 2015 18:20:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-apply-the-format-when-export-data-into-excel-format-is/m-p/193839#M13111</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2015-04-11T18:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to apply the format when export data into excel format is missing</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-apply-the-format-when-export-data-into-excel-format-is/m-p/193840#M13112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="165"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="20" width="165"&gt;Jan-15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;4,310,017,319&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;33,339,23,219&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;25,413,78,417&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;3.50%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;4.50%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;8.70%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;this what i have up to mar-15. and initially the variable jan15 is in character format. for calculations i converted it into fmt32. format.&lt;/P&gt;&lt;P&gt;I applied proc format like this. &lt;/P&gt;&lt;P&gt;PROC FORMAT;&lt;/P&gt;&lt;P&gt;VALUE FMT&lt;/P&gt;&lt;P&gt; 1-HIGH=[COMMA32.]&lt;/P&gt;&lt;P&gt;LOW-0.9999=[PERCENT12.1]&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;now the variable jan15 is in numeric format.&lt;/P&gt;&lt;P&gt;after applying &lt;/P&gt;&lt;P&gt;ods tagsets.excelxp file="D:\sample.xls" ;&lt;/P&gt;&lt;P&gt;proc report data=emp nowd;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods tagsets.excelxp close;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i used this code for exporting. but what happened is that in excel file only percentage format is appearing but comma format is missing.&lt;/P&gt;&lt;P&gt;can you help me madam to solve this problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 09:04:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-apply-the-format-when-export-data-into-excel-format-is/m-p/193840#M13112</guid>
      <dc:creator>Ravikumarkummari</dc:creator>
      <dc:date>2015-04-14T09:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to apply the format when export data into excel format is missing</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-apply-the-format-when-export-data-into-excel-format-is/m-p/193841#M13113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am using sas 9.2 and msoffice version in 2010.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 09:05:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-apply-the-format-when-export-data-into-excel-format-is/m-p/193841#M13113</guid>
      <dc:creator>Ravikumarkummari</dc:creator>
      <dc:date>2015-04-14T09:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to apply the format when export data into excel format is missing</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-apply-the-format-when-export-data-into-excel-format-is/m-p/193842#M13114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can anyone know the answer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 10:44:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-apply-the-format-when-export-data-into-excel-format-is/m-p/193842#M13114</guid>
      <dc:creator>Ravikumarkummari</dc:creator>
      <dc:date>2015-04-14T10:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to apply the format when export data into excel format is missing</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-apply-the-format-when-export-data-into-excel-format-is/m-p/193843#M13115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As your using ods tagsets.excelxp then you will want a style with tagattr options:&lt;/P&gt;&lt;P&gt;proc report...;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define your_column / style={tagattr="format:#,##0.00"};&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However looking through your text, it seems you want different formats on different cells.&amp;nbsp; I don't think you can do this directly.&amp;nbsp; SAS is a structured labguage, i.e. a column only has one format applied to all values.&amp;nbsp; SAS != Excel.&amp;nbsp; You could post process the data, or convert the numeric to text in the format you want.&amp;nbsp; Then put the tagattr as text to avoid Excel converting it to number again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 10:58:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-apply-the-format-when-export-data-into-excel-format-is/m-p/193843#M13115</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-04-14T10:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to apply the format when export data into excel format is missing</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-apply-the-format-when-export-data-into-excel-format-is/m-p/193844#M13116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;First we need to understand that proc format only helps to "see your data" as per your expectation - it happens in proc export.&lt;/P&gt;&lt;P&gt;However, only the true values are exported to excel.&amp;nbsp; To explicitly apply formats in excel, you need to use tagattr only.&lt;/P&gt;&lt;P&gt;Also, since your column format is a custom in nature, you may need to prepare a new format and apply to it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 11:08:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-apply-the-format-when-export-data-into-excel-format-is/m-p/193844#M13116</guid>
      <dc:creator>MarkNicholas</dc:creator>
      <dc:date>2015-04-14T11:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to apply the format when export data into excel format is missing</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-apply-the-format-when-export-data-into-excel-format-is/m-p/193845#M13117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This seems to be the same as&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="265784" __jive_macro_name="message" class="jive_macro jive_macro_message" href="https://communities.sas.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 11:21:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-apply-the-format-when-export-data-into-excel-format-is/m-p/193845#M13117</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2015-04-14T11:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to apply the format when export data into excel format is missing</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-apply-the-format-when-export-data-into-excel-format-is/m-p/193846#M13118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try my code ? force it to be a character value by adding a TAB before it .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 12:22:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-apply-the-format-when-export-data-into-excel-format-is/m-p/193846#M13118</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-04-14T12:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to apply the format when export data into excel format is missing</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-apply-the-format-when-export-data-into-excel-format-is/m-p/193847#M13119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt; But in your original posting, you show TWO variables: EMPNO and SALARY. Yet, in your PROC REPORT code, you do not show any COLUMN statement or show where you use the format you've created. You describe the data as having "Jan-15", but in your original data, you did not have a DATE variable. Can you post some sample data and ALL of your PROC REPORT code that shows how you are using the format. Here is a simple example using SASHELP.CLASS -- I know this is not structured like your data, but since you have described the data differently in several postings, it is impossible to understand what your data looks like. But this REPORT examples does show the only way to illustrate using different formats with TAGSETS.EXCELXP.&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;P&gt;&lt;IMG alt="diff_formats_same_col.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/10031_diff_formats_same_col.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 16:21:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-apply-the-format-when-export-data-into-excel-format-is/m-p/193847#M13119</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2015-04-14T16:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to apply the format when export data into excel format is missing</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-apply-the-format-when-export-data-into-excel-format-is/m-p/193848#M13120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i seen your image the problem was in this image the numeric variable are in the format comma8.1 ,comma8.2, comma8.3&lt;/P&gt;&lt;P&gt;but in my dataset its having proc format i.e. fmt32.&lt;/P&gt;&lt;P&gt;in that variable both comma32. and percent12.1 are available.&lt;/P&gt;&lt;P&gt;So when using this image code its not working.&lt;/P&gt;&lt;P&gt;i think you have seen my proc format above.&lt;/P&gt;&lt;P&gt;i want to export it into excel.&lt;/P&gt;&lt;P&gt;So could you please help me to export the whole variable into in a single with comma and percentage format.&lt;/P&gt;&lt;P&gt;it will be great helpful for me anybody to give comments.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 06:47:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-apply-the-format-when-export-data-into-excel-format-is/m-p/193848#M13120</guid>
      <dc:creator>Ravikumarkummari</dc:creator>
      <dc:date>2015-04-15T06:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to apply the format when export data into excel format is missing</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-apply-the-format-when-export-data-into-excel-format-is/m-p/193849#M13121</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; And, as I indicated in&amp;nbsp; a previous posting: "The user-defined format will work for other ODS destinations, like RTF, PDF and HTML, but will rarely work for Excel." So the CALL DEFINE method is the one you will have to use to get Excel to respect any of your formats. I just included the formats for comma8.1, comma8.2 and comma8.3 to illustrate how you would change them. You could certainly make them comma32. instead.&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 01:45:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-apply-the-format-when-export-data-into-excel-format-is/m-p/193849#M13121</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2015-04-16T01:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to apply the format when export data into excel format is missing</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-apply-the-format-when-export-data-into-excel-format-is/m-p/193850#M13122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I followed your procedure Cythia madam, the code is below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODS TAGSETS.EXCELXP FILE="D:\OUTPUT.XLS" ;&lt;/P&gt;&lt;P&gt;PROC REPORT DATA=WORK.EMP NOWD;&lt;/P&gt;&lt;P&gt;DEFINE&amp;nbsp; DEC14 / SUM FORMAT= FMT32. WIDTH=32&amp;nbsp;&amp;nbsp;&amp;nbsp; SPACING=2&amp;nbsp;&amp;nbsp; RIGHT "DEC-14" ;&lt;/P&gt;&lt;P&gt;COMPUTE DEC14;&lt;/P&gt;&lt;P&gt;IF X IN(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20)&amp;nbsp; THEN DO;&lt;/P&gt;&lt;P&gt;CALL DEFINE (_COL_,'STYLE', 'STYLE={TAGATTR="FORMAT:#,###,###"}');&lt;/P&gt;&lt;P&gt;END;&lt;/P&gt;&lt;P&gt;IF X IN(21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40) THEN DO;&lt;/P&gt;&lt;P&gt;CALL DEFINE (_COL_,'STYLE', 'STYLE={TAGATTR="FORMAT:###.0\%"}');&lt;/P&gt;&lt;P&gt;END;&lt;/P&gt;&lt;P&gt;ENDCOMP;&lt;/P&gt;&lt;P&gt;ODS TAGSETS,EXCELXP CLOSE;&lt;/P&gt;&lt;P&gt;I CREATED X VARIABLE FOR ROWNUMBER IN DATASTEP.&lt;/P&gt;&lt;P&gt;X=_N_;&lt;/P&gt;&lt;P&gt;But in output result only percent format is applying and comma format is missing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 06:33:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-apply-the-format-when-export-data-into-excel-format-is/m-p/193850#M13122</guid>
      <dc:creator>Ravikumarkummari</dc:creator>
      <dc:date>2015-04-21T06:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to apply the format when export data into excel format is missing</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-apply-the-format-when-export-data-into-excel-format-is/m-p/193851#M13123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe for your purpose , should like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;IF&lt;STRONG&gt; X&amp;gt;1 or X&amp;lt;0&lt;/STRONG&gt; THEN DO;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;CALL DEFINE (_COL_,'STYLE', 'STYLE={TAGATTR="FORMAT:#,###,###"}');&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;END;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;IF&lt;STRONG&gt; 0&amp;lt;=X&amp;lt;=1&lt;/STRONG&gt; THEN DO;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;CALL DEFINE (_COL_,'STYLE', 'STYLE={TAGATTR="FORMAT:###.0\%"}');&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;END;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 12:09:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-apply-the-format-when-export-data-into-excel-format-is/m-p/193851#M13123</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-04-21T12:09:44Z</dc:date>
    </item>
  </channel>
</rss>

