<?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: Mysterious proc lua sas methods? in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Mysterious-proc-lua-sas-methods/m-p/709543#M1080</link>
    <description>&lt;P&gt;I'd be very interested in hearing what problems you are using Lua to solve.&amp;nbsp; Statistical analyses?&amp;nbsp; Data management?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When proc Lua was first announced, I had great hopes for it, but I was disappointed in those hopes.&amp;nbsp; It lacks at least three things:&lt;BR /&gt;&lt;BR /&gt;- Access to the OS library (primarily, calling external programs) and to the filesystem (other than through the SAS file functions, and I haven't tried those so I don't know if they work in practice).&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;- Potentially useful LuaRocks packages such as watcher and luafilesyste.&amp;nbsp; SAS can't support every possible package out there, but it could support a subset.&amp;nbsp; SAS has a C-compiler.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;- A way to create functions in Lua and call them from SAS (as can be done with Java, proc Groovy,&amp;nbsp; and reportedly Python).&lt;BR /&gt;&lt;BR /&gt;It also doesn't follow SAS conventions in some ways.&amp;nbsp; For example, in many places in SAS you can specify an external file using either a quoted name or a fileref, but in proc Lua, infile= is documented as supporting only quoted filenames.&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Jan 2021 01:26:21 GMT</pubDate>
    <dc:creator>JackHamilton</dc:creator>
    <dc:date>2021-01-06T01:26:21Z</dc:date>
    <item>
      <title>Mysterious proc lua sas methods?</title>
      <link>https://communities.sas.com/t5/Developers/Mysterious-proc-lua-sas-methods/m-p/705411#M1050</link>
      <description>&lt;P&gt;I'm a frequent user of the lua procedure within SAS and a few times I have stumbled across the sasxx class and its corresponding methods.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A common use case is for file assignments within proc lua that look similar to:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sasxx.new(fileref)&lt;/P&gt;&lt;P&gt;sasxx.assign(file, fileref)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've scraped the web for documentation on this mysterious sasxx but come up empty, anyone else have more information?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2020 23:02:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Mysterious-proc-lua-sas-methods/m-p/705411#M1050</guid>
      <dc:creator>jesseg</dc:creator>
      <dc:date>2020-12-11T23:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: Mysterious proc lua sas methods?</title>
      <link>https://communities.sas.com/t5/Developers/Mysterious-proc-lua-sas-methods/m-p/709406#M1077</link>
      <description>&lt;P&gt;The best introductions to PROC LUA I'm aware of &lt;A href="https://blogs.sas.com/content/sasdummy/2015/08/03/using-lua-within-your-sas-programs/" target="_self"&gt;include this blog post/video&lt;/A&gt; with the developer, and &lt;A href="https://support.sas.com/resources/papers/proceedings15/SAS1561-2015.pdf" target="_self"&gt;this paper that he wrote for SAS Global Forum&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have questions beyond what these can answer, let us know and we'll try to track down the answers.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 12:52:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Mysterious-proc-lua-sas-methods/m-p/709406#M1077</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2021-01-05T12:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Mysterious proc lua sas methods?</title>
      <link>https://communities.sas.com/t5/Developers/Mysterious-proc-lua-sas-methods/m-p/709409#M1078</link>
      <description>&lt;P&gt;About the sasxx methods -- I believe that these were undocumented placeholders for some new functions that had been added for library extensions, some of which have been added formally (ex: string functions) -- see the &lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=proc&amp;amp;docsetTarget=p07wjwkog4ia54n1b7586zlzmxwe.htm&amp;amp;locale=en" target="_self"&gt;doc for SAS 9.4/SAS Viya 3.5&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 13:08:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Mysterious-proc-lua-sas-methods/m-p/709409#M1078</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2021-01-05T13:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Mysterious proc lua sas methods?</title>
      <link>https://communities.sas.com/t5/Developers/Mysterious-proc-lua-sas-methods/m-p/709543#M1080</link>
      <description>&lt;P&gt;I'd be very interested in hearing what problems you are using Lua to solve.&amp;nbsp; Statistical analyses?&amp;nbsp; Data management?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When proc Lua was first announced, I had great hopes for it, but I was disappointed in those hopes.&amp;nbsp; It lacks at least three things:&lt;BR /&gt;&lt;BR /&gt;- Access to the OS library (primarily, calling external programs) and to the filesystem (other than through the SAS file functions, and I haven't tried those so I don't know if they work in practice).&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;- Potentially useful LuaRocks packages such as watcher and luafilesyste.&amp;nbsp; SAS can't support every possible package out there, but it could support a subset.&amp;nbsp; SAS has a C-compiler.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;- A way to create functions in Lua and call them from SAS (as can be done with Java, proc Groovy,&amp;nbsp; and reportedly Python).&lt;BR /&gt;&lt;BR /&gt;It also doesn't follow SAS conventions in some ways.&amp;nbsp; For example, in many places in SAS you can specify an external file using either a quoted name or a fileref, but in proc Lua, infile= is documented as supporting only quoted filenames.&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2021 01:26:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Mysterious-proc-lua-sas-methods/m-p/709543#M1080</guid>
      <dc:creator>JackHamilton</dc:creator>
      <dc:date>2021-01-06T01:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Mysterious proc lua sas methods?</title>
      <link>https://communities.sas.com/t5/Developers/Mysterious-proc-lua-sas-methods/m-p/712629#M1086</link>
      <description>&lt;P&gt;Access to the OS library just works fine. Also using the IO library is ok, see sample below. In which version this was introduced, I do not know.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc lua;
submit;
local ls_return = os.execute("dir c:\\temp &amp;gt; c:\\temp\\sugus.txt")
print(ls_return) 
local f = assert(io.open("c:\\temp\\sugus.txt", "rb"))
local content = f:read("*all") 
f:close()
print(content)
endsubmit;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Jan 2021 10:36:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Mysterious-proc-lua-sas-methods/m-p/712629#M1086</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2021-01-20T10:36:45Z</dc:date>
    </item>
  </channel>
</rss>

