<?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 Understanding Code in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Understanding-Code/m-p/858867#M37927</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data work.shoes;
    infile "/folders/myfolders/import/shoes.csv"
	delimiter = ","
	missover 
	dsd
	firstobs=2;
 
	informat Region $50.;
	informat Product $50.;
	informat Subsidiary $50.;
	informat Stores best12.;
	informat Sales dollar12.;
	informat Inventory dollar12.;
	informat Returns dollar12.;
 
	format Region $50.;
	format Product $50.;
	format Subsidiary $50.;
	format Stores best12.;
	format Sales dollar12.;
	format Inventory dollar12.;
	format Returns dollar12.;
 
	input
	Region $
        Product $
	Subsidiary $
	Stores
	Sales
	Inventory
	Returns;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I have two Questions regarding above Code.&lt;/P&gt;
&lt;P&gt;1. What is the difference between best12. and dollar12. ?&lt;/P&gt;
&lt;P&gt;2. Why are we putting $ sign in input statement?&lt;/P&gt;
&lt;P&gt;Can give the summary of the code and answer 2 of the above Questions I have.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help is appreciated.&lt;/P&gt;
&lt;P&gt;Thanks in Advance&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Wed, 15 Feb 2023 04:57:22 GMT</pubDate>
    <dc:creator>Kirito1</dc:creator>
    <dc:date>2023-02-15T04:57:22Z</dc:date>
    <item>
      <title>Understanding Code</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Understanding-Code/m-p/858867#M37927</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data work.shoes;
    infile "/folders/myfolders/import/shoes.csv"
	delimiter = ","
	missover 
	dsd
	firstobs=2;
 
	informat Region $50.;
	informat Product $50.;
	informat Subsidiary $50.;
	informat Stores best12.;
	informat Sales dollar12.;
	informat Inventory dollar12.;
	informat Returns dollar12.;
 
	format Region $50.;
	format Product $50.;
	format Subsidiary $50.;
	format Stores best12.;
	format Sales dollar12.;
	format Inventory dollar12.;
	format Returns dollar12.;
 
	input
	Region $
        Product $
	Subsidiary $
	Stores
	Sales
	Inventory
	Returns;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I have two Questions regarding above Code.&lt;/P&gt;
&lt;P&gt;1. What is the difference between best12. and dollar12. ?&lt;/P&gt;
&lt;P&gt;2. Why are we putting $ sign in input statement?&lt;/P&gt;
&lt;P&gt;Can give the summary of the code and answer 2 of the above Questions I have.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help is appreciated.&lt;/P&gt;
&lt;P&gt;Thanks in Advance&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 04:57:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Understanding-Code/m-p/858867#M37927</guid>
      <dc:creator>Kirito1</dc:creator>
      <dc:date>2023-02-15T04:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding Code</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Understanding-Code/m-p/858870#M37928</link>
      <description>&lt;P&gt;The DOLLAR format displays&amp;nbsp; values with a national language currency symbol. The BEST format attempts to display a value in the given number of characters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The input statement in this case does not need a $ because the INFORMAT statements indicate the variables are character. If you did not have an Informat or ATTRIBUTE statement indicating the values are to be character then the $ on the input would default to reading up to 8 characters into a character value.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 05:19:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Understanding-Code/m-p/858870#M37928</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-02-15T05:19:44Z</dc:date>
    </item>
  </channel>
</rss>

