<?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: Issue with proc format in SAS Software for Learning Community</title>
    <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Issue-with-proc-format/m-p/970684#M2732</link>
    <description>&lt;P&gt;You did not describe why the output is wrong?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure what you mean by the statement:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;The screenshot is the result of proc print statement AFTER assigning the format.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;The code you shared does not attach the format to the variable in the dataset.&amp;nbsp; It only asks that the NEWDATE. format be used in the PROC PRINT step.&amp;nbsp; If you then try to print that dataset again without including the FORMAT statement again the date variables will print using whatever format was attached to them when they were copied from the permanent dataset in the PG3 libref to the temporary dataset in the WORK library by the PROC SORT step..&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Jul 2025 02:34:45 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2025-07-14T02:34:45Z</dc:date>
    <item>
      <title>Issue with proc format</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Issue-with-proc-format/m-p/970678#M2730</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I would like to ask for help because proc format does not work for some reasons. I think there is no syntax error and log does not show any errors and warnings.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The screenshot is the result of proc print statement AFTER assigning the format. Is there possible reason for it? What should I check to debug?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-07-13 at 19.50.18.png" style="width: 133px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/108323iF8769BF7CF19A06D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2025-07-13 at 19.50.18.png" alt="Screenshot 2025-07-13 at 19.50.18.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;proc format;
picture NewDate (default=19)
low-high = '%a.%B.%0d.%0y' (datatype=date);
run;

proc sort data=pg3.storm_final out=work.storm_final;
by descending StartDate;
run;

title 'Detail Storm Report by Descending Start Date';
proc print data=work.storm_final;
var Name BasinName StartDate EndDate MaxWindMPH MinPressure;
format StartDate EndDate NewDate.;
run;
title;&lt;/PRE&gt;</description>
      <pubDate>Sun, 13 Jul 2025 23:55:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Issue-with-proc-format/m-p/970678#M2730</guid>
      <dc:creator>junya___08</dc:creator>
      <dc:date>2025-07-13T23:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with proc format</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Issue-with-proc-format/m-p/970683#M2731</link>
      <description>&lt;P&gt;I can get wanted result by your code. Maybe you need to restart yours SAS session to eliminate potential errors.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.jpg" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/108324iC360D2808B2839AC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1.jpg" alt="1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jul 2025 02:17:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Issue-with-proc-format/m-p/970683#M2731</guid>
      <dc:creator>whymath</dc:creator>
      <dc:date>2025-07-14T02:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with proc format</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Issue-with-proc-format/m-p/970684#M2732</link>
      <description>&lt;P&gt;You did not describe why the output is wrong?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure what you mean by the statement:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;The screenshot is the result of proc print statement AFTER assigning the format.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;The code you shared does not attach the format to the variable in the dataset.&amp;nbsp; It only asks that the NEWDATE. format be used in the PROC PRINT step.&amp;nbsp; If you then try to print that dataset again without including the FORMAT statement again the date variables will print using whatever format was attached to them when they were copied from the permanent dataset in the PG3 libref to the temporary dataset in the WORK library by the PROC SORT step..&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jul 2025 02:34:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Issue-with-proc-format/m-p/970684#M2732</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-07-14T02:34:45Z</dc:date>
    </item>
  </channel>
</rss>

