<?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: dataline, infile error message in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/dataline-infile-error-message/m-p/776439#M246947</link>
    <description>&lt;PRE&gt;data cltrials;
  infile datalines truncover  ;
  input Name : $20. TestDate : date9. Sex $ Placebo  $ Cholesterol Triglyc  Uric ;
  format TestDate date9.;
datalines;
Johnson 22MAY2000 F YES 200 180 3.7
Eberhardt 22MAY2000 F NO 244 320 4.6
Nunnelly 22MAY2000 F YES 210 300 4.0
Johnson 01AUG2000 F YES 205 185 3.8
Eberhardt 01AUG2000 F NO 249 325 4.7
Nunnelly 01AUG2000 F YES 215 305 4.1
Johnson 09AUG2000 F YES 215 190 3.9
Eberhardt 09AUG2000 F NO 254 330 4.8
Nunnelly 09AUG2000 F YES 220 310 4.2
;
run;&lt;/PRE&gt;</description>
    <pubDate>Tue, 26 Oct 2021 12:17:26 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2021-10-26T12:17:26Z</dc:date>
    <item>
      <title>dataline, infile error message</title>
      <link>https://communities.sas.com/t5/SAS-Programming/dataline-infile-error-message/m-p/776332#M246877</link>
      <description>&lt;P&gt;I am receiving an error message with the below code.&amp;nbsp; What do I need to add on the infile statement?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;data cltrials;

  infile datalines truncover  ;

  input Name : $ TestDate $ Sex $ Placebo : $ Cholesterol 3. Triglyc 3. Uric 3.1;

  *format TestDate date9.;

datalines;
Johnson 22MAY2000 F YES 200 180 3.7
Eberhardt 22MAY2000 F NO 244 320 4.6
Nunnelly 22MAY2000 F YES 210 300 4.0
Johnson 01AUG2000 F YES 205 185 3.8
Eberhardt 01AUG2000 F NO 249 325 4.7
Nunnelly 01AUG2000 F YES 215 305 4.1
Johnson 09AUG2000 F YES 215 190 3.9
Eberhardt 09AUG2000 F NO 254 330 4.8
Nunnelly 09AUG2000 F YES 220 310 4.2
;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;error message:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;3478 data cltrials;&lt;BR /&gt;3479&lt;BR /&gt;3480 infile datalines dsd;&lt;BR /&gt;3481&lt;BR /&gt;3482 input Name : $ TestDate $ Sex $ Placebo : $ Cholesterol 3. Triglyc 3. Uric 3.1;&lt;BR /&gt;3483&lt;BR /&gt;3484 *format TestDate date9.;&lt;BR /&gt;3485&lt;BR /&gt;3486 datalines;&lt;/P&gt;&lt;P&gt;NOTE: Invalid data for Cholesterol in line 3491 1-3.&lt;BR /&gt;NOTE: Invalid data for Triglyc in line 3491 4-6.&lt;BR /&gt;NOTE: Invalid data for Uric in line 3491 7-9.&lt;BR /&gt;RULE: ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0&lt;BR /&gt;3491 Eberhardt 01AUG2000 F NO 249 325 4.7&lt;BR /&gt;Name=Johnson TestDate=Eberhard Sex=Nunnelly Placebo=Johnson Cholesterol=. Triglyc=. Uric=. _ERROR_=1 _N_=1&lt;BR /&gt;NOTE: LOST CARD.&lt;BR /&gt;3496 ;&lt;BR /&gt;Name=Nunnelly TestDate=Johnson Sex=Eberhard Placebo=Nunnelly Cholesterol=. Triglyc=. Uric=. _ERROR_=1 _N_=2&lt;BR /&gt;NOTE: SAS went to a new line when INPUT statement reached past the end of a line.&lt;BR /&gt;NOTE: The data set WORK.CLTRIALS has 1 observations and 7 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.01 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;3496 ;&lt;BR /&gt;3497 run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 26 Oct 2021 00:09:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/dataline-infile-error-message/m-p/776332#M246877</guid>
      <dc:creator>HitmonTran</dc:creator>
      <dc:date>2021-10-26T00:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: dataline, infile error message</title>
      <link>https://communities.sas.com/t5/SAS-Programming/dataline-infile-error-message/m-p/776344#M246882</link>
      <description>The program you posted does not match the log you posted.  You need to add TRUNCOVER to the INFILE statement.</description>
      <pubDate>Tue, 26 Oct 2021 01:16:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/dataline-infile-error-message/m-p/776344#M246882</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2021-10-26T01:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: dataline, infile error message</title>
      <link>https://communities.sas.com/t5/SAS-Programming/dataline-infile-error-message/m-p/776360#M246895</link>
      <description>&lt;P&gt;The program in your picture is expecting commas between the values because it used the DSD option and did not override the comma delimiter that option implies.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 03:47:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/dataline-infile-error-message/m-p/776360#M246895</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-10-26T03:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: dataline, infile error message</title>
      <link>https://communities.sas.com/t5/SAS-Programming/dataline-infile-error-message/m-p/776365#M246900</link>
      <description>&lt;UL&gt;
&lt;LI&gt;The code you posted does not match the log.&lt;/LI&gt;
&lt;LI&gt;To make the INPUT statement honor the delimiters, you must use the colon modifier before every informat. Or you define the informats in a separate INFORMAT or ATTRIB statement and omit them from the INPUT.&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 26 Oct 2021 05:54:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/dataline-infile-error-message/m-p/776365#M246900</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-10-26T05:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: dataline, infile error message</title>
      <link>https://communities.sas.com/t5/SAS-Programming/dataline-infile-error-message/m-p/776373#M246905</link>
      <description>&lt;P&gt;Additionally do not use the decimals on list input unless you really know what an implied decimal means. It may even be better for numeric values to just leave the informat off entirely. If you specify an informat like 3. and encounter a value of 9999 you will not have a numeric value of 9999 but 999 (or 99.9 if using 3.1).&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 06:37:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/dataline-infile-error-message/m-p/776373#M246905</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-10-26T06:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: dataline, infile error message</title>
      <link>https://communities.sas.com/t5/SAS-Programming/dataline-infile-error-message/m-p/776439#M246947</link>
      <description>&lt;PRE&gt;data cltrials;
  infile datalines truncover  ;
  input Name : $20. TestDate : date9. Sex $ Placebo  $ Cholesterol Triglyc  Uric ;
  format TestDate date9.;
datalines;
Johnson 22MAY2000 F YES 200 180 3.7
Eberhardt 22MAY2000 F NO 244 320 4.6
Nunnelly 22MAY2000 F YES 210 300 4.0
Johnson 01AUG2000 F YES 205 185 3.8
Eberhardt 01AUG2000 F NO 249 325 4.7
Nunnelly 01AUG2000 F YES 215 305 4.1
Johnson 09AUG2000 F YES 215 190 3.9
Eberhardt 09AUG2000 F NO 254 330 4.8
Nunnelly 09AUG2000 F YES 220 310 4.2
;
run;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Oct 2021 12:17:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/dataline-infile-error-message/m-p/776439#M246947</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-10-26T12:17:26Z</dc:date>
    </item>
  </channel>
</rss>

