<?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: Store module containing submit statement in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Store-module-containing-submit-statement/m-p/392576#M3709</link>
    <description>&lt;P&gt;Your program works in modern versions of SAS. It might have been an issue in 9.22, but I don't know. SAS 9.22&amp;nbsp;&lt;A href="http://blogs.sas.com/content/iml/2013/08/02/how-old-is-your-version-of-sas-release-dates-for-sas-software.html" target="_self"&gt;shipped in early 2010;&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;there have been 7 releases of SAS/IML since 9.22.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To work around the issue, don't use the %INCLUDE statement. &amp;nbsp;Instead, use the RESET STORAGE function to point to the storage library, as discussed in the article&lt;A href="http://blogs.sas.com/content/iml/2011/09/12/storing-and-loading-modules.html" target="_self"&gt; "Storing and Loading Modules."&lt;/A&gt;&amp;nbsp; &amp;nbsp;I don't have 9.22 to try it, but I think it will work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW, &amp;nbsp;in SAS 9.4, the SERIES subroutine was introduced, which does what you are trying to do. For examples of SAS/IML graphics in modern releases, see &lt;A href="http://support.sas.com/documentation/cdl/en/imlug/68150/HTML/default/viewer.htm#imlug_graphics_sect005.htm" target="_self"&gt;the documentation examples.&lt;/A&gt;&amp;nbsp; If possible, I highly recommend upgrading to SAS 9.4 or later.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Sep 2017 15:24:31 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2017-09-01T15:24:31Z</dc:date>
    <item>
      <title>Store module containing submit statement</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Store-module-containing-submit-statement/m-p/392565#M3708</link>
      <description>&lt;P&gt;I wish to store a module defined in proc iml in file&amp;nbsp;&lt;EM&gt;definition.sas&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&amp;nbsp;&lt;SPAN&gt;later load it by including the file.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;definition.sas&lt;/EM&gt; looks like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc iml;
	start f_w_submit(x,y);
		create plotting var {x y}; append; close plotting;
		submit;
		 proc sgplot data=plotting;
		 	series x=x y=y / markers;
		 run;
		endsubmit;
		call delete("plotting");
	finish f_w_submit;

	store module=_all_;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Then in another file I wish to use&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%include "C:\definition.sas";

proc iml;

	load module=(f_w_submit);

	/* Use the function f_w_submit*/

quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But this does not work. I get a warning saying&lt;/P&gt;&lt;PRE&gt;WARNING: Module F_W_SUBMIT definition is left incomplete.&lt;/PRE&gt;&lt;P&gt;and the function is neither compiled nor stored. If I comment out the submit block, everything works fine. What am I doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am on SAS 9.2. with SAS/IML 9.22.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2017 14:51:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Store-module-containing-submit-statement/m-p/392565#M3708</guid>
      <dc:creator>JHenkel</dc:creator>
      <dc:date>2017-09-01T14:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Store module containing submit statement</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Store-module-containing-submit-statement/m-p/392576#M3709</link>
      <description>&lt;P&gt;Your program works in modern versions of SAS. It might have been an issue in 9.22, but I don't know. SAS 9.22&amp;nbsp;&lt;A href="http://blogs.sas.com/content/iml/2013/08/02/how-old-is-your-version-of-sas-release-dates-for-sas-software.html" target="_self"&gt;shipped in early 2010;&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;there have been 7 releases of SAS/IML since 9.22.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To work around the issue, don't use the %INCLUDE statement. &amp;nbsp;Instead, use the RESET STORAGE function to point to the storage library, as discussed in the article&lt;A href="http://blogs.sas.com/content/iml/2011/09/12/storing-and-loading-modules.html" target="_self"&gt; "Storing and Loading Modules."&lt;/A&gt;&amp;nbsp; &amp;nbsp;I don't have 9.22 to try it, but I think it will work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW, &amp;nbsp;in SAS 9.4, the SERIES subroutine was introduced, which does what you are trying to do. For examples of SAS/IML graphics in modern releases, see &lt;A href="http://support.sas.com/documentation/cdl/en/imlug/68150/HTML/default/viewer.htm#imlug_graphics_sect005.htm" target="_self"&gt;the documentation examples.&lt;/A&gt;&amp;nbsp; If possible, I highly recommend upgrading to SAS 9.4 or later.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2017 15:24:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Store-module-containing-submit-statement/m-p/392576#M3709</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-09-01T15:24:31Z</dc:date>
    </item>
  </channel>
</rss>

