<?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: Data step in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Data-step/m-p/57868#M12550</link>
    <description>For some reason my code didn't appear completely:&lt;BR /&gt;
&lt;BR /&gt;
The trailsgn informat can handle both decimals and commas and can be up to 32 characters long. I would just read the data in that way and assign a long enough picture format. E.g.,:&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
 proc format;&lt;BR /&gt;
   picture sgn&lt;BR /&gt;
    low-&amp;lt;0 &lt;EQAUL sign=""&gt; "0000000000.00-"&lt;BR /&gt;
    0-high &lt;EQAUL sign=""&gt; "0000000000.00+";&lt;BR /&gt;
 run;&lt;BR /&gt;
 &lt;BR /&gt;
 data test;&lt;BR /&gt;
   input varname trailsgn20.;&lt;BR /&gt;
   format varname sgn.;&lt;BR /&gt;
   cards;&lt;BR /&gt;
 12+&lt;BR /&gt;
 10-&lt;BR /&gt;
 -114.67&lt;BR /&gt;
 25,899,999.62&lt;BR /&gt;
 50+&lt;BR /&gt;
 1-&lt;BR /&gt;
 45-&lt;BR /&gt;
 300+&lt;BR /&gt;
 ;&lt;BR /&gt;
 run;&lt;BR /&gt;
&lt;BR /&gt;
Note change the above &lt;EQUAL sign=""&gt; to an actual equal sign.  Can someone tell me how to enter such a sign in these posts?  When I just type them, they disappear from the message.&lt;/EQUAL&gt;&lt;/EQAUL&gt;&lt;/EQAUL&gt;</description>
    <pubDate>Tue, 04 Jan 2011 15:09:20 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2011-01-04T15:09:20Z</dc:date>
    <item>
      <title>Data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-step/m-p/57865#M12547</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I have my dataset for the banking data as mentioned below.&lt;BR /&gt;
&lt;BR /&gt;
data test;&lt;BR /&gt;
input varname$;&lt;BR /&gt;
cards;&lt;BR /&gt;
12+&lt;BR /&gt;
-10&lt;BR /&gt;
50+&lt;BR /&gt;
-1&lt;BR /&gt;
-45&lt;BR /&gt;
300+&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
I am expecting the output as mentioned below. It means numeric sign should come after the number also the variable should be in numeric not character.  Anyone can help me ?&lt;BR /&gt;
&lt;BR /&gt;
12+&lt;BR /&gt;
10-&lt;BR /&gt;
50+&lt;BR /&gt;
1-&lt;BR /&gt;
45-&lt;BR /&gt;
300+&lt;BR /&gt;
&lt;BR /&gt;
Thanks,</description>
      <pubDate>Tue, 04 Jan 2011 13:20:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-step/m-p/57865#M12547</guid>
      <dc:creator>MJyothi</dc:creator>
      <dc:date>2011-01-04T13:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-step/m-p/57866#M12548</link>
      <description>Here is one way, which has a couple of severe limitations: (1) It cannot handle decimals; and (2) it truncates if there are more digits than specified in the format (here it is five).&lt;BR /&gt;&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color:#008000;font-family:Courier New;font-size:10pt;"&gt;/*&amp;nbsp;test&amp;nbsp;data&amp;nbsp;*/&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="color:#000080;font-family:Courier New;font-size:10pt;"&gt;data&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;one;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color:#0000FF;font-family:Courier New;font-size:10pt;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;var&amp;nbsp;$&amp;nbsp;@@;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color:#0000FF;font-family:Courier New;font-size:10pt;"&gt;cards&lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;12+&amp;nbsp;-10&amp;nbsp;50+&amp;nbsp;-1&amp;nbsp;-45&amp;nbsp;300+&amp;nbsp;0&amp;nbsp;.a&amp;nbsp;.&amp;nbsp;234567&amp;nbsp;0.123+&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="color:#000080;font-family:Courier New;font-size:10pt;"&gt;run&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="color:#000080;font-family:Courier New;font-size:10pt;"&gt;proc&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="color:#000080;font-family:Courier New;font-size:10pt;"&gt;format&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color:#0000FF;font-family:Courier New;font-size:10pt;"&gt;picture&lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;trailsgn(&lt;/SPAN&gt;&lt;SPAN style="color:#0000FF;font-family:Courier New;font-size:10pt;"&gt;default&lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;=&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="color:#008080;font-family:Courier New;font-size:10pt;"&gt;6&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;low-&amp;lt;&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="color:#008080;font-family:Courier New;font-size:10pt;"&gt;0&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color:#800080;font-family:Courier New;font-size:10pt;"&gt;'00000-'&lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="color:#008080;font-family:Courier New;font-size:10pt;"&gt;0&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;lt;-high=&lt;/SPAN&gt;&lt;SPAN style="color:#800080;font-family:Courier New;font-size:10pt;"&gt;'00000+'&lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="color:#000080;font-family:Courier New;font-size:10pt;"&gt;run&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="color:#000080;font-family:Courier New;font-size:10pt;"&gt;data&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;two;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color:#0000FF;font-family:Courier New;font-size:10pt;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;one;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;num&amp;nbsp;=&amp;nbsp;input(var,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color:#008080;font-family:Courier New;font-size:10pt;"&gt;trailsgn.&lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color:#0000FF;font-family:Courier New;font-size:10pt;"&gt;format&lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;num&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color:#008080;font-family:Courier New;font-size:10pt;"&gt;trailsgn.&lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="color:#000080;font-family:Courier New;font-size:10pt;"&gt;run&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color:#008000;font-family:Courier New;font-size:10pt;"&gt;/*&amp;nbsp;check&amp;nbsp;*/&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="color:#000080;font-family:Courier New;font-size:10pt;"&gt;proc&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="color:#000080;font-family:Courier New;font-size:10pt;"&gt;print&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color:#0000FF;font-family:Courier New;font-size:10pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;=two;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="color:#000080;font-family:Courier New;font-size:10pt;"&gt;run&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color:#008000;font-family:Courier New;font-size:10pt;"&gt;/*&amp;nbsp;on&amp;nbsp;list&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&lt;SPAN style="color:#008000;font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Obs&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;num&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&lt;SPAN style="color:#008000;font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;12+&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;12+&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&lt;SPAN style="color:#008000;font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;10-&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&lt;SPAN style="color:#008000;font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;50+&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;50+&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&lt;SPAN style="color:#008000;font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1-&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&lt;SPAN style="color:#008000;font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-45&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;45-&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&lt;SPAN style="color:#008000;font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;300+&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;300+&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&lt;SPAN style="color:#008000;font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;0&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&lt;SPAN style="color:#008000;font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.a&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;A&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&lt;SPAN style="color:#008000;font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;9&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&lt;SPAN style="color:#008000;font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;234567&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;34567+&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&lt;SPAN style="color:#008000;font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;11&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;0.123+&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&lt;SPAN style="color:#008000;font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;*/&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2011 14:46:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-step/m-p/57866#M12548</guid>
      <dc:creator>chang_y_chung_hotmail_com</dc:creator>
      <dc:date>2011-01-04T14:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-step/m-p/57867#M12549</link>
      <description>Chang,&lt;BR /&gt;
&lt;BR /&gt;
The trailsgn informat can handle both decimals and commas and can be up to 32 characters long.  I would just read the data in that way and assign a long enough picture format.  E.g.,:&lt;BR /&gt;
&lt;BR /&gt;
proc format;&lt;BR /&gt;
  picture sgn&lt;BR /&gt;
   low-&amp;lt;0 = "0000000000.00-"&lt;BR /&gt;
   0-high = "0000000000.00+";&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
data test;&lt;BR /&gt;
  input varname trailsgn20.;&lt;BR /&gt;
  format varname sgn.;&lt;BR /&gt;
  cards;&lt;BR /&gt;
12+&lt;BR /&gt;
10-&lt;BR /&gt;
-114.67&lt;BR /&gt;
25,899,999.62&lt;BR /&gt;
50+&lt;BR /&gt;
1-&lt;BR /&gt;
45-&lt;BR /&gt;
300+&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Art</description>
      <pubDate>Tue, 04 Jan 2011 15:01:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-step/m-p/57867#M12549</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-01-04T15:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-step/m-p/57868#M12550</link>
      <description>For some reason my code didn't appear completely:&lt;BR /&gt;
&lt;BR /&gt;
The trailsgn informat can handle both decimals and commas and can be up to 32 characters long. I would just read the data in that way and assign a long enough picture format. E.g.,:&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
 proc format;&lt;BR /&gt;
   picture sgn&lt;BR /&gt;
    low-&amp;lt;0 &lt;EQAUL sign=""&gt; "0000000000.00-"&lt;BR /&gt;
    0-high &lt;EQAUL sign=""&gt; "0000000000.00+";&lt;BR /&gt;
 run;&lt;BR /&gt;
 &lt;BR /&gt;
 data test;&lt;BR /&gt;
   input varname trailsgn20.;&lt;BR /&gt;
   format varname sgn.;&lt;BR /&gt;
   cards;&lt;BR /&gt;
 12+&lt;BR /&gt;
 10-&lt;BR /&gt;
 -114.67&lt;BR /&gt;
 25,899,999.62&lt;BR /&gt;
 50+&lt;BR /&gt;
 1-&lt;BR /&gt;
 45-&lt;BR /&gt;
 300+&lt;BR /&gt;
 ;&lt;BR /&gt;
 run;&lt;BR /&gt;
&lt;BR /&gt;
Note change the above &lt;EQUAL sign=""&gt; to an actual equal sign.  Can someone tell me how to enter such a sign in these posts?  When I just type them, they disappear from the message.&lt;/EQUAL&gt;&lt;/EQAUL&gt;&lt;/EQAUL&gt;</description>
      <pubDate>Tue, 04 Jan 2011 15:09:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-step/m-p/57868#M12550</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-01-04T15:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: Data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-step/m-p/57869#M12551</link>
      <description>See &lt;A href="http://support.sas.com/forums/thread.jspa?messageID=27609毙" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=27609毙&lt;/A&gt;</description>
      <pubDate>Tue, 04 Jan 2011 15:32:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-step/m-p/57869#M12551</guid>
      <dc:creator>Tim_SAS</dc:creator>
      <dc:date>2011-01-04T15:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-step/m-p/57870#M12552</link>
      <description>Hi:&lt;BR /&gt;
  "low -&amp;lt;10000" can be posted to the forum...so can:&lt;BR /&gt;
[pre]&lt;BR /&gt;
  if age &amp;gt;= 15 then....&lt;BR /&gt;
  where amount &amp;lt; 64 ...&lt;BR /&gt;
  etc, etc&lt;BR /&gt;
[/pre]&lt;BR /&gt;
because you "protect" the &amp;lt; sign by using &amp;amp;lt; in your posted code. When I am posting code to the forum with &amp;lt; or &amp;gt; signs, I generally search and replace the &amp;lt; signs in the SAS code with &amp;amp;lt; and the &amp;gt; signs with &amp;amp;gt;. (Then I cut and paste the code to the forum ...and quit my SAS or Notepad editor so the code changes are not saved.)&lt;BR /&gt;
 &lt;BR /&gt;
  The reason your code appears to be truncated (and why your matching &amp;lt;equal sign&amp;gt; worked) is that the forum posting mechanism uses HTML behind the scenes and &amp;lt;tagname&amp;gt; is used in HTML -- so a beginning &amp;lt; starts the forum posting mechanism to look for a valid tagname and it keeps grabbing characters after the &amp;lt; until it finds the closing &amp;gt; for the tagname. With unmatched symbols (as with an opening &amp;lt;, but not a closing &amp;gt;), it never finds the end of the beginning bracket.) When the forum posting software found &amp;lt;equal sign&amp;gt; it had a matching set of &amp;lt; and &amp;gt; with an invalid HTML tagname between the 2 brackets, so the string was allowed to go into the post untruncated.&lt;BR /&gt;
 &lt;BR /&gt;
  This previous forum posting explains how to protect &amp;lt; and &amp;gt; in more detail and has other useful information:&lt;BR /&gt;
 &lt;A href="http://support.sas.com/forums/thread.jspa?messageID=27609毙" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=27609毙&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 04 Jan 2011 15:41:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-step/m-p/57870#M12552</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-01-04T15:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: Data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-step/m-p/57871#M12553</link>
      <description>&amp;gt;  proc format;&lt;BR /&gt;&lt;BR /&gt;
&amp;gt;   picture sgn&lt;BR /&gt;&lt;BR /&gt;
&amp;gt;   low-&amp;lt;0 &lt;EQAUL sign=""&gt; "0000000000.00-"&lt;BR /&gt;&lt;BR /&gt;
&amp;gt;   0-high &lt;EQAUL sign=""&gt; "0000000000.00+";&lt;BR /&gt;&lt;BR /&gt;
&amp;gt; run;&lt;BR /&gt;&lt;BR /&gt;
...&lt;BR /&gt;&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;
I have been burnt by something similar to your format above. Mixing picture formats and decimal numbers can be an excellent way to shoot yourself in the foot.&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color:#008000;font-family:Courier New;font-size:10pt;"&gt;/*&amp;nbsp;tail&amp;nbsp;sign&amp;nbsp;format&amp;nbsp;by&amp;nbsp;art297&amp;nbsp;*/&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="color:#000080;font-family:Courier New;font-size:10pt;"&gt;proc&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="color:#000080;font-family:Courier New;font-size:10pt;"&gt;format&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color:#0000FF;font-family:Courier New;font-size:10pt;"&gt;picture&lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;sgn&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;low-&amp;lt;&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="color:#008080;font-family:Courier New;font-size:10pt;"&gt;0&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color:#800080;font-family:Courier New;font-size:10pt;"&gt;"0000000000.00-"&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="color:#008080;font-family:Courier New;font-size:10pt;"&gt;0&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;-high&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color:#800080;font-family:Courier New;font-size:10pt;"&gt;"0000000000.00+"&lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="color:#000080;font-family:Courier New;font-size:10pt;"&gt;run&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color:#008000;font-family:Courier New;font-size:10pt;"&gt;/*&amp;nbsp;ouch!&amp;nbsp;*/&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="color:#000080;font-family:Courier New;font-size:10pt;"&gt;data&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color:#0000FF;font-family:Courier New;font-size:10pt;"&gt;_null_&lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;v&amp;nbsp;=&amp;nbsp;-&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="color:#008080;font-family:Courier New;font-size:10pt;"&gt;0.12&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color:#0000FF;font-family:Courier New;font-size:10pt;"&gt;put&lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;v=&amp;nbsp;:&lt;/SPAN&gt;&lt;SPAN style="color:#008080;font-family:Courier New;font-size:10pt;"&gt;sgn8.&lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="color:#000080;font-family:Courier New;font-size:10pt;"&gt;run&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&lt;SPAN style="font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color:#008000;font-family:Courier New;font-size:10pt;"&gt;/*&amp;nbsp;on&amp;nbsp;log&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&lt;SPAN style="color:#008000;font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;v=12-&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P style="padding:0"&gt;&lt;SPAN style="color:#008000;font-family:Courier New;font-size:10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;*/&lt;/SPAN&gt;&lt;/P&gt;&lt;/EQAUL&gt;&lt;/EQAUL&gt;</description>
      <pubDate>Tue, 04 Jan 2011 16:57:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-step/m-p/57871#M12553</guid>
      <dc:creator>chang_y_chung_hotmail_com</dc:creator>
      <dc:date>2011-01-04T16:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-step/m-p/57872#M12554</link>
      <description>How about slightly changing the format?&lt;BR /&gt;
&lt;BR /&gt;
proc format;&lt;BR /&gt;
picture sgn&lt;BR /&gt;
low-&amp;lt;0 &lt;EQAUL sign=""&gt; "0000000009.00-"&lt;BR /&gt;
0-high &lt;EQAUL sign=""&gt; "0000000009.00+";&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: Nick R&lt;B&gt;&lt;/B&gt;&lt;B&gt;&lt;/B&gt;

Message was edited by: Nick R&lt;/EQAUL&gt;&lt;/EQAUL&gt;</description>
      <pubDate>Tue, 04 Jan 2011 19:12:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-step/m-p/57872#M12554</guid>
      <dc:creator>NickR</dc:creator>
      <dc:date>2011-01-04T19:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-step/m-p/57873#M12555</link>
      <description>[html]&lt;BR /&gt;
Nick is right.&lt;BR /&gt;
&lt;BR /&gt;
 proc format;&lt;BR /&gt;
     picture sgn&lt;BR /&gt;
       low-&amp;lt;0 = "0000000009.99-"&lt;BR /&gt;
       0-high = "0000000009.99+";&lt;BR /&gt;
   run;&lt;BR /&gt;
&lt;BR /&gt;
[/html]</description>
      <pubDate>Wed, 05 Jan 2011 02:44:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-step/m-p/57873#M12555</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-01-05T02:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-step/m-p/57874#M12556</link>
      <description>Thank you all,&lt;BR /&gt;
&lt;BR /&gt;
My issue solved with your valuable suggestions.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your time!</description>
      <pubDate>Wed, 05 Jan 2011 07:08:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-step/m-p/57874#M12556</guid>
      <dc:creator>MJyothi</dc:creator>
      <dc:date>2011-01-05T07:08:39Z</dc:date>
    </item>
  </channel>
</rss>

