<?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: Invalid data for birthyear in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Invalid-data-for-birthyear/m-p/511407#M32453</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/233953"&gt;@Spartan63611&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;It's strange I uploaded the screen shots put it does not show in the posted version...&lt;BR /&gt;Any idea what I could be doing wrong?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;One thing, do not post screen shots of LOGS. The log is plain text so copy the text from the log and paste into a code box opened using the forum's {I} or "running man" icon.&lt;/P&gt;
&lt;P&gt;That way if someone want to comment on a specific part of the code they can copy, paste and correct,&amp;nbsp;highlight or insert comments in the correct place.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you use the PHOTO icon in the forum to past pictures?&lt;/P&gt;</description>
    <pubDate>Thu, 08 Nov 2018 15:25:15 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-11-08T15:25:15Z</dc:date>
    <item>
      <title>Invalid data for birthyear</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Invalid-data-for-birthyear/m-p/511397#M32449</link>
      <description>&lt;P&gt;New to SAS&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attempting to Import a .TSV Dataset and I get error message.&lt;/P&gt;&lt;P&gt;I included a screenshot of the log, the import command and a sample of the data in wordpad.&lt;/P&gt;&lt;P&gt;I greatly appreciate any help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import datafile='C:\2605SAS\IMDB\Unzippeddata\name.basics.tsv'
            out=name
            dbms=dlm
            replace;
	   datarow=10;
     delimiter='09'x;
run;&lt;BR /&gt;&lt;BR /&gt;log :&lt;BR /&gt;&lt;BR /&gt;116 dbms=dlm&lt;BR /&gt;117 replace;&lt;BR /&gt;118 datarow=10;&lt;BR /&gt;119 delimiter='09'x;&lt;BR /&gt;120 run;&lt;BR /&gt;&lt;BR /&gt;121 /**********************************************************************&lt;BR /&gt;122 * PRODUCT: SAS&lt;BR /&gt;123 * VERSION: 9.4&lt;BR /&gt;124 * CREATOR: External File Interface&lt;BR /&gt;125 * DATE: 08NOV18&lt;BR /&gt;126 * DESC: Generated SAS Datastep Code&lt;BR /&gt;127 * TEMPLATE SOURCE: (None Specified.)&lt;BR /&gt;128 ***********************************************************************/&lt;BR /&gt;129 data WORK.NAME ;&lt;BR /&gt;130 %let _EFIERR_ = 0; /* set the ERROR detection macro variable */&lt;BR /&gt;131 infile 'C:\2605SAS\IMDB\Unzippeddata\name.basics.tsv' delimiter='09'x MISSOVER DSD&lt;BR /&gt;131! lrecl=32767 firstobs=10 ;&lt;BR /&gt;132 informat nconst $9. ;&lt;BR /&gt;133 informat primaryName $19. ;&lt;BR /&gt;134 informat birthYear best32. ;&lt;BR /&gt;135 informat deathYear $4. ;&lt;BR /&gt;136 informat primaryProfession $37. ;&lt;BR /&gt;137 informat knownForTitles $39. ;&lt;BR /&gt;138 format nconst $9. ;&lt;BR /&gt;139 format primaryName $19. ;&lt;BR /&gt;140 format birthYear best12. ;&lt;BR /&gt;141 format deathYear $4. ;&lt;BR /&gt;142 format primaryProfession $37. ;&lt;BR /&gt;143 format knownForTitles $39. ;&lt;BR /&gt;144 input&lt;BR /&gt;145 nconst $&lt;BR /&gt;146 primaryName $&lt;BR /&gt;147 birthYear&lt;BR /&gt;148 deathYear $&lt;BR /&gt;149 primaryProfession $&lt;BR /&gt;150 knownForTitles $&lt;BR /&gt;151 ;&lt;BR /&gt;152 if _ERROR_ then call symputx('_EFIERR_',1); /* set ERROR detection macro variable */&lt;BR /&gt;153 run;&lt;BR /&gt;&lt;BR /&gt;NOTE: The infile 'C:\2605SAS\IMDB\Unzippeddata\name.basics.tsv' is:&lt;BR /&gt; Filename=C:\2605SAS\IMDB\Unzippeddata\name.basics.tsv,&lt;BR /&gt; RECFM=V,LRECL=32767,&lt;BR /&gt; File Size (bytes)=539959919,&lt;BR /&gt; Last Modified=November 08, 2018 07:20:56,&lt;BR /&gt; Create Time=November 08, 2018 07:20:56&lt;BR /&gt;&lt;BR /&gt;NOTE: Invalid data for birthYear in line 84 23-24.&lt;BR /&gt;RULE: ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----&lt;BR /&gt;&lt;BR /&gt;84 CHAR nm0000083.Alan Miller.\N.\N.editor,writer,director.tt0969216,tt0170560,tt0424773 80&lt;BR /&gt; ZONE 66333333304666246666705405406667672776767266766767077333333327733333332773333333&lt;BR /&gt; NUMR ED000008391C1E0D9CC529CE9CE95494F2C729452C492534F29440969216C440170560C440424773&lt;BR /&gt;nconst=nm0000083 primaryName=Alan Miller birthYear=. deathYear=\N&lt;BR /&gt;primaryProfession=editor,writer,director knownForTitles=tt0969216,tt0170560,tt0424773 _ERROR_=1&lt;BR /&gt;_N_=75&lt;BR /&gt;NOTE: Invalid data for birthYear in line 95 21-22.&lt;BR /&gt;&lt;BR /&gt;95 CHAR nm0000094.J. Reifel.\N.\N.writer.tt0118631,tt0117915,tt0116030,tt0118886 72&lt;BR /&gt; ZONE 663333333042256666605405407767670773333333277333333327733333332773333333&lt;BR /&gt; NUMR ED00000949AE025965C9CE9CE97294529440118631C440117915C440116030C440118886&lt;BR /&gt;nconst=nm0000094 primaryName=J. Reifel birthYear=. deathYear=\N primaryProfession=writer&lt;BR /&gt;knownForTitles=tt0118631,tt0117915,tt0116030,tt0118886 _ERROR_=1 _N_=86&lt;BR /&gt;NOTE: Invalid data for birthYear in line 648 24-25.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;RULE: ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----&lt;BR /&gt;&lt;BR /&gt;648 CHAR nm0000647.Alan Smithee.\N.\N.director,actor,writer.tt0118577,tt2076794,tt0086491,tt011651&lt;BR /&gt; ZONE 66333333304666256676660540540667667672667672776767077333333327733333332773333333277333333&lt;BR /&gt; NUMR ED000064791C1E03D948559CE9CE9492534F2C134F2C7294529440118577C442076794C440086491C44011651&lt;BR /&gt; 90 4 90&lt;BR /&gt;nconst=nm0000647 primaryName=Alan Smithee birthYear=. deathYear=\N&lt;BR /&gt;primaryProfession=director,actor,writer knownForTitles=tt0118577,tt2076794,tt0086491,tt0116514&lt;BR /&gt;_ERROR_=1 _N_=639&lt;BR /&gt;NOTE: Invalid data for birthYear in line 713 23-24.&lt;BR /&gt;&lt;BR /&gt;713 CHAR nm0000712.Steve Cohen.\N.\N.assistant_director,miscellaneous,director.tt0089218,tt0098844&lt;BR /&gt; ZONE 66333333305767624666605405406776776675667667672667666666667726676676707733333332773333333&lt;BR /&gt; NUMR ED000071293456503F85E9CE9CE91339341E4F492534F2CD9335CC1E5F53C492534F29440089218C440098844&lt;BR /&gt; 90 ,tt0143213,tt0363685 109&lt;BR /&gt;nconst=nm0000712 primaryName=Steve Cohen birthYear=. deathYear=\N&lt;BR /&gt;primaryProfession=assistant_director,miscellaneous,dire&lt;BR /&gt;knownForTitles=tt0089218,tt0098844,tt0143213,tt0363685 _ERROR_=1 _N_=704&lt;BR /&gt;NOTE: Invalid data for birthYear in line 1269 24-25.&lt;BR /&gt;&lt;BR /&gt;1269CHAR nm0001269.Cynthia Gibb.\N.\N.actress,soundtrack.tt0091886,tt0107065,tt0099385,tt0083412 87&lt;BR /&gt; ZONE 663333333047676662466605405406677677276766776660773333333277333333327733333332773333333&lt;BR /&gt; NUMR ED0001269939E4891079229CE9CE91342533C3F5E44213B9440091886C440107065C440099385C440083412&lt;BR /&gt;nconst=nm0001269 primaryName=Cynthia Gibb birthYear=. deathYear=\N&lt;BR /&gt;primaryProfession=actress,soundtrack knownForTitles=tt0091886,tt0107065,tt0099385,tt0083412&lt;BR /&gt;_ERROR_=1 _N_=1260&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Nov 2018 15:29:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Invalid-data-for-birthyear/m-p/511397#M32449</guid>
      <dc:creator>Spartan63611</dc:creator>
      <dc:date>2018-11-08T15:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid data for birthyear</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Invalid-data-for-birthyear/m-p/511398#M32450</link>
      <description>&lt;P&gt;Welcome to the SAS community &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I don't see any attached files?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2018 14:58:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Invalid-data-for-birthyear/m-p/511398#M32450</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-11-08T14:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid data for birthyear</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Invalid-data-for-birthyear/m-p/511401#M32451</link>
      <description>&lt;P&gt;Thanks for the notice I will upload them again &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2018 15:05:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Invalid-data-for-birthyear/m-p/511401#M32451</guid>
      <dc:creator>Spartan63611</dc:creator>
      <dc:date>2018-11-08T15:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid data for birthyear</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Invalid-data-for-birthyear/m-p/511403#M32452</link>
      <description>It's strange I uploaded the screen shots put it does not show in the posted version...&lt;BR /&gt;Any idea what I could be doing wrong?</description>
      <pubDate>Thu, 08 Nov 2018 15:11:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Invalid-data-for-birthyear/m-p/511403#M32452</guid>
      <dc:creator>Spartan63611</dc:creator>
      <dc:date>2018-11-08T15:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid data for birthyear</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Invalid-data-for-birthyear/m-p/511407#M32453</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/233953"&gt;@Spartan63611&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;It's strange I uploaded the screen shots put it does not show in the posted version...&lt;BR /&gt;Any idea what I could be doing wrong?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;One thing, do not post screen shots of LOGS. The log is plain text so copy the text from the log and paste into a code box opened using the forum's {I} or "running man" icon.&lt;/P&gt;
&lt;P&gt;That way if someone want to comment on a specific part of the code they can copy, paste and correct,&amp;nbsp;highlight or insert comments in the correct place.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you use the PHOTO icon in the forum to past pictures?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2018 15:25:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Invalid-data-for-birthyear/m-p/511407#M32453</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-11-08T15:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid data for birthyear</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Invalid-data-for-birthyear/m-p/511408#M32454</link>
      <description>Yes I used photos.&lt;BR /&gt;I will simply copy paste like you suggested thank you</description>
      <pubDate>Thu, 08 Nov 2018 15:27:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Invalid-data-for-birthyear/m-p/511408#M32454</guid>
      <dc:creator>Spartan63611</dc:creator>
      <dc:date>2018-11-08T15:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid data for birthyear</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Invalid-data-for-birthyear/m-p/511419#M32455</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/233953"&gt;@Spartan63611&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like&amp;nbsp;unknown&amp;nbsp;values of birthyear&amp;nbsp;are coded as "\N" in the data. The same is true for deathyear, but SAS decided (based on the first 20 data rows) to treat birthyear as a numeric variable (for which \N is invalid), but deathyear as a character variable. So, a first step towards a solution is to insert the statement&lt;/P&gt;
&lt;PRE&gt;guessingrows=200;&lt;/PRE&gt;
&lt;P&gt;into the PROC IMPORT step.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2018 15:54:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Invalid-data-for-birthyear/m-p/511419#M32455</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2018-11-08T15:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid data for birthyear</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Invalid-data-for-birthyear/m-p/511430#M32456</link>
      <description>Thank you&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Nov 2018 16:16:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Invalid-data-for-birthyear/m-p/511430#M32456</guid>
      <dc:creator>Spartan63611</dc:creator>
      <dc:date>2018-11-08T16:16:15Z</dc:date>
    </item>
  </channel>
</rss>

