<?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: data step dateline  and cards in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/data-step-dateline-and-cards/m-p/301520#M63831</link>
    <description>&lt;P&gt;Add&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;infile cards truncover;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;before the input statement. Your explicit definition of $1-500 forces SAS to look for more characters than are present on the dataline, and so it skips to the next line. This is NOTEd in the log.&lt;/P&gt;
&lt;P&gt;The truncover option just tells SAS to be OK with what's there on the input line, and not skip.&lt;/P&gt;</description>
    <pubDate>Thu, 29 Sep 2016 13:49:01 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2016-09-29T13:49:01Z</dc:date>
    <item>
      <title>data step dateline  and cards</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-step-dateline-and-cards/m-p/301517#M63829</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;I use SAS 9.4 PC version,&lt;/P&gt;
&lt;P&gt;I have to add extra space between rows of dataline(cards),&amp;nbsp;&amp;nbsp; otherwise will miss half data. please help.&lt;/P&gt;
&lt;P&gt;I don't know why my post will add extra space automatically,if you copy my code there will be spaces betwween rows of data. my code don't has extra space.&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; layout;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;input&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; a $&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;-&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;500&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; ;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;cards&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;@1 CLASS $40.&lt;/P&gt;
&lt;P&gt;@45 ID $10.&lt;/P&gt;
&lt;P&gt;@61 Gailer $100.&lt;/P&gt;
&lt;P&gt;@161 Mid $20.&lt;/P&gt;
&lt;P&gt;@181 PERMIT $8.&lt;/P&gt;
&lt;P&gt;@189 DEST $8.&lt;/P&gt;
&lt;P&gt;@197 Rur $8.&lt;/P&gt;
&lt;P&gt;@205 Month $8.&lt;/P&gt;
&lt;P&gt;@223 Mac $40.&lt;/P&gt;
&lt;P&gt;@263 Product $40.&lt;/P&gt;
&lt;P&gt;@303 Weight_Range $8.&lt;/P&gt;
&lt;P&gt;@326 Revenue 8.&lt;/P&gt;
&lt;P&gt;@338 Pieces 8.&lt;/P&gt;
&lt;P&gt;@350 Weight 8.&lt;/P&gt;
&lt;P&gt;@365 MC_Doc $10.&lt;/P&gt;
&lt;P&gt;@382 CP_Doc $10.&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; layout2;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;input&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; a $&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;-&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;500&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; ;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;cards&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;@1 CLASS $40.&lt;/P&gt;
&lt;P&gt;@45 ID $10.&lt;/P&gt;
&lt;P&gt;@61 Gailer $100.&lt;/P&gt;
&lt;P&gt;@161 Mid $20.&lt;/P&gt;
&lt;P&gt;@181 PERMIT $8.&lt;/P&gt;
&lt;P&gt;@189 DEST $8.&lt;/P&gt;
&lt;P&gt;@197 Rur $8.&lt;/P&gt;
&lt;P&gt;@205 Month $8.&lt;/P&gt;
&lt;P&gt;@223 Mac $40.&lt;/P&gt;
&lt;P&gt;@263 Product $40.&lt;/P&gt;
&lt;P&gt;@303 Weight_Range $8.&lt;/P&gt;
&lt;P&gt;@326 Revenue 8.&lt;/P&gt;
&lt;P&gt;@338 Pieces 8.&lt;/P&gt;
&lt;P&gt;@350 Weight 8.&lt;/P&gt;
&lt;P&gt;@365 MC_Doc $10.&lt;/P&gt;
&lt;P&gt;@382 CP_Doc $10.&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;Thanks&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2016 13:34:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-step-dateline-and-cards/m-p/301517#M63829</guid>
      <dc:creator>GeorgeSAS</dc:creator>
      <dc:date>2016-09-29T13:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: data step dateline  and cards</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-step-dateline-and-cards/m-p/301519#M63830</link>
      <description>&lt;P&gt;First.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This process looks strange to me. &amp;nbsp;The reading of input criteria as card statements.&lt;/P&gt;
&lt;P&gt;I wont judge as maybe you are using that as a mock up.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but try this...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data layout;
infile cards missover;
input a $1-500 ;
cards;
/** your card stuff **/
;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;hth&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;zeke torres&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.wcsug.com" target="_self"&gt;www.wcsug.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2016 13:46:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-step-dateline-and-cards/m-p/301519#M63830</guid>
      <dc:creator>zekeT_sasaholic</dc:creator>
      <dc:date>2016-09-29T13:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: data step dateline  and cards</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-step-dateline-and-cards/m-p/301520#M63831</link>
      <description>&lt;P&gt;Add&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;infile cards truncover;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;before the input statement. Your explicit definition of $1-500 forces SAS to look for more characters than are present on the dataline, and so it skips to the next line. This is NOTEd in the log.&lt;/P&gt;
&lt;P&gt;The truncover option just tells SAS to be OK with what's there on the input line, and not skip.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2016 13:49:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-step-dateline-and-cards/m-p/301520#M63831</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-09-29T13:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: data step dateline  and cards</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-step-dateline-and-cards/m-p/301521#M63832</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/42844"&gt;@zekeT_sasaholic﻿&lt;/a&gt;: missover won't work, as a is then set to missing on all observations.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2016 13:51:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-step-dateline-and-cards/m-p/301521#M63832</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-09-29T13:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: data step dateline  and cards</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-step-dateline-and-cards/m-p/301524#M63835</link>
      <description>&lt;P&gt;Kurt.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks - you are correct.&lt;/P&gt;
&lt;P&gt;i did copy/cut/paste his code over and felt the infile would do the trick.&lt;/P&gt;
&lt;P&gt;i tried before/after.&lt;/P&gt;
&lt;P&gt;i got lazy on doing a proc print to test (although i did look at the log).&lt;/P&gt;
&lt;P&gt;hence the half ass-ed success.&lt;/P&gt;
&lt;P&gt;mea culpa.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;fwiw - i have opted to not make any suggestions without the appropriate amount of coffee to complexity ratio.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;best&lt;/P&gt;
&lt;P&gt;z&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2016 14:08:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-step-dateline-and-cards/m-p/301524#M63835</guid>
      <dc:creator>zekeT_sasaholic</dc:creator>
      <dc:date>2016-09-29T14:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: data step dateline  and cards</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-step-dateline-and-cards/m-p/976144#M378261</link>
      <description>&lt;P&gt;datalines black colour&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2025 17:22:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-step-dateline-and-cards/m-p/976144#M378261</guid>
      <dc:creator>datalines</dc:creator>
      <dc:date>2025-10-01T17:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: data step dateline  and cards</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-step-dateline-and-cards/m-p/976147#M378264</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/478608"&gt;@datalines&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;datalines black colour&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;???&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please post something meaningful, or we'll have to assume that this is the account of a dumb bot intended to spam the communities.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2025 17:45:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-step-dateline-and-cards/m-p/976147#M378264</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2025-10-01T17:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: data step dateline  and cards</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-step-dateline-and-cards/m-p/976205#M378282</link>
      <description>&lt;P&gt;I know this thread only got "reanimated" because of a SPAM message, but this post is a perfect example of why you should (almost) never be using the ancient MISSOVER infile option.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/42844"&gt;@zekeT_sasaholic&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;First.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This process looks strange to me. &amp;nbsp;The reading of input criteria as card statements.&lt;/P&gt;
&lt;P&gt;I wont judge as maybe you are using that as a mock up.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but try this...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data layout;
infile cards missover;
input a $1-500 ;
cards;
/** your card stuff **/
;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;hth&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;zeke torres&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.wcsug.com" target="_self"&gt;www.wcsug.com&lt;/A&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Using the MISSOVER option will prevent the input statement from moving to the next line when the current line does not have 500 remaining characters.&lt;/P&gt;
&lt;P&gt;But it will also discard any line that has less than 500 characters (actually less than 481 since in-line data lines are always padded with spaces to the next multiple of 80 bytes).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead use the newer TRUNCOVER option (I think it is only 30 years old).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Oct 2025 01:54:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-step-dateline-and-cards/m-p/976205#M378282</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-10-02T01:54:40Z</dc:date>
    </item>
  </channel>
</rss>

