<?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 Why am getting blank values while inputting Date column in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Why-am-getting-blank-values-while-inputting-Date-column/m-p/807216#M318205</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;DATA df1;
Informat  dob DDMMYY10.  Date_ DATE9.;
Input @32dob DDMMYY10. @55Date_ DATE9.;
Format dob DDMMYY10. Date_ DATE9.;
DATALINES;
 05/06/1990  23Dec2000
 05/11/1991  20NOV2020
;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new SAS programming. I would like to create data with dob and date column by using above code am Am getting output like below&lt;/P&gt;&lt;P&gt;dob&amp;nbsp; Date_&lt;/P&gt;&lt;P&gt;&amp;nbsp;.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .&lt;/P&gt;&lt;P&gt;&amp;nbsp;.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please, help me where am gone wrong.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Apr 2022 17:51:44 GMT</pubDate>
    <dc:creator>SASCODERS</dc:creator>
    <dc:date>2022-04-11T17:51:44Z</dc:date>
    <item>
      <title>Why am getting blank values while inputting Date column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-am-getting-blank-values-while-inputting-Date-column/m-p/807216#M318205</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;DATA df1;
Informat  dob DDMMYY10.  Date_ DATE9.;
Input @32dob DDMMYY10. @55Date_ DATE9.;
Format dob DDMMYY10. Date_ DATE9.;
DATALINES;
 05/06/1990  23Dec2000
 05/11/1991  20NOV2020
;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new SAS programming. I would like to create data with dob and date column by using above code am Am getting output like below&lt;/P&gt;&lt;P&gt;dob&amp;nbsp; Date_&lt;/P&gt;&lt;P&gt;&amp;nbsp;.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .&lt;/P&gt;&lt;P&gt;&amp;nbsp;.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please, help me where am gone wrong.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 17:51:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-am-getting-blank-values-while-inputting-Date-column/m-p/807216#M318205</guid>
      <dc:creator>SASCODERS</dc:creator>
      <dc:date>2022-04-11T17:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: Why am getting blank values while inputting Date column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-am-getting-blank-values-while-inputting-Date-column/m-p/807218#M318207</link>
      <description>&lt;P&gt;When you use&amp;nbsp;@32 and&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/174952"&gt;@55&lt;/a&gt;&amp;nbsp;in an INPUT statement, it tells SAS to read starting in column 32 and starting in column 55, and there is nothing in there.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This should work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA df1;
Input dob :DDMMYY10. Date_ :DATE9.;
Format dob DDMMYY10. Date_ DATE9.;
DATALINES;
 05/06/1990  23Dec2000
 05/11/1991  20NOV2020
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 18:08:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-am-getting-blank-values-while-inputting-Date-column/m-p/807218#M318207</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-04-11T18:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: Why am getting blank values while inputting Date column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-am-getting-blank-values-while-inputting-Date-column/m-p/807221#M318208</link>
      <description>&lt;P&gt;is @32 ,@55 means we are telling SAS that column position?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 18:14:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-am-getting-blank-values-while-inputting-Date-column/m-p/807221#M318208</guid>
      <dc:creator>SASCODERS</dc:creator>
      <dc:date>2022-04-11T18:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Why am getting blank values while inputting Date column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-am-getting-blank-values-while-inputting-Date-column/m-p/807240#M318218</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/421825"&gt;@SASCODERS&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;is @32 ,@55 means we are telling SAS that column position?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes. With input the @ moves the input pointer to that character position on the line of text to be read. Then your next "instruction" such as reading a variable occurs depending to the actual line&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Similar, an #n reads "on line number n" if the Infile has been set up to read multiple lines correctly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 19:46:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-am-getting-blank-values-while-inputting-Date-column/m-p/807240#M318218</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-04-11T19:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Why am getting blank values while inputting Date column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-am-getting-blank-values-while-inputting-Date-column/m-p/807241#M318219</link>
      <description>&lt;P&gt;Thank you for explaining.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 19:53:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-am-getting-blank-values-while-inputting-Date-column/m-p/807241#M318219</guid>
      <dc:creator>SASCODERS</dc:creator>
      <dc:date>2022-04-11T19:53:27Z</dc:date>
    </item>
  </channel>
</rss>

