<?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: Getting _ERROR_=1 _N_=1 in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Getting-ERROR-1-N-1/m-p/563086#M10837</link>
    <description>&lt;P&gt;When using LIST input with and explicit INFORMAT you need to add the colon format modifier.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data testing3;
infile datalines dlm=',';
input pid name $ &lt;STRONG&gt;(ad dc)(:date.)&lt;/STRONG&gt;;
format ad dc date9.;
datalines;
101,Thanaos,12Jan2019,29Jan2019
201,Dtrange,11Mar2019,18Mar2019
301,Steve,23Sep2018,19Feb2019
401,Steve,23Sep2018,01May2019
;
run;
proc print;
   run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 01 Jun 2019 12:38:01 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2019-06-01T12:38:01Z</dc:date>
    <item>
      <title>Getting _ERROR_=1 _N_=1</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Getting-ERROR-1-N-1/m-p/563081#M10835</link>
      <description>&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;While executing below dataset I am getting error.&lt;/P&gt;&lt;P&gt;Can some one help to figure out why is the error and how to correct it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data testing3;&lt;BR /&gt;infile datalines dlm=',';&lt;BR /&gt;input pid name$ ad date9. dc date9. ;&lt;BR /&gt;format ad dc date9.;&lt;BR /&gt;datalines;&lt;BR /&gt;101,Thanaos,12Jan2019,29Jan2019&lt;BR /&gt;201,Dtrange,11Mar2019,18Mar2019&lt;BR /&gt;301,Steve,23Sep2018,19Feb2019&lt;BR /&gt;401,Steve,23Sep2018,01May2019&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;Data testing3;&lt;BR /&gt;308 infile datalines dlm=',';&lt;BR /&gt;309 input pid name$ ad date9. dc date9. ;&lt;BR /&gt;310 format ad dc date9.;&lt;BR /&gt;311 datalines;&lt;/P&gt;&lt;P&gt;NOTE: Invalid data for dc in line 312 21-29.&lt;BR /&gt;RULE: ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----&lt;BR /&gt;312 101,Thanao,12Jan2019,29Jan2019&lt;BR /&gt;pid=101 name=Thanao ad=12JAN2019 dc=. _ERROR_=1 _N_=1&lt;BR /&gt;NOTE: Invalid data for dc in line 313 22-30.&lt;BR /&gt;313 201,Dtrange,11Mar2019,18Mar2019&lt;BR /&gt;pid=201 name=Dtrange ad=11MAR2019 dc=. _ERROR_=1 _N_=2&lt;BR /&gt;NOTE: Invalid data for dc in line 314 20-28.&lt;BR /&gt;314 301,Steve,23Sep2018,19Feb2019&lt;BR /&gt;pid=301 name=Steve ad=23SEP2018 dc=. _ERROR_=1 _N_=3&lt;BR /&gt;NOTE: Invalid data for dc in line 315 20-28.&lt;BR /&gt;315 401,Steve,23Sep2018,01May2019&lt;BR /&gt;pid=401 name=Steve ad=23SEP2018 dc=. _ERROR_=1 _N_=4&lt;BR /&gt;NOTE: The data set WORK.TESTING3 has 4 observations and 4 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.01 seconds&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;316 ;&lt;BR /&gt;317 run;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Jun 2019 10:52:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Getting-ERROR-1-N-1/m-p/563081#M10835</guid>
      <dc:creator>Ajayvit</dc:creator>
      <dc:date>2019-06-01T10:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Getting _ERROR_=1 _N_=1</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Getting-ERROR-1-N-1/m-p/563086#M10837</link>
      <description>&lt;P&gt;When using LIST input with and explicit INFORMAT you need to add the colon format modifier.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data testing3;
infile datalines dlm=',';
input pid name $ &lt;STRONG&gt;(ad dc)(:date.)&lt;/STRONG&gt;;
format ad dc date9.;
datalines;
101,Thanaos,12Jan2019,29Jan2019
201,Dtrange,11Mar2019,18Mar2019
301,Steve,23Sep2018,19Feb2019
401,Steve,23Sep2018,01May2019
;
run;
proc print;
   run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 01 Jun 2019 12:38:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Getting-ERROR-1-N-1/m-p/563086#M10837</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2019-06-01T12:38:01Z</dc:date>
    </item>
  </channel>
</rss>

