<?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: Invoking a class method from within submit block in SCL in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Invoking-a-class-method-from-within-submit-block-in-SCL/m-p/151785#M298282</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Review the preview concepts. &lt;A href="http://support.sas.com/documentation/cdl/en/sclref/67564/HTML/default/viewer.htm#p0zd8kh1xqn3zun1jy578psn7893.htm" title="http://support.sas.com/documentation/cdl/en/sclref/67564/HTML/default/viewer.htm#p0zd8kh1xqn3zun1jy578psn7893.htm"&gt;SAS(R) Component Language 9.4: Reference, Third Edition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Within submit endsubmit you are building up some code in a buffer to be execute by sas (datastep). Something like macro-processing. &lt;BR /&gt;By that invoking a method in the middle of building up that code does not make sense.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Sep 2014 16:13:50 GMT</pubDate>
    <dc:creator>jakarman</dc:creator>
    <dc:date>2014-09-19T16:13:50Z</dc:date>
    <item>
      <title>Invoking a class method from within submit block in SCL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Invoking-a-class-method-from-within-submit-block-in-SCL/m-p/151784#M298281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to invoke a method from a submit...endsubmit block in SCL - basically its something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;submit;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dict.get('TOPMENU_USER', 'EN');&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;endsubmit;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where dist is an instance of a class which has the get method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this even possible? Putting &amp;amp; in front of the invocation makes it look for an attribute &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2014 12:28:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Invoking-a-class-method-from-within-submit-block-in-SCL/m-p/151784#M298281</guid>
      <dc:creator>Nieumysl</dc:creator>
      <dc:date>2014-09-19T12:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Invoking a class method from within submit block in SCL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Invoking-a-class-method-from-within-submit-block-in-SCL/m-p/151785#M298282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Review the preview concepts. &lt;A href="http://support.sas.com/documentation/cdl/en/sclref/67564/HTML/default/viewer.htm#p0zd8kh1xqn3zun1jy578psn7893.htm" title="http://support.sas.com/documentation/cdl/en/sclref/67564/HTML/default/viewer.htm#p0zd8kh1xqn3zun1jy578psn7893.htm"&gt;SAS(R) Component Language 9.4: Reference, Third Edition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Within submit endsubmit you are building up some code in a buffer to be execute by sas (datastep). Something like macro-processing. &lt;BR /&gt;By that invoking a method in the middle of building up that code does not make sense.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2014 16:13:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Invoking-a-class-method-from-within-submit-block-in-SCL/m-p/151785#M298282</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-09-19T16:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Invoking a class method from within submit block in SCL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Invoking-a-class-method-from-within-submit-block-in-SCL/m-p/151786#M298283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When its a procedure-type method, agreed - but what about functions? You can certainly access variables from the submit block (like, substituting &amp;amp;&amp;lt;var&amp;gt; with appropriate text) - wouldn't computing the function result and substituting it be somewhat the same thing? Sorry if my questions seem naive, but I'm very new to SAS and SCL and still somewhat confused with the preview concept...:/&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Sep 2014 09:34:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Invoking-a-class-method-from-within-submit-block-in-SCL/m-p/151786#M298283</guid>
      <dc:creator>Nieumysl</dc:creator>
      <dc:date>2014-09-20T09:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: Invoking a class method from within submit block in SCL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Invoking-a-class-method-from-within-submit-block-in-SCL/m-p/151787#M298284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SCL better to be associated AF is an older programming environment classified as object-oriented hyping in the start of the 1990's.&lt;/P&gt;&lt;P&gt;SCL is different to macro and base as it is always a compiled execution (catalog version/machine dependent).&lt;/P&gt;&lt;P&gt;The first replacement would be by rebuilding as java using app-dev studio (failed). By now it is more SAS-portal (BI/DI) and SAS-VA. &lt;/P&gt;&lt;P&gt;Some language concepts of SCL can be found in the new DS2 language. &lt;A href="http://support.sas.com/documentation/cdl/en/ds2ref/67313/HTML/default/viewer.htm#titlepage.htm" title="http://support.sas.com/documentation/cdl/en/ds2ref/67313/HTML/default/viewer.htm#titlepage.htm"&gt;SAS(R) 9.4 DS2 Language Reference, Third Edition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;A lot functions previous only did exist in SCL have been implemented in the standard base environment with 9.3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The link to text substitution was in my previous link. &lt;A href="http://support.sas.com/documentation/cdl/en/sclref/67564/HTML/default/viewer.htm#n1bte06rdsq49un1ignxqdfkff60.htm" title="http://support.sas.com/documentation/cdl/en/sclref/67564/HTML/default/viewer.htm#n1bte06rdsq49un1ignxqdfkff60.htm"&gt;SAS(R) Component Language 9.4: Reference, Third Edition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can use scl variables and macro variables at that, but should avoid naming conflicts. You can use macro functions. &lt;BR /&gt;But when you are modifying the text in that buffer (dynamic code) how would you invoke a to be compiled scl function. SCL is not interpreter based, it is compiled. There is your limitation as of a basic concept.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Sep 2014 10:34:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Invoking-a-class-method-from-within-submit-block-in-SCL/m-p/151787#M298284</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-09-20T10:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Invoking a class method from within submit block in SCL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Invoking-a-class-method-from-within-submit-block-in-SCL/m-p/151788#M298285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK thanks for clearing that up &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Sep 2014 03:52:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Invoking-a-class-method-from-within-submit-block-in-SCL/m-p/151788#M298285</guid>
      <dc:creator>Nieumysl</dc:creator>
      <dc:date>2014-09-21T03:52:03Z</dc:date>
    </item>
  </channel>
</rss>

