<?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 SASEG from MS Access in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SASEG-from-MS-Access/m-p/62345#M6318</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might try to remedy that issue with this note:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/34/194.html"&gt;http://support.sas.com/kb/34/194.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 11 Sep 2011 21:05:18 GMT</pubDate>
    <dc:creator>ChrisHemedinger</dc:creator>
    <dc:date>2011-09-11T21:05:18Z</dc:date>
    <item>
      <title>SASEG from MS Access</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SASEG-from-MS-Access/m-p/62342#M6315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm looking at using Access as an office automation tool for managing regular reports, Access not being used to hold transaction data but data to do with the reports themselves. We use it to log and manage the requests for data and reports coming into the area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We run SAS EG 4.1 still (along with a host of other studff compared with which 4.1 is a spring chicken) with SAS on a Unix box. Some of the directories there are mapped to the Windows LAN so the idea as a first stage semi-automation is in the first instance for the Access application to write a parameter text file from which the SAS program can read the parameters and populate its macro variables before getting to the meat of the SAS. It works well and is pretty simple but we still need to open the SAS code in SAS EG, submit the job, wait for it to finish and then exit from SAS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have the MS Office Add-in for Office and from Excel I can read the SAS tables on the server in Excel etc but&amp;nbsp;&amp;nbsp; when I try to run sample code such as Chris's&lt;BR /&gt;&lt;IMG alt="Script.JPG" class="jive-image-thumbnail jive-image" onclick="" src="https://communities.sas.com/legacyfs/online/1100_Script.JPG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;it bombs out on the CreateObject line with an ActiveX error, with 4.1 or just 4 as the version number making no difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've seen various specifications regarding what references one must configure to invoke a SAS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This one is about the minimum but copying what it specifies makes no difference&lt;/P&gt;&lt;P&gt;&lt;IMG alt="References.JPG" class="jive-image" src="https://communities.sas.com/legacyfs/online/1101_References.JPG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using ActiveX2.8 doesn't help and going in and selecting all the SAS the SAS references that dialog box offers does not help either, i.e. as per this example&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ReferencesFull.JPG" class="jive-image" src="https://communities.sas.com/legacyfs/online/1102_ReferencesFull.JPG" /&gt;&lt;/P&gt;&lt;P&gt;Any pointers to the missing link would be greatly appreciated.&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10941iB8184E93528D0139/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Script.JPG" title="Script.JPG" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2011 11:41:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SASEG-from-MS-Access/m-p/62342#M6315</guid>
      <dc:creator>Josh</dc:creator>
      <dc:date>2011-09-09T11:41:10Z</dc:date>
    </item>
    <item>
      <title>SASEG from MS Access</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SASEG-from-MS-Access/m-p/62343#M6316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In EG 4.1, the automation model is a bit different. The complete reference information is at:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://support.sas.com/documentation/onlinedoc/guide/SASEGScripting41.zip"&gt;http://support.sas.com/documentation/onlinedoc/guide/SASEGScripting41.zip&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(There is a CHM file in the ZIP archive.&amp;nbsp; Extract it, then right-click, select Properties, and "unblock" it - else you won't be able to view the content...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example VB Script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;Dim prjName
Dim prjObject
Dim app

prjName = "C:\EG 4.1 projects\mailinghtml.egp"&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Project Name
Set app = CreateObject("SASEGObjectModel.Application.4")
Set prjObject = app.Open(prjName,"")
prjObject.Run
' Save the new project results
prjObject.Save
prjObject.Close
app.Quit
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First try to create a standalone VBS file and confirm that it runs with cscript.exe or wscript.exe.&amp;nbsp; If it does, then the equivalent script in VBA should work as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2011 12:31:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SASEG-from-MS-Access/m-p/62343#M6316</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2011-09-09T12:31:50Z</dc:date>
    </item>
    <item>
      <title>SASEG from MS Access</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SASEG-from-MS-Access/m-p/62344#M6317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;VBS first was a good suggestion as the error still occurred with "SASEGObjectModel.Application.4" but the dialog was a bit more informative: Error code 800A01AD. Googling that lead me to searching the registry (its Windows XP Professional at work) and there is no occurrence of "SASEG", let alone that string followed by anything else. There are a few entries commencing with "SAS.EG*" and "SASObjectManager" though. Is there a DLL which needs to be on the machine to support the object model? If there is but it is not there that would be indicative of the need to look elsewhere, or just manually run SASEG and click on the run icon.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Sep 2011 07:42:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SASEG-from-MS-Access/m-p/62344#M6317</guid>
      <dc:creator>Josh</dc:creator>
      <dc:date>2011-09-10T07:42:16Z</dc:date>
    </item>
    <item>
      <title>SASEG from MS Access</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SASEG-from-MS-Access/m-p/62345#M6318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might try to remedy that issue with this note:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/34/194.html"&gt;http://support.sas.com/kb/34/194.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Sep 2011 21:05:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SASEG-from-MS-Access/m-p/62345#M6318</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2011-09-11T21:05:18Z</dc:date>
    </item>
  </channel>
</rss>

