<?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: pass %let from excel (VBA) in Microsoft Integration with SAS</title>
    <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/pass-let-from-excel-VBA/m-p/130777#M1331</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why are you calling an EG project?&lt;/P&gt;&lt;P&gt;If you have a remote SAS server, it seems simpler to deploy the project as a Stored Process, and have %let be prompt instead.&lt;/P&gt;&lt;P&gt;If you have a local SAS server, export the project as a SAS program file, and the call it in the background. Then you can pass any parameters to SAS using the SYSPARM SAS command line option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Sep 2013 08:02:39 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2013-09-06T08:02:39Z</dc:date>
    <item>
      <title>pass %let from excel (VBA)</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/pass-let-from-excel-VBA/m-p/130776#M1330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is it possible to pass %let to an existing EGP from VBA?&amp;nbsp; here is an example of what I'm trying to do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in VBA:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dim app&lt;/P&gt;&lt;P&gt;dim project&lt;/P&gt;&lt;P&gt;dim prjNM 'the SAS EG project&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set app = createobject("SASEGObjectModel.Application.4.3")&lt;/P&gt;&lt;P&gt;prjNM = "c:\text.egp"&lt;/P&gt;&lt;P&gt;set project = app.open(prjNM, "")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'add code that allows you to pass %let passme=10 in the SAS code of prjNM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a sample code in prjNM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname dat 'sasdata\yada';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql (outobs=[pass the %let passme here; &amp;amp;passme]);&lt;/P&gt;&lt;P&gt;create table data as&lt;/P&gt;&lt;P&gt;select *&lt;/P&gt;&lt;P&gt;from dat.data&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 03:19:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/pass-let-from-excel-VBA/m-p/130776#M1330</guid>
      <dc:creator>YoungMin</dc:creator>
      <dc:date>2013-09-06T03:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: pass %let from excel (VBA)</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/pass-let-from-excel-VBA/m-p/130777#M1331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why are you calling an EG project?&lt;/P&gt;&lt;P&gt;If you have a remote SAS server, it seems simpler to deploy the project as a Stored Process, and have %let be prompt instead.&lt;/P&gt;&lt;P&gt;If you have a local SAS server, export the project as a SAS program file, and the call it in the background. Then you can pass any parameters to SAS using the SYSPARM SAS command line option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 08:02:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/pass-let-from-excel-VBA/m-p/130777#M1331</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2013-09-06T08:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: pass %let from excel (VBA)</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/pass-let-from-excel-VBA/m-p/130778#M1332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for the response linush!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. is there a reason not to use EG?&amp;nbsp; i have no preference; this is an existing EG i've inherited.&amp;nbsp; the data from the EG is copied into an excel dashboard.&amp;nbsp; i want to automate this so that the users who have access to the excel dashboard can refresh the data.&amp;nbsp; users who want this information, want it periodically and are not SAS people either.&amp;nbsp; &lt;/P&gt;&lt;P&gt;2. i haven't tried this before.&amp;nbsp; i'll can look into&amp;nbsp; it.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 14:49:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/pass-let-from-excel-VBA/m-p/130778#M1332</guid>
      <dc:creator>YoungMin</dc:creator>
      <dc:date>2013-09-06T14:49:33Z</dc:date>
    </item>
  </channel>
</rss>

