<?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: A question about base SAS~from a new SAS user in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/A-question-about-base-SAS-from-a-new-SAS-user/m-p/2135#M952</link>
    <description>Thanks a lot for your help!!!!!!</description>
    <pubDate>Mon, 22 Jan 2007 22:57:03 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2007-01-22T22:57:03Z</dc:date>
    <item>
      <title>A question about base SAS~from a new SAS user</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/A-question-about-base-SAS-from-a-new-SAS-user/m-p/2132#M949</link>
      <description>Dear all,&lt;BR /&gt;
I tried to output the below data but kept getting errors. Could somebody help me? Thanks a lot.&lt;BR /&gt;
I attach my code as well.&lt;BR /&gt;
&lt;BR /&gt;
12244 $1,499.99 144&lt;BR /&gt;
32189 $20,000 1&lt;BR /&gt;
92314 49.28 3&lt;BR /&gt;
&lt;BR /&gt;
data temp;&lt;BR /&gt;
input Invoice 5. Amount dollar26.2 Quantity ;&lt;BR /&gt;
format Invoice 5. Amount dollar26.2 Quantity;&lt;BR /&gt;
cards;&lt;BR /&gt;
&lt;BR /&gt;
12244 $1,499.99 144&lt;BR /&gt;
32189 $20,000 1&lt;BR /&gt;
92314 49.28 3&lt;BR /&gt;
;&lt;BR /&gt;
proc print;&lt;BR /&gt;
run;</description>
      <pubDate>Mon, 22 Jan 2007 03:15:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/A-question-about-base-SAS-from-a-new-SAS-user/m-p/2132#M949</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-01-22T03:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: A question about base SAS~from a new SAS user</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/A-question-about-base-SAS-from-a-new-SAS-user/m-p/2133#M950</link>
      <description>Penny:&lt;BR /&gt;
&lt;BR /&gt;
Try this - there are minor changes:&lt;BR /&gt;
&lt;BR /&gt;
data temp1;                                                                                                                             &lt;BR /&gt;
input  Invoice 5. Amount Quantity ;                                                                                                     &lt;BR /&gt;
format Invoice 5. Amount dollar26.2 Quantity 5.;                                                                                        &lt;BR /&gt;
cards;                                                                                                                                  &lt;BR /&gt;
12244 1499.99 144                                                                                                                       &lt;BR /&gt;
32189 200.00 1                                                                                                                          &lt;BR /&gt;
92314 49.28 3                                                                                                                           &lt;BR /&gt;
;                                                                                                                                       &lt;BR /&gt;
proc print;                                                                                                                             &lt;BR /&gt;
run;</description>
      <pubDate>Mon, 22 Jan 2007 13:18:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/A-question-about-base-SAS-from-a-new-SAS-user/m-p/2133#M950</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2007-01-22T13:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: A question about base SAS~from a new SAS user</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/A-question-about-base-SAS-from-a-new-SAS-user/m-p/2134#M951</link>
      <description>An alternative to changing your data is to use the colon modifier to read the data using a specific informat.&lt;BR /&gt;
  &lt;BR /&gt;
You show your data with dollar signs, which are invalid in a number (valid for formats, but invalid for reading with the standard numeric format.)&lt;BR /&gt;
  &lt;BR /&gt;
So, instead of this: &lt;B&gt;&lt;BR /&gt;
input Invoice 5. Amount dollar26.2 Quantity ; &lt;/B&gt;&lt;BR /&gt;
you would have &lt;B&gt;&lt;BR /&gt;
input Invoice 5. Amount : comma26. Quantity ; &lt;/B&gt;&lt;BR /&gt;
  &lt;BR /&gt;
The nice thing about the comma informat is that it detects dollar signs, commas and decimal points and essentially strips the dollar signs and commas from the number before storage. (It also deals with parentheses, percent signs and dashes, etc.)&lt;BR /&gt;
      &lt;BR /&gt;
If you have any more problems reading your data, your best bet might be to contact Tech Support, as there are other issues you might run into or need to put into your program (such as an INFILE statement that points to a data file instead of a CARDS statement with in-line data or an INFORMAT statement). &lt;BR /&gt;
     &lt;BR /&gt;
Also, even if you want your formatted length to be 26.2, you do NOT have to read the data with that same informat. Sometimes, specifying a decimal place holder when you read a number could cause the insertion of a decimal point where you don't want it. You have to be certain that ALL the numbers in your file have a decimal point in order to use an informat with a decimal indicator.   &lt;BR /&gt;
  &lt;BR /&gt;
To find out how to contact Tech Support, refer to this site: &lt;A href="http://support.sas.com/techsup/contact/index.html" target="_blank"&gt;http://support.sas.com/techsup/contact/index.html&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Good luck!&lt;BR /&gt;
cynthia</description>
      <pubDate>Mon, 22 Jan 2007 16:11:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/A-question-about-base-SAS-from-a-new-SAS-user/m-p/2134#M951</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-01-22T16:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: A question about base SAS~from a new SAS user</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/A-question-about-base-SAS-from-a-new-SAS-user/m-p/2135#M952</link>
      <description>Thanks a lot for your help!!!!!!</description>
      <pubDate>Mon, 22 Jan 2007 22:57:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/A-question-about-base-SAS-from-a-new-SAS-user/m-p/2135#M952</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-01-22T22:57:03Z</dc:date>
    </item>
  </channel>
</rss>

