<?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 SAS EG and Vb Script in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-and-Vb-Script/m-p/52290#M5578</link>
    <description>Hi &lt;BR /&gt;
I am running a SAS EG 4.1 project scheduled to run from a VB script.&lt;BR /&gt;
&lt;BR /&gt;
I want to ask if some error occur in sas project. Does that vb script close that sas session or that project file for us.&lt;BR /&gt;
&lt;BR /&gt;
Also i need to know does this occur if i give endsas statement  or abort statement.&lt;BR /&gt;
what are its effects after dissconecting from server.&lt;BR /&gt;
&lt;BR /&gt;
thanks&lt;BR /&gt;
avi</description>
    <pubDate>Thu, 04 Feb 2010 16:05:27 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2010-02-04T16:05:27Z</dc:date>
    <item>
      <title>SAS EG and Vb Script</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-and-Vb-Script/m-p/52290#M5578</link>
      <description>Hi &lt;BR /&gt;
I am running a SAS EG 4.1 project scheduled to run from a VB script.&lt;BR /&gt;
&lt;BR /&gt;
I want to ask if some error occur in sas project. Does that vb script close that sas session or that project file for us.&lt;BR /&gt;
&lt;BR /&gt;
Also i need to know does this occur if i give endsas statement  or abort statement.&lt;BR /&gt;
what are its effects after dissconecting from server.&lt;BR /&gt;
&lt;BR /&gt;
thanks&lt;BR /&gt;
avi</description>
      <pubDate>Thu, 04 Feb 2010 16:05:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-and-Vb-Script/m-p/52290#M5578</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-02-04T16:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG and Vb Script</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-and-Vb-Script/m-p/52291#M5579</link>
      <description>See this paper on SAS programming with EG:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/resources/papers/sgf2008/eguide.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/sgf2008/eguide.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
There is a small section that warns you on the dangers of ENDSAS.&lt;BR /&gt;
&lt;BR /&gt;
Chris</description>
      <pubDate>Thu, 11 Feb 2010 15:20:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-and-Vb-Script/m-p/52291#M5579</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2010-02-11T15:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG and Vb Script</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-and-Vb-Script/m-p/52292#M5580</link>
      <description>Won't it be a solution to your problem ?&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Function Checkerror&lt;/B&gt;(fnName)&lt;BR /&gt;
Checkerror = False&lt;BR /&gt;
&lt;BR /&gt;
Dim strmsg ' As String&lt;BR /&gt;
Dim errNum ' As Long&lt;BR /&gt;
&lt;BR /&gt;
If Err.Number 0 Then&lt;BR /&gt;
strmsg = "Error #" &amp;amp; Hex(Err.Number) &amp;amp; vbCrLf &amp;amp; "In Function " &amp;amp; fnName &amp;amp; vbCrLf &amp;amp; Err.Description&lt;BR /&gt;
'MsgBox strmsg 'Uncomment this line if you want to be notified via MessageBox of Errors in the script.&lt;BR /&gt;
Checkerror = True&lt;BR /&gt;
End If&lt;BR /&gt;
&lt;BR /&gt;
End Function&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
NB : For the complete vbs instruction see : &lt;A href="http://support.sas.com/forums/thread.jspa?threadID=9182&amp;amp;tstart=0" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?threadID=9182&amp;amp;tstart=0&lt;/A&gt;

Message was edited by: Fab.from.be</description>
      <pubDate>Mon, 29 Mar 2010 18:12:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-and-Vb-Script/m-p/52292#M5580</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-03-29T18:12:59Z</dc:date>
    </item>
  </channel>
</rss>

