<?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: Datalines Statement Producing Blanks in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Datalines-Statement-Producing-Blanks/m-p/616973#M18978</link>
    <description>&lt;P&gt;Hi draycut,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like the date to come out to the following format: "12-Jan" although I'm not picky about it as much as I need the Sales to be $xxxx.xx&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jan 2020 16:46:30 GMT</pubDate>
    <dc:creator>davidvalentine</dc:creator>
    <dc:date>2020-01-13T16:46:30Z</dc:date>
    <item>
      <title>Datalines Statement Producing Blanks</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Datalines-Statement-Producing-Blanks/m-p/616966#M18974</link>
      <description>&lt;P&gt;Hello Beautiful People!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a simple SAS program that's producing blanks when I run it.&amp;nbsp; The program is below (my intention is for the program to produce what the datalines statement shows):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data work.example_2012;
infile datalines dsd;
	input
	Month monyy6.
	Sales: dollars.;
	format month monyy. Sales dollars4.2;
;
datalines;
12-Jan $1,000.00 
12-Feb $2,000.00 
12-Mar $3,000.00 
12-Apr $4,000.00
12-May $5,000.00 
12-Jun $6,000.00
12-Jul $7,000.00
12-Aug $8,000.00 
12-Sep $9,000.00 
12-Oct $10,000.00
12-Nov $11,000.00 
12-Dec $12,000.00 
;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And the output is like so:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Month Sales
.	.   
.	.  
.	.  
.	.  
.	.  
.	.  
.	.  
.	.  
.	.  
.	.  
.	.  
.	.  &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Can someone tell me what I'm doing wrong?&amp;nbsp; Any guidance is greatly appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Valentine&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2020 16:39:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Datalines-Statement-Producing-Blanks/m-p/616966#M18974</guid>
      <dc:creator>davidvalentine</dc:creator>
      <dc:date>2020-01-13T16:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Datalines Statement Producing Blanks</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Datalines-Statement-Producing-Blanks/m-p/616971#M18976</link>
      <description>&lt;P&gt;What date do your want 12-feb to resolve to? 12 feb 2020? 2019?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2020 16:45:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Datalines-Statement-Producing-Blanks/m-p/616971#M18976</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2020-01-13T16:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: Datalines Statement Producing Blanks</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Datalines-Statement-Producing-Blanks/m-p/616973#M18978</link>
      <description>&lt;P&gt;Hi draycut,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like the date to come out to the following format: "12-Jan" although I'm not picky about it as much as I need the Sales to be $xxxx.xx&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2020 16:46:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Datalines-Statement-Producing-Blanks/m-p/616973#M18978</guid>
      <dc:creator>davidvalentine</dc:creator>
      <dc:date>2020-01-13T16:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: Datalines Statement Producing Blanks</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Datalines-Statement-Producing-Blanks/m-p/616975#M18980</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/295099"&gt;@davidvalentine&lt;/a&gt;&amp;nbsp; If you are not really picky, plz read as char and not bother with informat and format&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data work.example_2012;
infile datalines ;
	input
	month $
	Sales: dollar10.;
	format  Sales dollar10.2;
;
datalines;
12-Jan $1,000.00 
12-Feb $2,000.00 
12-Mar $3,000.00 
12-Apr $4,000.00
12-May $5,000.00 
12-Jun $6,000.00
12-Jul $7,000.00
12-Aug $8,000.00 
12-Sep $9,000.00 
12-Oct $10,000.00
12-Nov $11,000.00 
12-Dec $12,000.00 
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Jan 2020 17:01:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Datalines-Statement-Producing-Blanks/m-p/616975#M18980</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2020-01-13T17:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Datalines Statement Producing Blanks</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Datalines-Statement-Producing-Blanks/m-p/616976#M18981</link>
      <description>Perfect; this gets the job done. Thank you!!!</description>
      <pubDate>Mon, 13 Jan 2020 16:59:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Datalines-Statement-Producing-Blanks/m-p/616976#M18981</guid>
      <dc:creator>davidvalentine</dc:creator>
      <dc:date>2020-01-13T16:59:53Z</dc:date>
    </item>
  </channel>
</rss>

