<?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: Help wiht input funciton in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Help-wiht-input-funciton/m-p/596684#M15985</link>
    <description>&lt;P&gt;You may want to show us the results of Proc Contents on that "other set" and tell us which of the variables is supposed to match "1234-01" numerically.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Oct 2019 23:21:27 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2019-10-15T23:21:27Z</dc:date>
    <item>
      <title>Help wiht input funciton</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Help-wiht-input-funciton/m-p/596629#M15974</link>
      <description>&lt;P&gt;data a;&lt;BR /&gt;a='1234-01';&lt;BR /&gt;b=input(a,best12.);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to convert '1234-01' to number format like 1234-01 . Please help.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 19:08:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Help-wiht-input-funciton/m-p/596629#M15974</guid>
      <dc:creator>West26</dc:creator>
      <dc:date>2019-10-15T19:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Help wiht input funciton</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Help-wiht-input-funciton/m-p/596630#M15975</link>
      <description>That's not a number. What do you want to happen with the dash?</description>
      <pubDate>Tue, 15 Oct 2019 19:10:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Help-wiht-input-funciton/m-p/596630#M15975</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-10-15T19:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help wiht input funciton</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Help-wiht-input-funciton/m-p/596634#M15976</link>
      <description>&lt;P&gt;Well, one set of case numbers are in character format and other set are in numeric format. I need to combine both to one set.&lt;/P&gt;&lt;P&gt;I agree with your statement. Dash has to be included, but now I believe it is not possible.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 19:22:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Help-wiht-input-funciton/m-p/596634#M15976</guid>
      <dc:creator>West26</dc:creator>
      <dc:date>2019-10-15T19:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Help wiht input funciton</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Help-wiht-input-funciton/m-p/596665#M15983</link>
      <description>&lt;P&gt;If you store the variable as a number you can insert the dash when displaying the number by designing your own format.&amp;nbsp; Let's assume you store you numbers as whole number that can take up to six digits, as in:&lt;/P&gt;
&lt;P&gt;&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 myfmti other='9999-99';
run;

data w;   
  format x myfmti.;
  do x=123456,23456,3456;
    put "Numeric " x=comma7.0 " formatted " x=;
  end;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;which results in:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;458  data w;
459    format x myfmti.;
460    do x=123456,23456,3456;
461      put "Numeric " x=comma7.0 " formatted " x=;
462    end;
463  run;

Numeric x=123,456  formatted x=1234-56
Numeric x=23,456  formatted x=0234-56
Numeric x=3,456  formatted x=0034-56
&lt;/CODE&gt;&lt;/PRE&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;
&lt;P&gt;Instead of storing integers, it might be psychologically easier to store the number as 1234.56, and make a format such that a dash replaces the decimal in the printed value, as in:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
  picture myfmtd  other='9999-99' (multiplier=100);run;
data w;
  format x myfmtd.;
  do x=1234.56,234.56,34.56;
    put "Numeric " x=7.2 " formatted " x=;
  end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;which generates:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;467  data w;
468    format x myfmtd.;
469    do x=1234.56,234.56,34.56;
470      put "Numeric " x=7.2 " formatted " x=;
471    end;
472  run;

Numeric x=1234.56  formatted x=1234-56
Numeric x=234.56  formatted x=0234-56
Numeric x=34.56  formatted x=0034-56
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 21:30:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Help-wiht-input-funciton/m-p/596665#M15983</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2019-10-15T21:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: Help wiht input funciton</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Help-wiht-input-funciton/m-p/596684#M15985</link>
      <description>&lt;P&gt;You may want to show us the results of Proc Contents on that "other set" and tell us which of the variables is supposed to match "1234-01" numerically.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 23:21:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Help-wiht-input-funciton/m-p/596684#M15985</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-10-15T23:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Help wiht input funciton</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Help-wiht-input-funciton/m-p/596708#M15995</link>
      <description>Your numeric values will not have a dash unless they have a custom format applied. If that's the case you can strip the dash and use a direct merge. Either way you need to make one look like the other but you've only shown what one value looks like. &lt;BR /&gt;</description>
      <pubDate>Wed, 16 Oct 2019 01:26:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Help-wiht-input-funciton/m-p/596708#M15995</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-10-16T01:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: Help wiht input funciton</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Help-wiht-input-funciton/m-p/597889#M16218</link>
      <description>Hi Reeza,&lt;BR /&gt;Thanks for taking time and providing the insights into the issue. The values which have a dash were stored as characters only. I'm able to merge all of those, except the ones with dash. I can't make the other set which is already in numeric format, as character format and merge both, as I need to a lot of count and order by later on. Will try formatting them for now, and see what will happen.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Ravindra</description>
      <pubDate>Sat, 19 Oct 2019 12:18:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Help-wiht-input-funciton/m-p/597889#M16218</guid>
      <dc:creator>West26</dc:creator>
      <dc:date>2019-10-19T12:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Help wiht input funciton</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Help-wiht-input-funciton/m-p/598025#M16234</link>
      <description>Count and order by don’t require numeric variables.</description>
      <pubDate>Mon, 21 Oct 2019 05:51:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Help-wiht-input-funciton/m-p/598025#M16234</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-10-21T05:51:06Z</dc:date>
    </item>
  </channel>
</rss>

