<?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 how to solve in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-solve-formats/m-p/497238#M131738</link>
    <description>&lt;P&gt;proc format ;&lt;BR /&gt;invalue age 11=100 12=200 13=300 14=400 15=500 16=600 ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data s ;&lt;BR /&gt;set sashelp.class ;&lt;BR /&gt;new_age=input(age,age.) ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when i run above program it gives data but show not log window like see below photo&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23405i1FF76BB4A1658557/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Sep 2018 03:50:35 GMT</pubDate>
    <dc:creator>thanikondharish</dc:creator>
    <dc:date>2018-09-20T03:50:35Z</dc:date>
    <item>
      <title>how to solve formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-solve-formats/m-p/497240#M131723</link>
      <description>&lt;P&gt;&lt;BR /&gt;proc format ;&lt;BR /&gt;invalue $sex 'F'='female' 'M'='male';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data s ;&lt;BR /&gt;set sashelp.class ;&lt;BR /&gt;gender=put(sex,$sex.) ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;it doesn't give data&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there any mistake please let me know&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 03:56:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-solve-formats/m-p/497240#M131723</guid>
      <dc:creator>thanikondharish</dc:creator>
      <dc:date>2018-09-20T03:56:17Z</dc:date>
    </item>
    <item>
      <title>how to solve</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-solve-formats/m-p/497233#M131737</link>
      <description>&lt;P&gt;proc format ;&lt;BR /&gt;invalue age 11=100 12=200 13=300 14=400 15=500 16=600 ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data s ;&lt;BR /&gt;set sashelp.class ;&lt;BR /&gt;new_age=input(age,age.) ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when i run above program it gives values but it shows note like see below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture1.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23404i940E1230B9720BE6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture1.PNG" alt="Capture1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 03:39:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-solve-formats/m-p/497233#M131737</guid>
      <dc:creator>thanikondharish</dc:creator>
      <dc:date>2018-09-20T03:39:03Z</dc:date>
    </item>
    <item>
      <title>how to solve</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-solve-formats/m-p/497238#M131738</link>
      <description>&lt;P&gt;proc format ;&lt;BR /&gt;invalue age 11=100 12=200 13=300 14=400 15=500 16=600 ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data s ;&lt;BR /&gt;set sashelp.class ;&lt;BR /&gt;new_age=input(age,age.) ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when i run above program it gives data but show not log window like see below photo&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23405i1FF76BB4A1658557/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 03:50:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-solve-formats/m-p/497238#M131738</guid>
      <dc:creator>thanikondharish</dc:creator>
      <dc:date>2018-09-20T03:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to solve formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-solve-formats/m-p/497245#M131727</link>
      <description>&lt;P&gt;Formats are for converting values to text and informats for converting text to values.&lt;/P&gt;
&lt;P&gt;You use formats with PUT statement and PUT() function.&lt;/P&gt;
&lt;P&gt;You use informats with INPUT statement and INPUT() function.&lt;/P&gt;
&lt;P&gt;You need to either define a FORMAT instead of INFORMAT, or use the INPUT() instead of the PUT() function.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 04:07:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-solve-formats/m-p/497245#M131727</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-09-20T04:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to solve</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-solve-formats/m-p/497251#M131739</link>
      <description>&lt;P&gt;The input()function expects a string as its first argument, so SAS needs to convert the numeric age to character first.&lt;/P&gt;
&lt;P&gt;To avoid the message, add a put() inside the input() to explicitly convert age.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 04:48:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-solve-formats/m-p/497251#M131739</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-09-20T04:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to solve formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-solve-formats/m-p/497257#M131740</link>
      <description>&lt;P&gt;You have two responses to the question answering it, please go ahead and mark one as correct and close the topic - in fact all of your questions on here are still unanswered, please close them out.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 07:09:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-solve-formats/m-p/497257#M131740</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-09-20T07:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to solve</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-solve-formats/m-p/497438#M131848</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/209685"&gt;@thanikondharish&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;proc format ;&lt;BR /&gt;invalue age 11=100 12=200 13=300 14=400 15=500 16=600 ;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;data s ;&lt;BR /&gt;set sashelp.class ;&lt;BR /&gt;new_age=input(age,age.) ;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;when i run above program it gives values but it shows note like see below&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture1.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23404i940E1230B9720BE6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture1.PNG" alt="Capture1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you ever &lt;STRONG&gt;read&lt;/STRONG&gt; the documentation for the INPUT function you would know that the first parameter is expected to be character values.&lt;/P&gt;
&lt;P&gt;Since you have used INPUT with a numeric variable AGE in the position where it expects character values then SAS tries to help by converting the numeric variable to character to do what you attempt. And then it places the note in the LOG to tell you that may have done something you did not expect with the implication that the result might not quite be what you expect.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 15:43:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-solve-formats/m-p/497438#M131848</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-09-20T15:43:11Z</dc:date>
    </item>
  </channel>
</rss>

