<?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: ERROR: File WORK.YEAR.DATA does not exist in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-File-WORK-YEAR-DATA-does-not-exist/m-p/416547#M102277</link>
    <description>&lt;P&gt;Output data sets need to be named on the DATA statement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data mixed_data only_nums;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 28 Nov 2017 01:42:32 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-11-28T01:42:32Z</dc:date>
    <item>
      <title>ERROR: File WORK.YEAR.DATA does not exist</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-File-WORK-YEAR-DATA-does-not-exist/m-p/416544#M102275</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot figure out why this is being generated. Everything looks ok to me.&lt;/P&gt;&lt;P&gt;------------------------------------&lt;/P&gt;&lt;P&gt;First, here is the learn.errors file:&lt;/P&gt;&lt;P&gt;libname Learn '/folders/myfolders/Learn' ;&lt;/P&gt;&lt;P&gt;data learn.errors;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; input Subj : $3.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PartNumber $8.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name &amp;amp; $20.;&lt;BR /&gt;datalines;&lt;BR /&gt;001 L1232 Nichole Brown&lt;BR /&gt;0a2 L887X Fred Beans&lt;BR /&gt;003 12321 Alfred 2 Nice&lt;BR /&gt;004 abcde Mary Bumpers&lt;BR /&gt;X89 8888S Gill Sandford&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second, here is the code that is giving me a 'file mixed_data.data does not exist' error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname Learn '/folders/myfolders/Learn' ;&lt;BR /&gt;&lt;BR /&gt;Data Check1 ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Set Learn.Errors ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;If anyalpha(Subj) then output mixed_data ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;else output only_nums ;&lt;BR /&gt;run ;&lt;BR /&gt;&lt;BR /&gt;proc print data=mixed_data noobs ;&lt;BR /&gt;run ;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--------------------&lt;/P&gt;&lt;P&gt;In my understanding, the anyalpha(subj) should produce a file with the datalines from the learn.errors set in which the Subj has letters in it. Why is this creating this error?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 01:03:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-File-WORK-YEAR-DATA-does-not-exist/m-p/416544#M102275</guid>
      <dc:creator>ManitobaMoose</dc:creator>
      <dc:date>2017-11-28T01:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: File WORK.YEAR.DATA does not exist</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-File-WORK-YEAR-DATA-does-not-exist/m-p/416547#M102277</link>
      <description>&lt;P&gt;Output data sets need to be named on the DATA statement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data mixed_data only_nums;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Nov 2017 01:42:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-File-WORK-YEAR-DATA-does-not-exist/m-p/416547#M102277</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-28T01:42:32Z</dc:date>
    </item>
  </channel>
</rss>

