<?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: The function LOCATEC is unknown, or cannot be accessed. in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-The-function-LOCATEC-is-unknown-or-cannot-be-accessed/m-p/348091#M22984</link>
    <description>&lt;P&gt;Sorry did not understand. Do you see any wrong with my logic? If so will you able to update code and show me? Thank you for reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Apr 2017 13:33:27 GMT</pubDate>
    <dc:creator>Pank81</dc:creator>
    <dc:date>2017-04-07T13:33:27Z</dc:date>
    <item>
      <title>ERROR: The function LOCATEC is unknown, or cannot be accessed.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-The-function-LOCATEC-is-unknown-or-cannot-be-accessed/m-p/347161#M22951</link>
      <description>&lt;P&gt;&lt;FONT face="book antiqua,palatino"&gt;Friends,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="book antiqua,palatino"&gt;I am trying to run following code but keep getting ERROR message mentioned in subject line. Not sure what's wrong I am doing.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
	team='Cleveland';
	tabelid = open('sashelp.baseball');
	rc=locatec(tabelid,varnum(tabelid,'Team'),team,'a');

	if (rc=0) then
		_msg_= 'There is no Team '||team||'.';
	else
		do;
			_msg_='There is Team '||team||'.';
		end;

	close=close(tabelid);
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;FONT face="book antiqua,palatino"&gt;Operating enviroment:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="book antiqua,palatino"&gt;SAS 9.04.01M3&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="book antiqua,palatino"&gt;SAS EG 7.1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="book antiqua,palatino"&gt;Linux platform&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="book antiqua,palatino"&gt;Any suggestion will be helpful.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="book antiqua,palatino"&gt;Thank you,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="book antiqua,palatino"&gt;Pankhil&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2017 19:34:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-The-function-LOCATEC-is-unknown-or-cannot-be-accessed/m-p/347161#M22951</guid>
      <dc:creator>Pank81</dc:creator>
      <dc:date>2017-04-04T19:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: The function LOCATEC is unknown, or cannot be accessed.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-The-function-LOCATEC-is-unknown-or-cannot-be-accessed/m-p/347171#M22952</link>
      <description>&lt;P&gt;Well, the error message is pretty explicit.&amp;nbsp; SAS doesn't contain a function named LOCATEC.&amp;nbsp; What is it you are trying to accomplish?&amp;nbsp; Perhaps another tool will suffice?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2017 20:07:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-The-function-LOCATEC-is-unknown-or-cannot-be-accessed/m-p/347171#M22952</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-04-04T20:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: The function LOCATEC is unknown, or cannot be accessed.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-The-function-LOCATEC-is-unknown-or-cannot-be-accessed/m-p/347175#M22954</link>
      <description>&lt;P&gt;I am trying to read specific character string in SAS datasets. Just want to see if it is present or not. I tried using usual datasets but exploring if SCL can do same or not. Appricieate your reply.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2017 20:26:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-The-function-LOCATEC-is-unknown-or-cannot-be-accessed/m-p/347175#M22954</guid>
      <dc:creator>Pank81</dc:creator>
      <dc:date>2017-04-04T20:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: The function LOCATEC is unknown, or cannot be accessed.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-The-function-LOCATEC-is-unknown-or-cannot-be-accessed/m-p/347195#M22955</link>
      <description>&lt;P&gt;SCL &lt;EM&gt;can&lt;/EM&gt; do it. A datastep, with dataset functions, cannot.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2017 21:56:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-The-function-LOCATEC-is-unknown-or-cannot-be-accessed/m-p/347195#M22955</guid>
      <dc:creator>LaurieF</dc:creator>
      <dc:date>2017-04-04T21:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: The function LOCATEC is unknown, or cannot be accessed.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-The-function-LOCATEC-is-unknown-or-cannot-be-accessed/m-p/347203#M22956</link>
      <description>&lt;P&gt;You can use the File functions, but you're better off querying the SASHELP.VCOLUMN table IMO.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2017 22:50:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-The-function-LOCATEC-is-unknown-or-cannot-be-accessed/m-p/347203#M22956</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-04-04T22:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: The function LOCATEC is unknown, or cannot be accessed.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-The-function-LOCATEC-is-unknown-or-cannot-be-accessed/m-p/348091#M22984</link>
      <description>&lt;P&gt;Sorry did not understand. Do you see any wrong with my logic? If so will you able to update code and show me? Thank you for reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 13:33:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-The-function-LOCATEC-is-unknown-or-cannot-be-accessed/m-p/348091#M22984</guid>
      <dc:creator>Pank81</dc:creator>
      <dc:date>2017-04-07T13:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: The function LOCATEC is unknown, or cannot be accessed.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-The-function-LOCATEC-is-unknown-or-cannot-be-accessed/m-p/348095#M22985</link>
      <description>&lt;P&gt;We can't see what you're responding to if you don't quote the original text, or make it explicit.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What type of functionality are you trying to build here, checking for the presence of a variable or value of a variable in a dataset?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you need an interactive component?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 13:42:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-The-function-LOCATEC-is-unknown-or-cannot-be-accessed/m-p/348095#M22985</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-04-07T13:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: The function LOCATEC is unknown, or cannot be accessed.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-The-function-LOCATEC-is-unknown-or-cannot-be-accessed/m-p/348102#M22987</link>
      <description>&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is what I am trying to accomplish: I want to scan all .lst files present in one folder and look for string &lt;STRONG&gt;"NOTE: No unequal values were found. All values compared are exactly equal."&lt;/STRONG&gt; and get the list.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One way I was thinking about doing was importing .lst file and look for above mentioned string. I can do using dataset and function but though about using SCL. So I was trying LOCATEC() to do so.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope I explain my dilema. I am sure there will be better and much easier way to do. Please share if you have any input on this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pankhil&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 13:57:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-The-function-LOCATEC-is-unknown-or-cannot-be-accessed/m-p/348102#M22987</guid>
      <dc:creator>Pank81</dc:creator>
      <dc:date>2017-04-07T13:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: The function LOCATEC is unknown, or cannot be accessed.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-The-function-LOCATEC-is-unknown-or-cannot-be-accessed/m-p/348369#M22990</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/137501"&gt;@Pank81&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Below code searches all .lst files in folder c:\temp for "Note: No...." and writes a record to dataset &lt;EM&gt;found&lt;/EM&gt; if&amp;nbsp;there is a match.&lt;/P&gt;
&lt;P&gt;Is that what you're after?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data found;
  length FoundInFile _CurrentFile $80;
  infile 'c:\temp\*.lst' filename=_CurrentFile truncover;
  input;
  if find(_infile_,'NOTE: No unequal values were found. All values compared are exactly equal','i');
  FoundInFile=_CurrentFile;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You could easily extend the code by also adding the line number on which a match has been found.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Apr 2017 04:57:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-The-function-LOCATEC-is-unknown-or-cannot-be-accessed/m-p/348369#M22990</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-04-08T04:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: The function LOCATEC is unknown, or cannot be accessed.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-The-function-LOCATEC-is-unknown-or-cannot-be-accessed/m-p/348689#M23002</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;: Thank you. Excatly what Dr odered...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2017 13:34:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-The-function-LOCATEC-is-unknown-or-cannot-be-accessed/m-p/348689#M23002</guid>
      <dc:creator>Pank81</dc:creator>
      <dc:date>2017-04-10T13:34:22Z</dc:date>
    </item>
  </channel>
</rss>

