<?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 when output excel file the period &amp;quot;.&amp;quot; was replace by zero automatically in PROC REPORT in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/when-output-excel-file-the-period-quot-quot-was-replace-by-zero/m-p/748821#M235226</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; I met a problem which confused me a lot. I'm using ods option and PROC REPORT to output a dataset in excel format. However, in my dataset, I assign a variable with period "." as missing value. The variable is character and it contains two values such as "1500" and ".". When proc report process done, in SAS EG output window, the result display as . and 1500 while in excel file, it display as 0 and 1500. Attachment are the snaps.&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Snap1.png is the screenshot of result window in SAS EG ,variable cc is displayed as period and 1500&lt;/P&gt;&lt;P&gt;Snap2.png is the screenshot of reporint dataset, variable dose_act(which is cc) is shown as . and 1500 for charater variable&lt;/P&gt;&lt;P&gt;Snap3.png is the screenshot of output excel file, variable dose_act is shown as 0 and 1500.&lt;/P&gt;&lt;P&gt;By the way, in snap3.png there are two more variables LIMIT and CENS, these two variables also contains period as charater variable but in excel file can display as . also&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="snap1.PNG" style="width: 442px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/60464i2A411E82D6BAFF19/image-size/large?v=v2&amp;amp;px=999" role="button" title="snap1.PNG" alt="snap1.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="snap2.PNG" style="width: 518px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/60463i6EB5575D65A73278/image-size/large?v=v2&amp;amp;px=999" role="button" title="snap2.PNG" alt="snap2.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="snap3.PNG" style="width: 420px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/60462iE458F21F35DC4888/image-size/large?v=v2&amp;amp;px=999" role="button" title="snap3.PNG" alt="snap3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Jun 2021 03:49:10 GMT</pubDate>
    <dc:creator>master_jiang</dc:creator>
    <dc:date>2021-06-18T03:49:10Z</dc:date>
    <item>
      <title>when output excel file the period "." was replace by zero automatically in PROC REPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/when-output-excel-file-the-period-quot-quot-was-replace-by-zero/m-p/748821#M235226</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; I met a problem which confused me a lot. I'm using ods option and PROC REPORT to output a dataset in excel format. However, in my dataset, I assign a variable with period "." as missing value. The variable is character and it contains two values such as "1500" and ".". When proc report process done, in SAS EG output window, the result display as . and 1500 while in excel file, it display as 0 and 1500. Attachment are the snaps.&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Snap1.png is the screenshot of result window in SAS EG ,variable cc is displayed as period and 1500&lt;/P&gt;&lt;P&gt;Snap2.png is the screenshot of reporint dataset, variable dose_act(which is cc) is shown as . and 1500 for charater variable&lt;/P&gt;&lt;P&gt;Snap3.png is the screenshot of output excel file, variable dose_act is shown as 0 and 1500.&lt;/P&gt;&lt;P&gt;By the way, in snap3.png there are two more variables LIMIT and CENS, these two variables also contains period as charater variable but in excel file can display as . also&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="snap1.PNG" style="width: 442px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/60464i2A411E82D6BAFF19/image-size/large?v=v2&amp;amp;px=999" role="button" title="snap1.PNG" alt="snap1.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="snap2.PNG" style="width: 518px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/60463i6EB5575D65A73278/image-size/large?v=v2&amp;amp;px=999" role="button" title="snap2.PNG" alt="snap2.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="snap3.PNG" style="width: 420px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/60462iE458F21F35DC4888/image-size/large?v=v2&amp;amp;px=999" role="button" title="snap3.PNG" alt="snap3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 03:49:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/when-output-excel-file-the-period-quot-quot-was-replace-by-zero/m-p/748821#M235226</guid>
      <dc:creator>master_jiang</dc:creator>
      <dc:date>2021-06-18T03:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: when output excel file the period "." was replace by zero automatically in PROC REPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/when-output-excel-file-the-period-quot-quot-was-replace-by-zero/m-p/748822#M235227</link>
      <description>ods listing close;&lt;BR /&gt;ods excel file = "&amp;amp;path..xlsx"&lt;BR /&gt;options(sheet_name="1-PK"&lt;BR /&gt;frozen_headers="on"&lt;BR /&gt;frozen_rowheaders="1"&lt;BR /&gt;autofilter="ALL"&lt;BR /&gt;embedded_titles="ON"&lt;BR /&gt;EMBEDDED_FOOTNOTES="ON");&lt;BR /&gt;title;&lt;BR /&gt;footnote;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;proc report data=pk1 nowd missing headline split="~" style(header)=[bordertopwidth=0pt borderbottomwidth=0pt] style(column)=[just=c];&lt;BR /&gt;column obs id time nominal_tafd dose_act limit cens;&lt;BR /&gt;define obs / style(column)=[just=L] style(header)=[borderbottomwidth=0.1pt just=L] "Obs";&lt;BR /&gt;define id / style(column)=[just=L] style(header)=[borderbottomwidth=0.1pt just=L] "ID";&lt;BR /&gt;define time / style(column)=[just=L] style(header)=[borderbottomwidth=0.1pt just=L] "aa";&lt;BR /&gt;define nominal_tafd / style(column)=[just=L] style(header)=[borderbottomwidth=0.1pt just=L] "bb";&lt;BR /&gt;define dose_act/ style(column)=[just=L] style(header)=[borderbottomwidth=0.1pt just=L] "cc";&lt;BR /&gt;define limit / style(column)=[just=L] style(header)=[borderbottomwidth=0.1pt just=L] "LIMIT";&lt;BR /&gt;define cens / style(column)=[just=L] style(header)=[borderbottomwidth=0.1pt just=L] "CENS";&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;ods excel close;&lt;BR /&gt;&lt;BR /&gt;Above is my code, cheers</description>
      <pubDate>Fri, 18 Jun 2021 03:49:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/when-output-excel-file-the-period-quot-quot-was-replace-by-zero/m-p/748822#M235227</guid>
      <dc:creator>master_jiang</dc:creator>
      <dc:date>2021-06-18T03:49:52Z</dc:date>
    </item>
  </channel>
</rss>

