<?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: Download IML library created on SAS/Studio OnDemand platform to Windows 11 host in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Download-IML-library-created-on-SAS-Studio-OnDemand-platform-to/m-p/981516#M6571</link>
    <description>Very nice solution, Rick. Thanks.</description>
    <pubDate>Mon, 05 Jan 2026 21:10:59 GMT</pubDate>
    <dc:creator>rbettinger</dc:creator>
    <dc:date>2026-01-05T21:10:59Z</dc:date>
    <item>
      <title>Download IML library created on SAS/Studio OnDemand platform to Windows 11 host</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Download-IML-library-created-on-SAS-Studio-OnDemand-platform-to/m-p/981467#M6566</link>
      <description>&lt;P&gt;I have created a SAS/IML library with scores of modules using SAS/Studio OnDemand. I want to download this library to my Windows 11 PC. I used the SAS/Studio download function to send the file to my PC, where it was received successfully. But when I try to access it using the following code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname Subtract 'C:\Users\RossMaster\Documents\My SAS Files\Subtractive Clustering\SASCode' ;                                          

proc iml ;
reset storage=Subtract.fuzzylib ;

show storage ;
quit ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;then the process fails because PC SAS does not recognize the contents of the library. Do I use PROC ENCODE to encode the library for transport in SAS/Studio and then use PROC DECODE to create a new library on the PC? Is there another way?&lt;/P&gt;
&lt;P&gt;Ross&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2026 01:02:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Download-IML-library-created-on-SAS-Studio-OnDemand-platform-to/m-p/981467#M6566</guid>
      <dc:creator>rbettinger</dc:creator>
      <dc:date>2026-01-05T01:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Download IML library created on SAS/Studio OnDemand platform to Windows 11 host</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Download-IML-library-created-on-SAS-Studio-OnDemand-platform-to/m-p/981475#M6567</link>
      <description>&lt;P&gt;When you create an IML library of functions, you start with the SOURCE CODE, which is the set of text files that contains the module definitions. When you use the STORE statement, the source code is compiled and stored in binary form in a SAS catalog. SAS catalogs are not compatible across operating systems or releases, which means that you cannot transfer a catalog compiled on Linux under some SAS release and expect to read it on Windows in another SAS release.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What you should do is transfer the SOURCE CODE files to your PC. Read them into PROC IML and use the STORE statement to create a catalog for your Windows 11 PC.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2026 11:47:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Download-IML-library-created-on-SAS-Studio-OnDemand-platform-to/m-p/981475#M6567</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2026-01-05T11:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Download IML library created on SAS/Studio OnDemand platform to Windows 11 host</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Download-IML-library-created-on-SAS-Studio-OnDemand-platform-to/m-p/981476#M6568</link>
      <description>One way you could try is:&lt;BR /&gt;1) Run PROC CPORT to export your IML library into a XPT file.&lt;BR /&gt;2)Download this XPT file.&lt;BR /&gt;3)Use PROC CIMPORT to import this XPT file at your Windows PC side.</description>
      <pubDate>Mon, 05 Jan 2026 12:02:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Download-IML-library-created-on-SAS-Studio-OnDemand-platform-to/m-p/981476#M6568</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2026-01-05T12:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: Download IML library created on SAS/Studio OnDemand platform to Windows 11 host</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Download-IML-library-created-on-SAS-Studio-OnDemand-platform-to/m-p/981513#M6569</link>
      <description>&lt;P&gt;Thanks, Rick. I will use your approach. Because I have lots of modules to compile, is there any easy way that I can compile each module and store it in a SAS/IML library? Or do I need to run SAS/IML on each individual file containing a module definition?&lt;/P&gt;
&lt;P&gt;Ross&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2026 20:02:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Download-IML-library-created-on-SAS-Studio-OnDemand-platform-to/m-p/981513#M6569</guid>
      <dc:creator>rbettinger</dc:creator>
      <dc:date>2026-01-05T20:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Download IML library created on SAS/Studio OnDemand platform to Windows 11 host</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Download-IML-library-created-on-SAS-Studio-OnDemand-platform-to/m-p/981514#M6570</link>
      <description>&lt;P&gt;There are several ways to organize a library of functions. Back in 2013, I wrote this article:&amp;nbsp;&lt;A href="https://blogs.sas.com/content/iml/2013/10/07/create-function-library.html" target="_blank"&gt;How to create a library of functions in PROC IML - The DO Loop&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I am going to guess that you have dozens of physical files, which I will call Def1.sas, Def2.sas, Def3.sas, etc.&amp;nbsp; The two main ways to organize the code is &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Each file starts with PROC IML, defines the functions, uses the STORE statement to save them, and then QUITs. In this organization, you would %include the relevant files OUTSIDE of your main program, then use LOAD to load the modules inside the main program.&lt;/LI&gt;
&lt;LI&gt;No file contains PROC IML or QUIT, only the module definitions and a STORE statement. To use the functions, you can %include them directly into a program *OR* you can create a driver program that starts with PROC IML, includes the definitions, and then does one QUIT.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I tend to use the second method because I can work on and test components independently. So, here's the way I usually do it:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* ------ Def1.sas FILE ----- */
start MyMod1(x);  ... finish;
start MyMod2(x);  ... finish;
start MyMod3(x);  ... finish;
store module = (
MyMod1
MyMod2
MyMod3
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* ------ Def2.sas FILE ----- */
start MyMod4(x);  ... finish;
start MyMod5(x);  ... finish;
start MyMod6(x);  ... finish;
store module = (
MyMod4
MyMod5
MyMod6
);

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* ------ DefineAll.sas FILE ----- */
%let path = path/to/my/modules;
proc iml;
%INCLUDE "&amp;amp;path/Def1.sas";
%INCLUDE "&amp;amp;path/Def2.sas";
QUIT;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then, when I want to use the modules, I do this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%include "DefineAll.sas";  /* stores all modules */
proc iml;
load module=_all_;
y = MyMod1(1234);
z = MyMod6(4321);

&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2026 20:27:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Download-IML-library-created-on-SAS-Studio-OnDemand-platform-to/m-p/981514#M6570</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2026-01-05T20:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: Download IML library created on SAS/Studio OnDemand platform to Windows 11 host</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Download-IML-library-created-on-SAS-Studio-OnDemand-platform-to/m-p/981516#M6571</link>
      <description>Very nice solution, Rick. Thanks.</description>
      <pubDate>Mon, 05 Jan 2026 21:10:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Download-IML-library-created-on-SAS-Studio-OnDemand-platform-to/m-p/981516#M6571</guid>
      <dc:creator>rbettinger</dc:creator>
      <dc:date>2026-01-05T21:10:59Z</dc:date>
    </item>
  </channel>
</rss>

