<?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: Anydigit Function Error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Anydigit-Function-Error/m-p/396528#M95753</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/158207"&gt;@ManitobaMoose&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;You must define the tables in the DATA statement which you explicitly address in the OUTPUT statements.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname Learn '/folders/myfolders/Learn' ;

Data mixed_data only_nums; 
	Set Learn.Errors ; 
	If anydigit(Subj) then output mixed_data ; 
	else output only_nums ; 
	 
proc print data=mixed_data ; 
run ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 16 Sep 2017 01:44:08 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2017-09-16T01:44:08Z</dc:date>
    <item>
      <title>Anydigit Function Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Anydigit-Function-Error/m-p/396522#M95750</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I work hard to find out what is wrong before positing here, but here I have an error I don't understand. I am getting an error stating that&lt;/P&gt;&lt;P&gt;"The Data step was not specified on the data statement". When I remove the Anydigit function, that error disappears. Thanks for your help.&lt;/P&gt;&lt;PRE&gt;libname Learn '/folders/myfolders/Learn' ;

Data Check1 ; 
	Set Learn.Errors ; 
	If anydigit(Subj) then output mixed_data ; 
	else output only_nums ; 
	 
proc print data=mixed_data ; 
run ;&lt;/PRE&gt;</description>
      <pubDate>Sat, 16 Sep 2017 01:14:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Anydigit-Function-Error/m-p/396522#M95750</guid>
      <dc:creator>ManitobaMoose</dc:creator>
      <dc:date>2017-09-16T01:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Anydigit Function Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Anydigit-Function-Error/m-p/396524#M95751</link>
      <description>&lt;P&gt;The name(s) in the DATA statement need to match the name(s) in the OUTPUT statement.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Sep 2017 01:23:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Anydigit-Function-Error/m-p/396524#M95751</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2017-09-16T01:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: Anydigit Function Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Anydigit-Function-Error/m-p/396527#M95752</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/158207"&gt;@ManitobaMoose&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I work hard to find out what is wrong before positing here, but here I have an error I don't understand. I am getting an error stating that&lt;/P&gt;
&lt;P&gt;"The Data step was not specified on the data statement". When I remove the Anydigit function, that error disappears. Thanks for your help.&lt;/P&gt;
&lt;PRE&gt;libname Learn '/folders/myfolders/Learn' ;

Data Check1 ; 
	Set Learn.Errors ; 
	If anydigit(Subj) then output mixed_data ; 
	else output only_nums ; 
	 
proc print data=mixed_data ; 
run ;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;POST YOUR LOG along with your code in future questions.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why? Because it's too easy to make a mistake otherwise, for example your typed error message above is wrong. It should say Data SET, not Data STEP.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt; ERROR 455-185: Data set was not specified on the DATA statement.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As indicated, the option after the OUTPUT statement is the data set name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the docs:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/lestmtsref/69738/HTML/default/viewer.htm#n1lltvbis7ye1an1eryo4leh2mck.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/lestmtsref/69738/HTML/default/viewer.htm#n1lltvbis7ye1an1eryo4leh2mck.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN class="xis-keyword"&gt;OUTPUT&lt;/SPAN&gt; &lt;SPAN class="xis-argOptional"&gt;&amp;lt;&lt;SPAN class="xis-userSuppliedSyntaxValue"&gt;&lt;A title="Description of syntax: data-set-name" href="https://support.sas.com/documentation/cdl/en/lestmtsref/69738/HTML/default/n1lltvbis7ye1an1eryo4leh2mck.htm#n1bo93xpvvyigin1o48pgb8wi5tq" target="_blank"&gt;data-set-name(s)&lt;/A&gt;&lt;/SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Sat, 16 Sep 2017 01:43:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Anydigit-Function-Error/m-p/396527#M95752</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-09-16T01:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Anydigit Function Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Anydigit-Function-Error/m-p/396528#M95753</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/158207"&gt;@ManitobaMoose&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;You must define the tables in the DATA statement which you explicitly address in the OUTPUT statements.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname Learn '/folders/myfolders/Learn' ;

Data mixed_data only_nums; 
	Set Learn.Errors ; 
	If anydigit(Subj) then output mixed_data ; 
	else output only_nums ; 
	 
proc print data=mixed_data ; 
run ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 16 Sep 2017 01:44:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Anydigit-Function-Error/m-p/396528#M95753</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-09-16T01:44:08Z</dc:date>
    </item>
  </channel>
</rss>

