<?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 Custom Formats in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-display-2000-as-2K-in-a-dataset/m-p/748098#M19998</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/385913"&gt;@Dq1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;How to convert 2000to 2k in sasdataset&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Please help us. Go back to your &lt;EM&gt;original&lt;/EM&gt; post and edit it so that it has a meaningful title/subject. Since this is the SAS community, saying your subject is "Sas" is not helpful or meaningful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You cannot convert 2000 to 2k, the first is a numeric value and the second is a character value. You could create a new variable that contains the text string "2K". A better solution, in my opinion: you could produce a FORMAT that changes the appearance to 2k.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
    picture thous(round) low-high='000,009.9K' (prefix='$' mult=.01);
run;
data want;
     set have;
     format yourvariablename thous.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Jun 2021 12:08:09 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2021-06-15T12:08:09Z</dc:date>
    <item>
      <title>How to display 2000 as 2K in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-display-2000-as-2K-in-a-dataset/m-p/748093#M19995</link>
      <description>&lt;P&gt;How to convert 2000to 2k in SAS dataset&lt;BR /&gt;Which function we have to use &amp;amp; also how to convert month number to month name using proc format and strip(put,...) Functions. help in getting this&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 14:22:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-display-2000-as-2K-in-a-dataset/m-p/748093#M19995</guid>
      <dc:creator>Dq1</dc:creator>
      <dc:date>2021-06-15T14:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Sas</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-display-2000-as-2K-in-a-dataset/m-p/748095#M19996</link>
      <description>Plz hepl me in getting this</description>
      <pubDate>Tue, 15 Jun 2021 11:36:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-display-2000-as-2K-in-a-dataset/m-p/748095#M19996</guid>
      <dc:creator>Dq1</dc:creator>
      <dc:date>2021-06-15T11:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Sas</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-display-2000-as-2K-in-a-dataset/m-p/748096#M19997</link>
      <description>Help me in getting this</description>
      <pubDate>Tue, 15 Jun 2021 11:38:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-display-2000-as-2K-in-a-dataset/m-p/748096#M19997</guid>
      <dc:creator>Dq1</dc:creator>
      <dc:date>2021-06-15T11:38:11Z</dc:date>
    </item>
    <item>
      <title>Custom Formats</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-display-2000-as-2K-in-a-dataset/m-p/748098#M19998</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/385913"&gt;@Dq1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;How to convert 2000to 2k in sasdataset&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Please help us. Go back to your &lt;EM&gt;original&lt;/EM&gt; post and edit it so that it has a meaningful title/subject. Since this is the SAS community, saying your subject is "Sas" is not helpful or meaningful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You cannot convert 2000 to 2k, the first is a numeric value and the second is a character value. You could create a new variable that contains the text string "2K". A better solution, in my opinion: you could produce a FORMAT that changes the appearance to 2k.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
    picture thous(round) low-high='000,009.9K' (prefix='$' mult=.01);
run;
data want;
     set have;
     format yourvariablename thous.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 12:08:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-display-2000-as-2K-in-a-dataset/m-p/748098#M19998</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-06-15T12:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: Sas</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-display-2000-as-2K-in-a-dataset/m-p/748099#M19999</link>
      <description>Could u say in a easy manner of programing&lt;BR /&gt;I have a dataset like&lt;BR /&gt;Data A;&lt;BR /&gt;Input name age sal;&lt;BR /&gt;Cards;&lt;BR /&gt;Amir 23 4000&lt;BR /&gt;Sonu 34 7000&lt;BR /&gt;Run;&lt;BR /&gt;&lt;BR /&gt;I want 4000 as 4k&lt;BR /&gt;What should I do?&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Jun 2021 12:10:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-display-2000-as-2K-in-a-dataset/m-p/748099#M19999</guid>
      <dc:creator>Dq1</dc:creator>
      <dc:date>2021-06-15T12:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Sas</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-display-2000-as-2K-in-a-dataset/m-p/748101#M20000</link>
      <description>&lt;P&gt;We help you, but you have to help us.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Go back to your&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;EM&gt;original&lt;/EM&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;SPAN&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;post and edit it so that it has a meaningful title/subject. Since this is the SAS community, saying your subject is "Sas" is not helpful or meaningful.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 12:24:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-display-2000-as-2K-in-a-dataset/m-p/748101#M20000</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-06-15T12:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Formats</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-display-2000-as-2K-in-a-dataset/m-p/748104#M20001</link>
      <description>It's not working ..&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Jun 2021 12:37:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-display-2000-as-2K-in-a-dataset/m-p/748104#M20001</guid>
      <dc:creator>Dq1</dc:creator>
      <dc:date>2021-06-15T12:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Formats</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-display-2000-as-2K-in-a-dataset/m-p/748109#M20002</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/385913"&gt;@Dq1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;It's not working ..&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Make it work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-SPOILER&gt;"It's not working" on its own is a VERY dumb statement. It does not tell in ANY way what went wrong or where the outcome did not meet expectations.&lt;BR /&gt;In fact it is worthy of the proverbial blonde secretary who needs to be taught again how to handle the coffeemaker after a 10-minute break.&lt;BR /&gt;Therefore my terse and snarky answer.&lt;BR /&gt;So please tell us WHAT did not work. Include code and logs, and describe where the result does not meet your expectations.&lt;BR /&gt;Very important: include example of your data so we know with what the code needs to deal.&lt;/LI-SPOILER&gt;</description>
      <pubDate>Tue, 15 Jun 2021 12:46:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-display-2000-as-2K-in-a-dataset/m-p/748109#M20002</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-06-15T12:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Formats</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-display-2000-as-2K-in-a-dataset/m-p/748110#M20003</link>
      <description>&lt;P&gt;Please:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We help you, but you have to help us.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Go back to your&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;EM&gt;original&lt;/EM&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;SPAN&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;post and edit it so that it has a meaningful title/subject. Since this is the SAS community, saying your subject is "Sas" is not helpful or meaningful.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 12:47:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-display-2000-as-2K-in-a-dataset/m-p/748110#M20003</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-06-15T12:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sas</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-display-2000-as-2K-in-a-dataset/m-p/748125#M20004</link>
      <description>&lt;P&gt;How should a value like 100 appear for that variable? 15345?&lt;/P&gt;
&lt;P&gt;2000 to 2K is a single example. Coding is about providing general rules.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Same with month number to month name. Do you want the full name of a month? 3-letter abbreviation? something else?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 14:05:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-display-2000-as-2K-in-a-dataset/m-p/748125#M20004</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-06-15T14:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to display 2000 as 2K in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-display-2000-as-2K-in-a-dataset/m-p/748131#M20005</link>
      <description>&lt;P&gt;See this example for your format for 2000 as 2K.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/Million-Format/td-p/440121" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/Million-Format/td-p/440121&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding month number to name use MONNAME format which will format a SAS date (not month number) to the month name.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data example;
date = '01Jan2021'd;
demoName = put(date, monname3.);
run;

proc print data=example;
run;

proc print data=example;
format date monname3.;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you want to convert a month number to a date, I'd probably create a fake date out of it using the MDY() function and use the PUT() function.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data example2;
monthNumber = 2;
monthName = put(mdy(monthNumber, 1, 2021), monname3.);
run;

proc print data=example2;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/385913"&gt;@Dq1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;How to convert 2000to 2k in SAS dataset&lt;BR /&gt;Which function we have to use &amp;amp; also how to convert month number to month name using proc format and strip(put,...) Functions. help in getting this&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 14:25:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-display-2000-as-2K-in-a-dataset/m-p/748131#M20005</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-06-15T14:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: Display 2000 as 2K</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-display-2000-as-2K-in-a-dataset/m-p/748147#M20006</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
    picture thous(round) low-high='000,009.9K' (prefix='$' mult=.01);
run;
data a;
    input name $ age sal;
    format sal thous.;
cards;
Amir 23 4000
Sonu 34 7000
;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Jun 2021 14:57:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-display-2000-as-2K-in-a-dataset/m-p/748147#M20006</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-06-15T14:57:45Z</dc:date>
    </item>
  </channel>
</rss>

