<?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: PROC LUA sas.get function not found in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-LUA-sas-get-function-not-found/m-p/319242#M70052</link>
    <description>The function 'sas.get' has been renamed to 'sas.get_value'.  Reference: &lt;A href="http://support.sas.com/documentation/cdl/en/proc/69850/HTML/default/viewer.htm#p0t7zanjrat68hn1ue4mmy337rqe.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/69850/HTML/default/viewer.htm#p0t7zanjrat68hn1ue4mmy337rqe.htm&lt;/A&gt;</description>
    <pubDate>Thu, 15 Dec 2016 12:51:36 GMT</pubDate>
    <dc:creator>nacnudus</dc:creator>
    <dc:date>2016-12-15T12:51:36Z</dc:date>
    <item>
      <title>PROC LUA sas.get function not found</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-LUA-sas-get-function-not-found/m-p/319220#M70047</link>
      <description>&lt;P&gt;I'm running the following code on SAS 9.4 (also tested on SAS On Demand), taken from page 8 of "Driving SAS with Lua" &lt;A href="http://support.sas.com/resources/papers/proceedings15/SAS1561-2015.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings15/SAS1561-2015.pdf&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc lua;
	submit;
		local dsid = sas.open("sashelp.class")
		while sas.next(dsid) do
			print(sas.get(dsid,"name"), sas.get(dsid,"age"))
		end
		sas.close(dsid)
	endsubmit;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It&amp;nbsp;fails.&amp;nbsp; The log is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 55         
 56         proc lua;
 57         submit;
 58         local dsid = sas.open("sashelp.class")
 59         while sas.next(dsid) do
 60         print(sas.get(dsid,"name"), sas.get(dsid,"age"))
 61         end
 62         sas.close(dsid)
 63         endsubmit;
 64         run;
 
 NOTE: Resuming Lua state from previous PROC LUA invocation.
 ERROR: Can't find FCMP or SAS function get
 ERROR: SUBMIT block:3: function get not found
 stack traceback:
 [C]: in function '__index'
 SUBMIT block:3: in main chunk
 ERROR: There was an error submitting the provided code
 WARNING: Closing SASHELP.CLASS - handle has gone out of scope.
 NOTE: The SAS System stopped processing this step because of errors.
 NOTE: PROCEDURE LUA used (Total process time):
       real time           0.01 seconds
       cpu time            0.01 seconds
       
 65         
 66         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 78       &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Previous code examples work, but any example that uses sas.get does not work.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2016 10:43:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-LUA-sas-get-function-not-found/m-p/319220#M70047</guid>
      <dc:creator>nacnudus</dc:creator>
      <dc:date>2016-12-15T10:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LUA sas.get function not found</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-LUA-sas-get-function-not-found/m-p/319242#M70052</link>
      <description>The function 'sas.get' has been renamed to 'sas.get_value'.  Reference: &lt;A href="http://support.sas.com/documentation/cdl/en/proc/69850/HTML/default/viewer.htm#p0t7zanjrat68hn1ue4mmy337rqe.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/69850/HTML/default/viewer.htm#p0t7zanjrat68hn1ue4mmy337rqe.htm&lt;/A&gt;</description>
      <pubDate>Thu, 15 Dec 2016 12:51:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-LUA-sas-get-function-not-found/m-p/319242#M70052</guid>
      <dc:creator>nacnudus</dc:creator>
      <dc:date>2016-12-15T12:51:36Z</dc:date>
    </item>
  </channel>
</rss>

