<?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: format to one decimal place and still retain the decimal place for integer (whole number) in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/format-to-one-decimal-place-and-still-retain-the-decimal-place/m-p/914004#M40922</link>
    <description>&lt;P&gt;Here is a screenshot of the CSV file that was generated. You can clearly see that the results are exactly as you specified:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASJedi_0-1706791342314.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/93144iC5F1CCA353F5D1DF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASJedi_0-1706791342314.png" alt="SASJedi_0-1706791342314.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If you open the file in Windows using Notepad, Notepad++, or any text editor, you will see the same. If you open the file with Excel, Excel will&amp;nbsp;&lt;EM&gt;automatically change the way the data is displayed&lt;/EM&gt; and you will no longer see the trailing zeros:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASJedi_2-1706791547513.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/93146iB26FF5E12FD1BE6B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASJedi_2-1706791547513.png" alt="SASJedi_2-1706791547513.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can't make Excel change this behavior. If you want this to&amp;nbsp;&lt;EM&gt;look different in Excel&lt;/EM&gt;, then you will have to create an Excel file instead of a CSV.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file="C:\temp\new.xlsx";
title;
proc print data=new noobs;
   format Measure 13.1;
run;
ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This writes an XLSX file, which includes the metadata Excel requires to display the data the way you want:&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="SASJedi_3-1706792020454.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/93147i6490B84F4E72C560/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASJedi_3-1706792020454.png" alt="SASJedi_3-1706792020454.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Feb 2024 12:55:43 GMT</pubDate>
    <dc:creator>SASJedi</dc:creator>
    <dc:date>2024-02-01T12:55:43Z</dc:date>
    <item>
      <title>format to one decimal place and still retain the decimal place for integer (whole number)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/format-to-one-decimal-place-and-still-retain-the-decimal-place/m-p/913438#M40893</link>
      <description>&lt;P&gt;Hi. I am creating a dataset and I need a column to retain one decimal place for every value (including integers and thoses I rounded off to once decimal place). In the work library it retains the decimal point but it keeps reformatting integers to whole number when I export in csv. For example, I want 5 to be 5.0 and not 5. I tried these codes below&amp;nbsp; but the csv keeps formatting back to integers: 1, 5, 7 etc.&lt;/P&gt;
&lt;PRE&gt;data new;
set old;
format Measure 13.1;
run;

data new;
set old;
format Measure 13.1;
Measure=round(Measure,0.1)
run;

proc export data=new dbms=csv
outfile="C:\Desktop\new.csv."
replace;
run&lt;/PRE&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 17:22:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/format-to-one-decimal-place-and-still-retain-the-decimal-place/m-p/913438#M40893</guid>
      <dc:creator>femiajumobi1</dc:creator>
      <dc:date>2024-01-29T17:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: format to one decimal place and still retain the decimal place for integer (whole number)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/format-to-one-decimal-place-and-still-retain-the-decimal-place/m-p/913443#M40894</link>
      <description>&lt;P&gt;PROC EXPORT just exports data - the results are never formatted. You can use PROC PRINT and the ODS CSVALL destination to export the formatted values:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods csvall file="C:\temp\new.csv";
title;
proc print data=new noobs;
   format Measure 13.1;
run;
ods csvall close;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 12:47:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/format-to-one-decimal-place-and-still-retain-the-decimal-place/m-p/913443#M40894</guid>
      <dc:creator>SASJedi</dc:creator>
      <dc:date>2024-02-01T12:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: format to one decimal place and still retain the decimal place for integer (whole number)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/format-to-one-decimal-place-and-still-retain-the-decimal-place/m-p/913444#M40895</link>
      <description>&lt;P&gt;Did you look in the CSV file with an actual TEXT file veiwer? If you let them default to opening in EXCEL or other spreadsheets they typically ignore the source file values and display them using internal rules which will typically not show trailing 0's.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, &lt;STRONG&gt;never&lt;/STRONG&gt; save a CSV file that has been opened in spreadsheet software back to the same file as the original values can, like 0 in a decimal place, will be replaced.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 17:46:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/format-to-one-decimal-place-and-still-retain-the-decimal-place/m-p/913444#M40895</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-01-29T17:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: format to one decimal place and still retain the decimal place for integer (whole number)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/format-to-one-decimal-place-and-still-retain-the-decimal-place/m-p/913445#M40896</link>
      <description>&lt;P&gt;No.&amp;nbsp; SAS does not do what you describe.&amp;nbsp; Run this test.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
  do x=0,1,1.5,4000;
    output;
  end;
  format x 13.1 ;
run;

filename csv temp;
proc export dbms=csv file=csv data=have;
run;

data _null_;
 infile csv;
 input;
 list;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;How did you LOOK at the CSV file?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you accidentally let EXCEL open it automatically?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 17:47:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/format-to-one-decimal-place-and-still-retain-the-decimal-place/m-p/913445#M40896</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-01-29T17:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: format to one decimal place and still retain the decimal place for integer (whole number)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/format-to-one-decimal-place-and-still-retain-the-decimal-place/m-p/913447#M40897</link>
      <description>This did not address it. The value did not retain decimal after integer, 5 remains 5 instead of 5.0</description>
      <pubDate>Mon, 29 Jan 2024 17:52:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/format-to-one-decimal-place-and-still-retain-the-decimal-place/m-p/913447#M40897</guid>
      <dc:creator>femiajumobi1</dc:creator>
      <dc:date>2024-01-29T17:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: format to one decimal place and still retain the decimal place for integer (whole number)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/format-to-one-decimal-place-and-still-retain-the-decimal-place/m-p/913449#M40898</link>
      <description>I opened the csv in the folder it was saved directly. The CSV file opens as csv in a spreadsheet. I am not sure what you meant by not defaulting to open in excel.</description>
      <pubDate>Mon, 29 Jan 2024 17:55:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/format-to-one-decimal-place-and-still-retain-the-decimal-place/m-p/913449#M40898</guid>
      <dc:creator>femiajumobi1</dc:creator>
      <dc:date>2024-01-29T17:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: format to one decimal place and still retain the decimal place for integer (whole number)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/format-to-one-decimal-place-and-still-retain-the-decimal-place/m-p/913450#M40899</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/436402"&gt;@femiajumobi1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;This did not address it. The value did not retain decimal after integer, 5 remains 5 instead of 5.0&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Nope.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;341  data _null_;
342   infile csv;
343   input;
344   list;
345  run;

NOTE: The infile CSV is:
      (system-specific pathname),
      (system-specific file attributes)

RULE:     ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0
1         x 1
2         0.0 3
3         1.0 3
4         1.5 3
5         4000.0 6
NOTE: 5 records were read from the infile (system-specific pathname).
      The minimum record length was 1.
      The maximum record length was 6.
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
&lt;/PRE&gt;
&lt;P&gt;You have to LOOK at the CSV file using a simple text editor if you want to see what is really in it.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 17:56:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/format-to-one-decimal-place-and-still-retain-the-decimal-place/m-p/913450#M40899</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-01-29T17:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: format to one decimal place and still retain the decimal place for integer (whole number)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/format-to-one-decimal-place-and-still-retain-the-decimal-place/m-p/913451#M40900</link>
      <description>&lt;P&gt;If you open the file with a spreadsheet then the spreadsheet program is the one that is deciding how to display the numbers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A CSV file is just a TEXT file.&amp;nbsp; There is NO WAY to put formatting information (like the 13.1 format that SAS code uses) into a CSV file.&amp;nbsp; It has no place to store such information.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 17:57:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/format-to-one-decimal-place-and-still-retain-the-decimal-place/m-p/913451#M40900</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-01-29T17:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: format to one decimal place and still retain the decimal place for integer (whole number)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/format-to-one-decimal-place-and-still-retain-the-decimal-place/m-p/913455#M40901</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/436402"&gt;@femiajumobi1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;I opened the csv in the folder it was saved directly. The CSV file opens as csv in a spreadsheet. I am not sure what you meant by not defaulting to open in excel.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Spreadsheet software is determining the appearance.&lt;/P&gt;
&lt;P&gt;Open with a TEXT viewer, Notepad, Wordpad, any text editor. But only if you did not SAVE after the spreadsheet opened the file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your operating system has defaults as to which program opens which files for many different file types. Unfortunately for those of us that work with CSV files that means your spreadsheet defaults as the program to open them in many cases. You can typically override that behavior by using the Open With option (depending on operating system right click on the file name in your file manager and see what shows up). You may have to select a different application of program.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 18:17:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/format-to-one-decimal-place-and-still-retain-the-decimal-place/m-p/913455#M40901</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-01-29T18:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: format to one decimal place and still retain the decimal place for integer (whole number)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/format-to-one-decimal-place-and-still-retain-the-decimal-place/m-p/913456#M40902</link>
      <description>Thanks &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt; &lt;BR /&gt;&lt;BR /&gt;Back to my question,  how do I ensure in csv the value comes with one decimal point (5.0) and not default back to an integer (5). Thanks.</description>
      <pubDate>Mon, 29 Jan 2024 18:23:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/format-to-one-decimal-place-and-still-retain-the-decimal-place/m-p/913456#M40902</guid>
      <dc:creator>femiajumobi1</dc:creator>
      <dc:date>2024-01-29T18:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: format to one decimal place and still retain the decimal place for integer (whole number)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/format-to-one-decimal-place-and-still-retain-the-decimal-place/m-p/913463#M40903</link>
      <description>&lt;P&gt;I saw these in the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Again I am interested in formatting every number to &lt;STRONG&gt;one decimal place including integers&lt;/STRONG&gt;. For example I want SAS to retain 10 as &lt;STRONG&gt;10.1&lt;/STRONG&gt; when I export the file in csv and 10.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 19:06:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/format-to-one-decimal-place-and-still-retain-the-decimal-place/m-p/913463#M40903</guid>
      <dc:creator>femiajumobi1</dc:creator>
      <dc:date>2024-01-29T19:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: format to one decimal place and still retain the decimal place for integer (whole number)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/format-to-one-decimal-place-and-still-retain-the-decimal-place/m-p/913465#M40904</link>
      <description>&lt;P&gt;Didn't you see decimal place in the text file when you used the data step to dump it to the log?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want the report to display precisely produce a PDF file.&amp;nbsp; That is what they are for.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to force a spreadsheet to open a file with particular format then you will need to generate and XLSX file and add code to format the cells with the those numbers to display using one decimal place.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/From-SAS-to-Excel-keeping-number-type-while-formatting/td-p/845694" target="_blank"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/From-SAS-to-Excel-keeping-number-type-while-formatting/td-p/845694&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 19:43:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/format-to-one-decimal-place-and-still-retain-the-decimal-place/m-p/913465#M40904</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-01-29T19:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: format to one decimal place and still retain the decimal place for integer (whole number)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/format-to-one-decimal-place-and-still-retain-the-decimal-place/m-p/913466#M40905</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/436402"&gt;@femiajumobi1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I saw these in the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Again I am interested in formatting every number to &lt;STRONG&gt;one decimal place including integers&lt;/STRONG&gt;. For example I want SAS to retain 10 as &lt;STRONG&gt;10.1&lt;/STRONG&gt; when I export the file in csv and 10.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;No.&amp;nbsp; You &lt;STRONG&gt;are&lt;/STRONG&gt; formatting the strings written into the CSV file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You appear to want a method &lt;STRONG&gt;to tell a Spreadsheet program&lt;/STRONG&gt; to display the numbers using a single decimal place.&amp;nbsp; That is not something you can do with a CSV file.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 19:46:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/format-to-one-decimal-place-and-still-retain-the-decimal-place/m-p/913466#M40905</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-01-29T19:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: format to one decimal place and still retain the decimal place for integer (whole number)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/format-to-one-decimal-place-and-still-retain-the-decimal-place/m-p/913724#M40917</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/436402"&gt;@femiajumobi1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Thanks &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt; &lt;BR /&gt;&lt;BR /&gt;Back to my question, how do I ensure in csv the value comes with one decimal point (5.0) and not default back to an integer (5). Thanks.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;As long as you insist on opening a csv file with a spreadsheet app and not with a simple text editor, there is &lt;STRONG&gt;no&lt;/STRONG&gt; solution for the problem. A csv file is a text file, it does not contain any metadata, so it is impossible to tell the app to display values as they are and skip &lt;EM&gt;optimizing&lt;/EM&gt; the data.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 07:36:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/format-to-one-decimal-place-and-still-retain-the-decimal-place/m-p/913724#M40917</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2024-01-31T07:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: format to one decimal place and still retain the decimal place for integer (whole number)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/format-to-one-decimal-place-and-still-retain-the-decimal-place/m-p/914004#M40922</link>
      <description>&lt;P&gt;Here is a screenshot of the CSV file that was generated. You can clearly see that the results are exactly as you specified:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASJedi_0-1706791342314.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/93144iC5F1CCA353F5D1DF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASJedi_0-1706791342314.png" alt="SASJedi_0-1706791342314.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If you open the file in Windows using Notepad, Notepad++, or any text editor, you will see the same. If you open the file with Excel, Excel will&amp;nbsp;&lt;EM&gt;automatically change the way the data is displayed&lt;/EM&gt; and you will no longer see the trailing zeros:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASJedi_2-1706791547513.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/93146iB26FF5E12FD1BE6B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASJedi_2-1706791547513.png" alt="SASJedi_2-1706791547513.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can't make Excel change this behavior. If you want this to&amp;nbsp;&lt;EM&gt;look different in Excel&lt;/EM&gt;, then you will have to create an Excel file instead of a CSV.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file="C:\temp\new.xlsx";
title;
proc print data=new noobs;
   format Measure 13.1;
run;
ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This writes an XLSX file, which includes the metadata Excel requires to display the data the way you want:&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="SASJedi_3-1706792020454.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/93147i6490B84F4E72C560/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASJedi_3-1706792020454.png" alt="SASJedi_3-1706792020454.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 12:55:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/format-to-one-decimal-place-and-still-retain-the-decimal-place/m-p/914004#M40922</guid>
      <dc:creator>SASJedi</dc:creator>
      <dc:date>2024-02-01T12:55:43Z</dc:date>
    </item>
  </channel>
</rss>

