<?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 EXCEL DROPPING LEADING ZEROES ON CHARACTER VARIABLE in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-DROPPING-LEADING-ZEROES-ON-CHARACTER-VARIABLE/m-p/401054#M19507</link>
    <description>&lt;P&gt;Hi.&amp;nbsp; I'm using ODS EXCEL to produce a proc report in Excel.&amp;nbsp; It works great except for dropping the leading zeroes of a character column (formatted character 7 in work table).&amp;nbsp; I know how to fix it with a tagsets.xp, but it doesn't work for ODS Excel.&amp;nbsp; How can I stop that from happening? Any help is appreciated.&amp;nbsp; See code.&amp;nbsp; Example: 0018362 shows up as 18362. The source data is stored as character fields.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods _all_ close;
data _null_;
rc= appsrv_header ('Content-type', 'application/vnd.ms-excel');
rc= appsrv_header ('Content-disposition','attachment;filename="results.xlsx"');
run;

ods excel file=_webout
options (sheet_interval='none'
		embedded_titles='yes'
		sheet_name='Parts Details'
		start_at='1,2'
		gridlines='on'
		orientation='landscape'
		tab_color='purple')
;

title justify=center font="Arial" height=14pt color=black bold ‘Parts Cost by Work Order';
title2 justify=center font="Arial" height=10pt color=black 'Data sorted by Total Cost';
proc report data=work.partssummary nowd headline headskip spacing=1 
style(header)={font_face="Arial" font_size=13pt bordercolor=black background=orange foreground=white}
style(column) = {background=white font_face="Arial" font_size=10pt};
columns (CC WORK_ORDER_NBR  New_Usage_CPN USAGE_MPN REC_CODE TRACKING_FLAG NOUN DESCRIPTION USAGE_QUANTITY AVER_PRICE AvgP_Q_NONMATCH); 
define CC / 'Parent CPN' center display style(column)=[cellwidth=85]; 
define WORK_ORDER_NBR / 'Work Order Nbr' center display; 
define New_usage_cpn / 'Child CPN' center display style(column)=[cellwidth=85]; 
define Usage_mpn / 'Child MPN' center display ; 
define REC_CODE / 'Resource Code' center display style(column)=[cellwidth=125]; 
define TRACKING_FLAG / 'Tracking Level' center display style(column)=[cellwidth=125]; 
define NOUN / 'Noun' center display style(column)=[cellwidth=125]; 
define Description / 'Description' center display style(column)=[cellwidth=200]; 
define Usage_quantity / 'Quantity' center display; 
define Aver_Price / 'Average Unit / Price (CPN)' right format=yaa. display; 
define AvgP_Q_NONMATCH / 'Total Cost' right analysis sum; 
rbreak after  / dol dul skip summarize ; 

run;

quit;
ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 04 Oct 2017 16:56:46 GMT</pubDate>
    <dc:creator>CLE</dc:creator>
    <dc:date>2017-10-04T16:56:46Z</dc:date>
    <item>
      <title>ODS EXCEL DROPPING LEADING ZEROES ON CHARACTER VARIABLE</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-DROPPING-LEADING-ZEROES-ON-CHARACTER-VARIABLE/m-p/401054#M19507</link>
      <description>&lt;P&gt;Hi.&amp;nbsp; I'm using ODS EXCEL to produce a proc report in Excel.&amp;nbsp; It works great except for dropping the leading zeroes of a character column (formatted character 7 in work table).&amp;nbsp; I know how to fix it with a tagsets.xp, but it doesn't work for ODS Excel.&amp;nbsp; How can I stop that from happening? Any help is appreciated.&amp;nbsp; See code.&amp;nbsp; Example: 0018362 shows up as 18362. The source data is stored as character fields.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods _all_ close;
data _null_;
rc= appsrv_header ('Content-type', 'application/vnd.ms-excel');
rc= appsrv_header ('Content-disposition','attachment;filename="results.xlsx"');
run;

ods excel file=_webout
options (sheet_interval='none'
		embedded_titles='yes'
		sheet_name='Parts Details'
		start_at='1,2'
		gridlines='on'
		orientation='landscape'
		tab_color='purple')
;

title justify=center font="Arial" height=14pt color=black bold ‘Parts Cost by Work Order';
title2 justify=center font="Arial" height=10pt color=black 'Data sorted by Total Cost';
proc report data=work.partssummary nowd headline headskip spacing=1 
style(header)={font_face="Arial" font_size=13pt bordercolor=black background=orange foreground=white}
style(column) = {background=white font_face="Arial" font_size=10pt};
columns (CC WORK_ORDER_NBR  New_Usage_CPN USAGE_MPN REC_CODE TRACKING_FLAG NOUN DESCRIPTION USAGE_QUANTITY AVER_PRICE AvgP_Q_NONMATCH); 
define CC / 'Parent CPN' center display style(column)=[cellwidth=85]; 
define WORK_ORDER_NBR / 'Work Order Nbr' center display; 
define New_usage_cpn / 'Child CPN' center display style(column)=[cellwidth=85]; 
define Usage_mpn / 'Child MPN' center display ; 
define REC_CODE / 'Resource Code' center display style(column)=[cellwidth=125]; 
define TRACKING_FLAG / 'Tracking Level' center display style(column)=[cellwidth=125]; 
define NOUN / 'Noun' center display style(column)=[cellwidth=125]; 
define Description / 'Description' center display style(column)=[cellwidth=200]; 
define Usage_quantity / 'Quantity' center display; 
define Aver_Price / 'Average Unit / Price (CPN)' right format=yaa. display; 
define AvgP_Q_NONMATCH / 'Total Cost' right analysis sum; 
rbreak after  / dol dul skip summarize ; 

run;

quit;
ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Oct 2017 16:56:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-DROPPING-LEADING-ZEROES-ON-CHARACTER-VARIABLE/m-p/401054#M19507</guid>
      <dc:creator>CLE</dc:creator>
      <dc:date>2017-10-04T16:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL DROPPING LEADING ZEROES ON CHARACTER VARIABLE</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-DROPPING-LEADING-ZEROES-ON-CHARACTER-VARIABLE/m-p/401058#M19508</link>
      <description>Search on here for this issue. Pretty sure it was answered last week.</description>
      <pubDate>Wed, 04 Oct 2017 17:00:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-DROPPING-LEADING-ZEROES-ON-CHARACTER-VARIABLE/m-p/401058#M19508</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-04T17:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL DROPPING LEADING ZEROES ON CHARACTER VARIABLE</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-DROPPING-LEADING-ZEROES-ON-CHARACTER-VARIABLE/m-p/401069#M19509</link>
      <description>&lt;P&gt;I've searched communities and Google.&amp;nbsp; I cant' find an answer that works.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 17:17:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-DROPPING-LEADING-ZEROES-ON-CHARACTER-VARIABLE/m-p/401069#M19509</guid>
      <dc:creator>CLE</dc:creator>
      <dc:date>2017-10-04T17:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL DROPPING LEADING ZEROES ON CHARACTER VARIABLE</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-DROPPING-LEADING-ZEROES-ON-CHARACTER-VARIABLE/m-p/401075#M19510</link>
      <description>&lt;P&gt;&lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-Data-with-Leading-Zeores/m-p/397851/highlight/true#M19400" target="_blank"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-Data-with-Leading-Zeores/m-p/397851/highlight/true#M19400&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 17:28:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-DROPPING-LEADING-ZEROES-ON-CHARACTER-VARIABLE/m-p/401075#M19510</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-04T17:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL DROPPING LEADING ZEROES ON CHARACTER VARIABLE</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-DROPPING-LEADING-ZEROES-ON-CHARACTER-VARIABLE/m-p/401089#M19511</link>
      <description>&lt;P&gt;Thank you. I tried this solution and it still drops the leading zeroes.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 17:49:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-DROPPING-LEADING-ZEROES-ON-CHARACTER-VARIABLE/m-p/401089#M19511</guid>
      <dc:creator>CLE</dc:creator>
      <dc:date>2017-10-04T17:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL DROPPING LEADING ZEROES ON CHARACTER VARIABLE</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-DROPPING-LEADING-ZEROES-ON-CHARACTER-VARIABLE/m-p/401095#M19512</link>
      <description>&lt;P&gt;Post your full sample code please and log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/72505"&gt;@CLE&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Thank you. I tried this solution and it still drops the leading zeroes.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 17:56:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-DROPPING-LEADING-ZEROES-ON-CHARACTER-VARIABLE/m-p/401095#M19512</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-04T17:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL DROPPING LEADING ZEROES ON CHARACTER VARIABLE</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-DROPPING-LEADING-ZEROES-ON-CHARACTER-VARIABLE/m-p/401343#M19520</link>
      <description>&lt;P&gt;Here is the&amp;nbsp;log that has errors. It is working off a work table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;62 define WORK_ORDER_NBR / 'Work Order Nbr' center display;&lt;/P&gt;&lt;P&gt;63 define New_usage_cpn / style={tagattr='WRAP:YES'} style(data)={tagattr='format:@'};&lt;/P&gt;&lt;P&gt;63 define New_usage_cpn / style={tagattr='WRAP:YES'} style(data)={tagattr='format:@'};&lt;/P&gt;&lt;P&gt;____&lt;/P&gt;&lt;P&gt;22&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR 22-322: Syntax error, expecting one of the following: ), CALLDEF, COLUMN, HDR, HEADER, LINES, REPORT, SUMMARY.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;63 define New_usage_cpn / style={tagattr='WRAP:YES'} style(data)={tagattr='format:@'};&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;____&lt;/P&gt;&lt;P&gt;202&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR 202-322: The option or parameter is not recognized and will be ignored.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2017 14:10:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-DROPPING-LEADING-ZEROES-ON-CHARACTER-VARIABLE/m-p/401343#M19520</guid>
      <dc:creator>CLE</dc:creator>
      <dc:date>2017-10-05T14:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL DROPPING LEADING ZEROES ON CHARACTER VARIABLE</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-DROPPING-LEADING-ZEROES-ON-CHARACTER-VARIABLE/m-p/401394#M19521</link>
      <description>&lt;P&gt;So it's not 'not working' because the solution doesn't work, it's not working because your code has errors.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is why you need to include the log.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure what the error is, but you need to post your full code and log. From the initial post you have an incorrect comma, which is what causes the colours to be messed up on the forum and in SAS. So you have syntax errors unrelated to this issue at all.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Fix those first and then come back to this issue.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This works fine for me in SAS 9.4 TS1M3. Note that ODS EXCEL was not production until SAS 9.4 TS1M3.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="delete_leading_zeroes.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15638i1CF6421579F58C86/image-size/large?v=v2&amp;amp;px=999" role="button" title="delete_leading_zeroes.JPG" alt="delete_leading_zeroes.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2017 15:23:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-DROPPING-LEADING-ZEROES-ON-CHARACTER-VARIABLE/m-p/401394#M19521</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-05T15:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL DROPPING LEADING ZEROES ON CHARACTER VARIABLE</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-DROPPING-LEADING-ZEROES-ON-CHARACTER-VARIABLE/m-p/401407#M19523</link>
      <description>&lt;P&gt;I solved it. I added the line "&lt;FONT color="#0000ff" face="Courier New"&gt;format&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; New_Usage_CPN &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;$CHAR7.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;"&amp;nbsp;after the style(column) line.&amp;nbsp; Excel now keeps the leading zeros for the character field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had edited the code to conceal the company information.&amp;nbsp; I may have removed the extra comma be accident. Sorry.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Working code (partial):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;title2&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;justify&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=center &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;font&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Arial"&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;height&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;10&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;pt &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;color&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=black &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Data sorted by Total Cost'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;report&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=work.partssummary &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;nowd&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;headline&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;headskip&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;spacing&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;style&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;(header)={font_face=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Arial"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; font_size=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;13&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;pt bordercolor=black background=orange foreground=white} &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;style&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;(column) = {background=white font_face=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Arial"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; font_size=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;10&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;pt}; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;format&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; New_Usage_CPN &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;$CHAR7.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;columns&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (CC WORK_ORDER_NBR New_Usage_CPN USAGE_MPN REC_CODE TRACKING_FLAG ATA NOUN DESCRIPTION USAGE_QUANTITY AVER_PRICE AvgP_Q_NONMATCH); &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;define&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; CC / &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Parent CPN'&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;center&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;display&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;style&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;(column)=[cellwidth=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;85&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;]; &lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2017 15:47:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-DROPPING-LEADING-ZEROES-ON-CHARACTER-VARIABLE/m-p/401407#M19523</guid>
      <dc:creator>CLE</dc:creator>
      <dc:date>2017-10-05T15:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL DROPPING LEADING ZEROES ON CHARACTER VARIABLE</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-DROPPING-LEADING-ZEROES-ON-CHARACTER-VARIABLE/m-p/401408#M19524</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/72505"&gt;@CLE&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Here is the&amp;nbsp;log that has errors. It is working off a work table.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;62 define WORK_ORDER_NBR / 'Work Order Nbr' center display;&lt;/P&gt;
&lt;P&gt;63 define New_usage_cpn / style={tagattr='WRAP:YES'} style(data)={tagattr='format:@'};&lt;/P&gt;
&lt;P&gt;63 define New_usage_cpn / style={tagattr='WRAP:YES'} style(data)={tagattr='format:@'};&lt;/P&gt;
&lt;P&gt;____&lt;/P&gt;
&lt;P&gt;22&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;ERROR 22-322: Syntax error, expecting one of the following: ), CALLDEF, COLUMN, HDR, HEADER, LINES, REPORT, SUMMARY.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;63 define New_usage_cpn / style={tagattr='WRAP:YES'} style(data)={tagattr='format:@'};&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;____&lt;/P&gt;
&lt;P&gt;202&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;ERROR 202-322: The option or parameter is not recognized and will be ignored.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Post code and messages from the log into a code box opened with the forum {I} menu icon to prevent the forum message box from reformatting the text. The log the underscore characters would be under the offending location but note that they have likely been moved into the first column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also you need to provide the &lt;STRONG&gt;entire procedure&lt;/STRONG&gt; step as quite often an error is caused by something earlier in the code but not caught until a later line. This is especially true for the errors caused by mismatched parentheses or quotation marks.&lt;/P&gt;
&lt;P&gt;The bit &lt;STRONG&gt;expecting one of the following: ) &lt;/STRONG&gt;is an very likely indicator that there is a mismatched ( prior somewhere.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2017 15:48:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-DROPPING-LEADING-ZEROES-ON-CHARACTER-VARIABLE/m-p/401408#M19524</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-10-05T15:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL DROPPING LEADING ZEROES ON CHARACTER VARIABLE</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-DROPPING-LEADING-ZEROES-ON-CHARACTER-VARIABLE/m-p/401413#M19526</link>
      <description>Thank you for the reply. I was able to solve with a simple solution Google examples provided.&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Oct 2017 15:52:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-DROPPING-LEADING-ZEROES-ON-CHARACTER-VARIABLE/m-p/401413#M19526</guid>
      <dc:creator>CLE</dc:creator>
      <dc:date>2017-10-05T15:52:43Z</dc:date>
    </item>
  </channel>
</rss>

