<?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: DATE INFORMAT ISSUE in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/DATE-INFORMAT-ISSUE/m-p/756077#M238653</link>
    <description>&lt;P&gt;From what you've shown initially this works. It seems like your actual problem may be a bit different, in that case this may or may not work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
informat cumulative_premium dollar. medical_expenses dollar. renewaldt mmddyy10.;
format cumulative_premium medical_expenses dollar12. renewaldt date9.;
input Cumulative_premium Medical_Expenses Renewaldt;
cards;
$123,456       $456,876                            3/1/2019
$786,000       $657,999                            3/1/2019
$786,909       $678,000                            3/15/2019
;;;;
run;

proc print data=have;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/225590"&gt;@Srivikasheeba&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;infile "path";&lt;/P&gt;
&lt;P&gt;ENCODING = "LATINI"&lt;/P&gt;
&lt;P&gt;PAD&lt;/P&gt;
&lt;P&gt;DLM=' , '&lt;/P&gt;
&lt;P&gt;MISSOVER&lt;/P&gt;
&lt;P&gt;DSD FIRSTOBS=2;&lt;/P&gt;
&lt;P&gt;This is my code before length statement&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Jul 2021 22:02:36 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2021-07-22T22:02:36Z</dc:date>
    <item>
      <title>DATE INFORMAT ISSUE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DATE-INFORMAT-ISSUE/m-p/756066#M238643</link>
      <description>....</description>
      <pubDate>Fri, 23 Jul 2021 07:25:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DATE-INFORMAT-ISSUE/m-p/756066#M238643</guid>
      <dc:creator>Srivikasheeba</dc:creator>
      <dc:date>2021-07-23T07:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: DATE INFORMAT ISSUE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DATE-INFORMAT-ISSUE/m-p/756070#M238647</link>
      <description>You don't specify a delimiter, what's your delimiter?</description>
      <pubDate>Thu, 22 Jul 2021 21:58:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DATE-INFORMAT-ISSUE/m-p/756070#M238647</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-07-22T21:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: DATE INFORMAT ISSUE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DATE-INFORMAT-ISSUE/m-p/756074#M238651</link>
      <description>. ..</description>
      <pubDate>Fri, 23 Jul 2021 07:25:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DATE-INFORMAT-ISSUE/m-p/756074#M238651</guid>
      <dc:creator>Srivikasheeba</dc:creator>
      <dc:date>2021-07-23T07:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: DATE INFORMAT ISSUE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DATE-INFORMAT-ISSUE/m-p/756075#M238652</link>
      <description>Are you reading from a text file or CARDS?</description>
      <pubDate>Thu, 22 Jul 2021 22:01:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DATE-INFORMAT-ISSUE/m-p/756075#M238652</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-07-22T22:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: DATE INFORMAT ISSUE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DATE-INFORMAT-ISSUE/m-p/756077#M238653</link>
      <description>&lt;P&gt;From what you've shown initially this works. It seems like your actual problem may be a bit different, in that case this may or may not work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
informat cumulative_premium dollar. medical_expenses dollar. renewaldt mmddyy10.;
format cumulative_premium medical_expenses dollar12. renewaldt date9.;
input Cumulative_premium Medical_Expenses Renewaldt;
cards;
$123,456       $456,876                            3/1/2019
$786,000       $657,999                            3/1/2019
$786,909       $678,000                            3/15/2019
;;;;
run;

proc print data=have;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/225590"&gt;@Srivikasheeba&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;infile "path";&lt;/P&gt;
&lt;P&gt;ENCODING = "LATINI"&lt;/P&gt;
&lt;P&gt;PAD&lt;/P&gt;
&lt;P&gt;DLM=' , '&lt;/P&gt;
&lt;P&gt;MISSOVER&lt;/P&gt;
&lt;P&gt;DSD FIRSTOBS=2;&lt;/P&gt;
&lt;P&gt;This is my code before length statement&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 22:02:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DATE-INFORMAT-ISSUE/m-p/756077#M238653</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-07-22T22:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: DATE INFORMAT ISSUE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DATE-INFORMAT-ISSUE/m-p/756078#M238654</link>
      <description>&lt;P&gt;I am reading csv files using infile statement&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 22:03:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DATE-INFORMAT-ISSUE/m-p/756078#M238654</guid>
      <dc:creator>Srivikasheeba</dc:creator>
      <dc:date>2021-07-22T22:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: DATE INFORMAT ISSUE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DATE-INFORMAT-ISSUE/m-p/756080#M238656</link>
      <description>How are you currency values specified in the CSV? They have comma's embedded in the field, but I assume they have quotation marks around them?  If not, how do you know if a value is $123 or $123,456? In this case you'd have an improperly specified CSV file which would be difficult to work with. You need to verify your CSV with a text editor or SAS, not Excel. Excel 'imports' data to view it and it may not reflect the true data.</description>
      <pubDate>Thu, 22 Jul 2021 22:07:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DATE-INFORMAT-ISSUE/m-p/756080#M238656</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-07-22T22:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: DATE INFORMAT ISSUE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DATE-INFORMAT-ISSUE/m-p/756082#M238658</link>
      <description>&lt;P&gt;Hello reeza ,thanks for the reply, date9. just changed the date format but the error still persists , now my date value is&amp;nbsp;&lt;/P&gt;&lt;P&gt;01JAN2019&lt;/P&gt;&lt;P&gt;but the secound date is still missing and this is read .9 in next column, where it shouldnt read&lt;/P&gt;&lt;P&gt;Renewaldt&amp;nbsp; &amp;nbsp; &amp;nbsp; Rent&lt;/P&gt;&lt;P&gt;01JAN2019&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; . 9&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;problem is program not reading correctly the dates&amp;nbsp;&lt;/P&gt;&lt;P&gt;date 1:1/1/2019&lt;/P&gt;&lt;P&gt;date2:1/15/2019&lt;/P&gt;&lt;P&gt;if i give mmddyy8. only 1/1/2019 reads but other date moves to rent column and reads as .9 (which is the 9 in 2019)&lt;/P&gt;&lt;P&gt;if I give mmddyy9. only 1/15/2019 reads but date1 is missing&lt;/P&gt;&lt;P&gt;how can I read both&amp;nbsp;@ once?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 22:14:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DATE-INFORMAT-ISSUE/m-p/756082#M238658</guid>
      <dc:creator>Srivikasheeba</dc:creator>
      <dc:date>2021-07-22T22:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: DATE INFORMAT ISSUE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DATE-INFORMAT-ISSUE/m-p/756087#M238663</link>
      <description>&lt;P&gt;Here's an idea, show use some of your actual lines of data. Copy the lines with the header and maybe 5 lines of data. On the forum open a text box using the &amp;lt;/&amp;gt; icon and paste the data.&lt;/P&gt;
&lt;P&gt;BTW, if you opened the file in a spreadsheet and then saved on closing you may have just changed the original contents of the cells.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or copy the log from running or code for the entire step reading the data including all notes and warnings and again paste into a text box.&lt;/P&gt;
&lt;P&gt;The message windows reformat text quite a bit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;;

Input
Cumulative premium$ 
Medical Expenses$ 
Renewaldt ANYDTDTE10.

;&lt;/PRE&gt;
&lt;P&gt;would attempt to read in 5 variables: Cumulative (as numeric), premium as character, Medical (as numeric), Expenses as character and then the Renewaldt. If the source is as you describe then by the time you get to Medical all of the data columns have been "used" and then Expenses and Renewaldt should generate the ever popular "read on next line" warning.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Standard SAS variable names cannot have spaces in them. If you want to use "extended" names and the system options are set to allow it you would have to use "Cumulative Premium"n to reference a single variable. The quotes and n needed every place you attempt to use the variable.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 22:30:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DATE-INFORMAT-ISSUE/m-p/756087#M238663</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-07-22T22:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: DATE INFORMAT ISSUE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DATE-INFORMAT-ISSUE/m-p/756123#M238678</link>
      <description>&lt;P&gt;What you posted is positively NOT a csv file at all. In&amp;nbsp;&lt;STRONG&gt;C&lt;/STRONG&gt;omma&amp;nbsp;&lt;STRONG&gt;S&lt;/STRONG&gt;eparated &lt;STRONG&gt;V&lt;/STRONG&gt;olumes, data items have to be separated by commas, not arbitrary numbers of blanks.&lt;/P&gt;
&lt;P&gt;Open your file with a text editor (NOT with Excel!), copy the first few lines, and paste them into a code box opened with the &amp;lt;/&amp;gt; button.&amp;nbsp;&lt;STRONG&gt;Do not skip this.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Only when we can see your real data will we be able to help you.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 06:01:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DATE-INFORMAT-ISSUE/m-p/756123#M238678</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-07-23T06:01:00Z</dc:date>
    </item>
  </channel>
</rss>

