<?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: Can you use a batch file .bat to start a SAS Flow object under Schedule Manager in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Can-you-use-a-batch-file-bat-to-start-a-SAS-Flow-object-under/m-p/464952#M13233</link>
    <description>I think the flow script is generated when scheduled, or when you issue a Run now from SMC.&lt;BR /&gt;It would be nice if the script could be created as a separate task/command.</description>
    <pubDate>Fri, 25 May 2018 06:17:29 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2018-05-25T06:17:29Z</dc:date>
    <item>
      <title>Can you use a batch file .bat to start a SAS Flow object under Schedule Manager</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Can-you-use-a-batch-file-bat-to-start-a-SAS-Flow-object-under/m-p/462528#M13130</link>
      <description>&lt;P&gt;Hello SAS community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On Windows server, does anyone used a batch file .bat or PowerShell to start a SAS Flow under Schedule Manager?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was trying to use File dependency to run bunch of jobs within a flow &lt;A href="http://go.documentation.sas.com/?docsetId=scheduleug&amp;amp;docsetTarget=n143fd9raligavn1qapnwkhv35w7.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en"&gt;http://go.documentation.sas.com/?docsetId=scheduleug&amp;amp;docsetTarget=n143fd9raligavn1qapnwkhv35w7.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt; but for some reason don’t see this option &lt;STRONG&gt;Actions-&amp;gt;Add File Event&lt;/STRONG&gt; from SMC even with my SAS Admin account.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using Query Builder I have created some tasks and loaded them into LASR, running the scheduler once from the query builder will create an entry under schedule manager and I added all of them into a flow to execute all of them via a File Dependency.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it is possible to write a .bat file that I can call with another external process to start the SAS Flow?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Much appreciated your comments and input&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Tue, 15 May 2018 22:51:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Can-you-use-a-batch-file-bat-to-start-a-SAS-Flow-object-under/m-p/462528#M13130</guid>
      <dc:creator>L2Fly</dc:creator>
      <dc:date>2018-05-15T22:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can you use a batch file .bat to start a SAS Flow object under Schedule Manager</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Can-you-use-a-batch-file-bat-to-start-a-SAS-Flow-object-under/m-p/462562#M13132</link>
      <description>The file event is available only dor LSF I think.&lt;BR /&gt;But you can write your own bat file. &lt;BR /&gt;I would still create the flow in, which creates a VBS file. Be aware if that you then need to soothe scheduling part manually.</description>
      <pubDate>Wed, 16 May 2018 06:25:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Can-you-use-a-batch-file-bat-to-start-a-SAS-Flow-object-under/m-p/462562#M13132</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2018-05-16T06:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Can you use a batch file .bat to start a SAS Flow object under Schedule Manager</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Can-you-use-a-batch-file-bat-to-start-a-SAS-Flow-object-under/m-p/462724#M13141</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13674"&gt;@LinusH&lt;/a&gt;&amp;nbsp;for your info.&amp;nbsp; No problem I can create a bat file but don't know the syntax of how to call the flow.&amp;nbsp; Do you have any example or URL document that you can pass?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks again&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 14:36:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Can-you-use-a-batch-file-bat-to-start-a-SAS-Flow-object-under/m-p/462724#M13141</guid>
      <dc:creator>L2Fly</dc:creator>
      <dc:date>2018-05-16T14:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Can you use a batch file .bat to start a SAS Flow object under Schedule Manager</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Can-you-use-a-batch-file-bat-to-start-a-SAS-Flow-object-under/m-p/462755#M13145</link>
      <description>That would be Windows shell specific syntax, better learned elsewhere.</description>
      <pubDate>Wed, 16 May 2018 15:48:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Can-you-use-a-batch-file-bat-to-start-a-SAS-Flow-object-under/m-p/462755#M13145</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2018-05-16T15:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: Can you use a batch file .bat to start a SAS Flow object under Schedule Manager</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Can-you-use-a-batch-file-bat-to-start-a-SAS-Flow-object-under/m-p/462787#M13149</link>
      <description>&lt;P&gt;I think I found what I was looking for and testing the concept at the moment.&amp;nbsp; So when you create a job under SMC you can access the command SAS users to execute the SAS program.&amp;nbsp; Basically just place this commend into a .bat file and when you run the .bat file it will run your job!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;D:\SAS\SASConfig\VA\Lev1\SASAppVA\BatchServer\sasbatch.bat -log D:\SAS\SASConfig\VA\Lev1\Logs\vdb_MyQRY_1526417035704_vdb_MyQRY_1526417035704_#Y.#m.#d_#H.#M.#s.log&amp;nbsp; -batch -noterminal -logparm "rollover=session"&amp;nbsp; -sysin D:\SAS\SASConfig\VA\Lev1\SASAppVA\SASEnvironment\SASCode\Jobs\vdb_MyQRY_1526417035704.sas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope it works but this is what I was looking for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 18:20:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Can-you-use-a-batch-file-bat-to-start-a-SAS-Flow-object-under/m-p/462787#M13149</guid>
      <dc:creator>L2Fly</dc:creator>
      <dc:date>2018-05-16T18:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: Can you use a batch file .bat to start a SAS Flow object under Schedule Manager</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Can-you-use-a-batch-file-bat-to-start-a-SAS-Flow-object-under/m-p/462935#M13159</link>
      <description>&lt;P&gt;This is just the default way for running a single &lt;EM&gt;program&lt;/EM&gt; in batch mode. The sasbatch.bat (or sasbatch.sh on real operating systems) is specifically created for this and should be used, as it guarantees the same environment that you have in a workspace, stored process, OLAP server under the same SAS Application Server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For me, a flow is different from a program, as I'd use the word for a sequence of programs.&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 06:36:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Can-you-use-a-batch-file-bat-to-start-a-SAS-Flow-object-under/m-p/462935#M13159</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-05-17T06:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: Can you use a batch file .bat to start a SAS Flow object under Schedule Manager</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Can-you-use-a-batch-file-bat-to-start-a-SAS-Flow-object-under/m-p/462966#M13161</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;thank you for your comment.&amp;nbsp; I am on a windows environment and what I want to do is to automate the Unload and Load LASR tables in our VA environment.&amp;nbsp; After research and talking to a SAS consultant I was told the best way for what I want to do is to use Query Builder, create my query by adding my source table (SQL Server table in this case), save and run it once using the scheduler icon.&amp;nbsp; This would create a job file which basically the code I posted above. &amp;nbsp;Now I can place that code into a .bat file and call it, it should run the job which is unloading the LASR and then reloading it.&amp;nbsp; Idea was to add all of the jobs code into a single .bat file.&amp;nbsp; It almost works, when I look at the log file for that job I see an error.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: &amp;quot;Verdana&amp;quot;,sans-serif; font-size: 10pt;"&gt;&lt;FONT color="#000000"&gt;ERROR: Unauthorized: Check username/password.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: &amp;quot;Verdana&amp;quot;,sans-serif; font-size: 10pt;"&gt;&lt;FONT color="#000000"&gt;ERROR: Unable to connect to Metadata Server.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: &amp;quot;Verdana&amp;quot;,sans-serif; font-size: 10pt;"&gt;&lt;FONT color="#000000"&gt;ERROR: Write access to member ENTLASR.TESTING_SERVICE_TYPE.DATA is denied.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: &amp;quot;Verdana&amp;quot;,sans-serif; font-size: 10pt;"&gt;&lt;FONT color="#000000"&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: &amp;quot;Verdana&amp;quot;,sans-serif; font-size: 10pt;"&gt;&lt;FONT color="#000000"&gt;Thanks again&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 10:50:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Can-you-use-a-batch-file-bat-to-start-a-SAS-Flow-object-under/m-p/462966#M13161</guid>
      <dc:creator>L2Fly</dc:creator>
      <dc:date>2018-05-17T10:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Can you use a batch file .bat to start a SAS Flow object under Schedule Manager</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Can-you-use-a-batch-file-bat-to-start-a-SAS-Flow-object-under/m-p/462969#M13162</link>
      <description>&lt;P&gt;You may have to set &lt;A href="http://documentation.sas.com/?docsetId=lrmeta&amp;amp;docsetTarget=p0e6xowhvfgr7wn1lyz69id8uw4b.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;metadata-related system options&lt;/A&gt; so that you get access to the metadata server.&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 11:29:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Can-you-use-a-batch-file-bat-to-start-a-SAS-Flow-object-under/m-p/462969#M13162</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-05-17T11:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can you use a batch file .bat to start a SAS Flow object under Schedule Manager</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Can-you-use-a-batch-file-bat-to-start-a-SAS-Flow-object-under/m-p/464940#M13232</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;and &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13674"&gt;@LinusH&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I have created a .bat file with all of my LASR tables and it works.&amp;nbsp; For example a UnloadLoad.bat contains 10 statements for 10 tables like&lt;/P&gt;&lt;P&gt;D:\SAS\SASConfig\VA\Lev1\SASAppVA\BatchServer\sasbatch.bat -log D:\SAS\SASConfig\VA\Lev1\Logs\vdb_MyQRY_1526417035704_vdb_MyQRY_1526417035704_#Y.#m.#d_#H.#M.#s.log&amp;nbsp; -batch -noterminal -logparm "rollover=session"&amp;nbsp; -sysin D:\SAS\SASConfig\VA\Lev1\SASAppVA\SASEnvironment\SASCode\Jobs\vdb_MyQRY_1526417035704.sas&lt;/P&gt;&lt;P&gt;I can put all of these jobs into a flow and I now I am wondering it make is much easier if I be able to just somehow call my flow that contains these 10 jobs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you create a flow, does it create any kind of file that can be called by a program?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks again&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 05:04:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Can-you-use-a-batch-file-bat-to-start-a-SAS-Flow-object-under/m-p/464940#M13232</guid>
      <dc:creator>L2Fly</dc:creator>
      <dc:date>2018-05-25T05:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Can you use a batch file .bat to start a SAS Flow object under Schedule Manager</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Can-you-use-a-batch-file-bat-to-start-a-SAS-Flow-object-under/m-p/464952#M13233</link>
      <description>I think the flow script is generated when scheduled, or when you issue a Run now from SMC.&lt;BR /&gt;It would be nice if the script could be created as a separate task/command.</description>
      <pubDate>Fri, 25 May 2018 06:17:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Can-you-use-a-batch-file-bat-to-start-a-SAS-Flow-object-under/m-p/464952#M13233</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2018-05-25T06:17:29Z</dc:date>
    </item>
  </channel>
</rss>

