<?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: SAS Enterprise Guide - Scheduling issue in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Enterprise-Guide-Scheduling-issue/m-p/596341#M34924</link>
    <description>does it work with 2 flows?&lt;BR /&gt;&lt;BR /&gt;Any success with other projects?</description>
    <pubDate>Mon, 14 Oct 2019 18:12:34 GMT</pubDate>
    <dc:creator>tomrvincent</dc:creator>
    <dc:date>2019-10-14T18:12:34Z</dc:date>
    <item>
      <title>SAS Enterprise Guide - Scheduling issue</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Enterprise-Guide-Scheduling-issue/m-p/394159#M25394</link>
      <description>&lt;P&gt;Hello - I've scheduled a SAS project, which has 35 steps/scripts, to run on our SAS server. I have scheduled a number of other flows, and they all work fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I run the process flow manually by clicking run, it runs fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I schedule the project, only the 34th script will run! I can't see how/why this is happening. Task Scheduler gives no error, and the VBScript the EG creates is below (which looks fine/normal to me).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the project log, there are no errors or warnings for the scripts that don't run, only a note.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The LOG for one of the scripts that doesn't run is also below..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone had this before? I don't know why it will only run one script and forget about the others in the flow, especially as the one that runs is near the end of the flow. I've deleted and recreated the schedule about 5 times but it does the same thing each time. Any help is gratefully received! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Log:&lt;/P&gt;&lt;P&gt;-----&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;run at 9/8/2017 9:28:44 AM on SASApp&lt;BR /&gt;1 ;*';*";*/;quit;run;&lt;BR /&gt;2 OPTIONS PAGENO=MIN;&lt;BR /&gt;3 %LET _CLIENTTASKLABEL='0';&lt;BR /&gt;4 %LET _CLIENTPROCESSFLOWNAME='Process Flow';&lt;BR /&gt;5 %LET _CLIENTPROJECTPATH='C:\Process&lt;BR /&gt;5 ! Flows\a\INTRANET_LIVE_OUTPUT.egp';&lt;BR /&gt;6 %LET _CLIENTPROJECTNAME='INTRANET_LIVE_OUTPUT.egp';&lt;BR /&gt;7 %LET _SASPROGRAMFILE=;&lt;BR /&gt;8&lt;BR /&gt;9 ODS _ALL_ CLOSE;&lt;BR /&gt;10 OPTIONS DEV=ACTIVEX;&lt;BR /&gt;11 GOPTIONS XPIXELS=0 YPIXELS=0;&lt;BR /&gt;12 FILENAME EGSR TEMP;&lt;BR /&gt;13 ODS tagsets.sasreport13(ID=EGSR) FILE=EGSR&lt;BR /&gt;14 STYLE=HtmlBlue&lt;BR /&gt;15 STYLESHEET=(URL="file:///C:/Program%20Files/SASHome/SASEnterpriseGuide/7.1/Styles/HtmlBlue.css")&lt;BR /&gt;16 NOGTITLE&lt;BR /&gt;17 NOGFOOTNOTE&lt;BR /&gt;18 GPATH=&amp;amp;sasworklocation&lt;BR /&gt;19 ENCODING=UTF8&lt;BR /&gt;20 options(rolap="on")&lt;BR /&gt;21 ;&lt;BR /&gt;NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR&lt;BR /&gt;22&lt;BR /&gt;23 GOPTIONS ACCESSIBLE;&lt;BR /&gt;24 GOPTIONS NOACCESSIBLE;&lt;BR /&gt;25 %LET _CLIENTTASKLABEL=;&lt;BR /&gt;26 %LET _CLIENTPROCESSFLOWNAME=;&lt;BR /&gt;27 %LET _CLIENTPROJECTPATH=;&lt;BR /&gt;28 %LET _CLIENTPROJECTNAME=;&lt;BR /&gt;29 %LET _SASPROGRAMFILE=;&lt;BR /&gt;30&lt;BR /&gt;31 ;*';*";*/;quit;run;&lt;BR /&gt;32 ODS _ALL_ CLOSE;&lt;BR /&gt;33&lt;BR /&gt;34&lt;BR /&gt;35 QUIT; RUN;&lt;BR /&gt;36&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;VB for the schedule:&amp;nbsp;&lt;/P&gt;&lt;P&gt;---------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Option Explicit&lt;BR /&gt;Dim app&lt;/P&gt;&lt;P&gt;Call dowork&lt;/P&gt;&lt;P&gt;'shut down the app&lt;BR /&gt;If not (app Is Nothing) Then&lt;BR /&gt;app.Quit&lt;BR /&gt;Set app = Nothing&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Sub dowork()&lt;BR /&gt;On Error Resume Next&lt;BR /&gt;'----&lt;BR /&gt;' Start up Enterprise Guide using the project name&lt;BR /&gt;'----&lt;BR /&gt;Dim prjName&lt;BR /&gt;Dim prjObject&lt;/P&gt;&lt;P&gt;prjName = "C:\Process Flows\a\INTRANET_LIVE_OUTPUT.egp" 'Project Name&lt;BR /&gt;&lt;BR /&gt;Set app = CreateObject("SASEGObjectModel.Application.7.1")&lt;BR /&gt;If Checkerror("CreateObject") = True Then&lt;BR /&gt;Exit Sub&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;'-----&lt;BR /&gt;' open the project&lt;BR /&gt;'-----&lt;BR /&gt;Set prjObject = app.Open(prjName,"")&lt;BR /&gt;If Checkerror("app.Open") = True Then&lt;BR /&gt;Exit Sub&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;'-----&lt;BR /&gt;' run the project&lt;BR /&gt;'-----&lt;BR /&gt;prjObject.run&lt;BR /&gt;If Checkerror("Project.run") = True Then&lt;BR /&gt;Exit Sub&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;'-----&lt;BR /&gt;' Save the new project&lt;BR /&gt;'-----&lt;BR /&gt;prjObject.Save&lt;BR /&gt;If Checkerror("Project.Save") = True Then&lt;BR /&gt;Exit Sub&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;'-----&lt;BR /&gt;' Close the project&lt;BR /&gt;'-----&lt;BR /&gt;prjObject.Close&lt;BR /&gt;If Checkerror("Project.Close") = True Then&lt;BR /&gt;Exit Sub&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;Function Checkerror(fnName)&lt;BR /&gt;Checkerror = False&lt;BR /&gt;&lt;BR /&gt;Dim strmsg&lt;BR /&gt;Dim errNum&lt;BR /&gt;&lt;BR /&gt;If Err.Number &amp;lt;&amp;gt; 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;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2017 13:45:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Enterprise-Guide-Scheduling-issue/m-p/394159#M25394</guid>
      <dc:creator>ScottJP</dc:creator>
      <dc:date>2017-09-08T13:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Enterprise Guide - Scheduling issue</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Enterprise-Guide-Scheduling-issue/m-p/596341#M34924</link>
      <description>does it work with 2 flows?&lt;BR /&gt;&lt;BR /&gt;Any success with other projects?</description>
      <pubDate>Mon, 14 Oct 2019 18:12:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Enterprise-Guide-Scheduling-issue/m-p/596341#M34924</guid>
      <dc:creator>tomrvincent</dc:creator>
      <dc:date>2019-10-14T18:12:34Z</dc:date>
    </item>
  </channel>
</rss>

