<?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 VA autoload scheduling shh in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Sas-VA-autoload-scheduling-shh/m-p/395183#M8108</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/145521"&gt;@Sm6&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's easy. Just run this command:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;crontab -e&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And add:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;0 17 * * * /PATH/TO/AUTOLOAD/SCRIPTS/FOLDER/runsas.sh&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Tue, 12 Sep 2017 17:43:44 GMT</pubDate>
    <dc:creator>alexal</dc:creator>
    <dc:date>2017-09-12T17:43:44Z</dc:date>
    <item>
      <title>Sas VA autoload scheduling shh</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Sas-VA-autoload-scheduling-shh/m-p/395163#M8107</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;i need some help to schedule a autoload program.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use mobaxterm to load the data and i want to schedule a task to run the loading script every day at 17,00.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I read something but i need more detailed information about the procedure.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can everybody help me step by step?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks you so much&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 16:27:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Sas-VA-autoload-scheduling-shh/m-p/395163#M8107</guid>
      <dc:creator>Sm6</dc:creator>
      <dc:date>2017-09-12T16:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Sas VA autoload scheduling shh</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Sas-VA-autoload-scheduling-shh/m-p/395183#M8108</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/145521"&gt;@Sm6&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's easy. Just run this command:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;crontab -e&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And add:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;0 17 * * * /PATH/TO/AUTOLOAD/SCRIPTS/FOLDER/runsas.sh&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 12 Sep 2017 17:43:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Sas-VA-autoload-scheduling-shh/m-p/395183#M8108</guid>
      <dc:creator>alexal</dc:creator>
      <dc:date>2017-09-12T17:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Sas VA autoload scheduling shh</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Sas-VA-autoload-scheduling-shh/m-p/395425#M8111</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/41748"&gt;@alexal&lt;/a&gt;&amp;nbsp;thank for answering.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately i never used ssh script! It's not so easy for me understanding the script and i don't have much time to better understand the code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to&amp;nbsp;know&amp;nbsp;where to schedule the time to autoload and where to specify the path to the sas script i wrote for loading the table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here are the script Schedule.sh, runsas.sh and the autoload.sas program.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please add comments where i need to change the information!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much!!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#!/bin/bash&lt;BR /&gt;#&lt;BR /&gt;# schedule.sh&lt;BR /&gt;#&lt;BR /&gt;# syslog Schedule AutoLoad.sas&lt;BR /&gt;#&lt;/P&gt;&lt;P&gt;RUNSAS_PATH="/sas/config/Lev1/Applications/SASVisualAnalytics/VisualAnalyticsAdministrator/runsas.sh"&lt;BR /&gt;TIME_INTERVAL_MINUTES=15&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;#call to runsas.sh&lt;BR /&gt;cat &amp;lt;(fgrep -i -v $RUNSAS_PATH &amp;lt;(crontab -l)) &amp;lt;(echo "*/$TIME_INTERVAL_MINUTES * * * * $RUNSAS_PATH &amp;gt; /dev/null ") | crontab -&lt;/P&gt;&lt;P&gt;cat -&amp;gt; to look through a file, the quickest way to get all the contents on your screen&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;---------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;#!/bin/bash&lt;BR /&gt;#&lt;BR /&gt;# runsas.sh&lt;BR /&gt;#&lt;BR /&gt;# syslog Run AutoLoad.sas&lt;BR /&gt;#&lt;/P&gt;&lt;P&gt;# Source level_env&lt;BR /&gt;. /sas/config/Lev1/level_env.sh&lt;/P&gt;&lt;P&gt;SERVER_CONTEXT=SASApp&lt;BR /&gt;APPSERVER_ROOT=$LEVEL_ROOT/$SERVER_CONTEXT&lt;BR /&gt;AUTOLOAD_ROOT=/sas/config/Lev1/Applications/SASVisualAnalytics/VisualAnalyticsAdministrator&lt;/P&gt;&lt;P&gt;FILENAME="$AUTOLOAD_ROOT/AutoLoad.sas"&lt;BR /&gt;LOG_FILE="$AUTOLOAD_ROOT/Logs/AutoLoad_#Y.#m.#d_#H.#M.#s.log"&lt;BR /&gt;LST_FILE="$AUTOLOAD_ROOT/Logs/AutoLoad.lst"&lt;BR /&gt;PID_FILE=$AUTOLOAD_ROOT/autoload.pid&lt;BR /&gt;CFG_FILE="$AUTOLOAD_ROOT/AutoLoad.cfg"&lt;BR /&gt;MOD_FILE="$AUTOLOAD_ROOT/AutoLoad_usermods.cfg"&lt;/P&gt;&lt;P&gt;# Set config file path&lt;BR /&gt;export SASCFGPATH="$APPSERVER_ROOT/sasv9.cfg, $APPSERVER_ROOT/sasv9_usermods.cfg, $CFG_FILE, $MOD_FILE"&lt;/P&gt;&lt;P&gt;# Function to run the autoload.sas program and save the pid&lt;BR /&gt;fnRunSAS()&lt;BR /&gt;{&lt;BR /&gt;cd $APPSERVER_ROOT&lt;BR /&gt;$SAS_COMMAND -sysin $FILENAME -log $LOG_FILE -print $LST_FILE -batch -noterminal -logparm "rollover=session" &amp;amp;&lt;/P&gt;&lt;P&gt;echo $! &amp;gt; $PID_FILE&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;# Ensure process listed in autoload.pid is not running&lt;BR /&gt;if [ -f $PID_FILE ]; then&lt;BR /&gt;kill -0 $(&amp;lt; $PID_FILE) &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;if [ $? -eq 0 ]; then&lt;BR /&gt;echo "autoload still running (pid $(&amp;lt; $PID_FILE))"&lt;BR /&gt;exit 1&lt;BR /&gt;else&lt;BR /&gt;fnRunSAS&lt;BR /&gt;fi&lt;BR /&gt;else&lt;BR /&gt;fnRunSAS&lt;BR /&gt;fi&lt;/P&gt;&lt;P&gt;exit 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;---------------------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;---------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*&lt;BR /&gt;* AutoLoad&lt;BR /&gt;*&lt;BR /&gt;* Purpose: Synchronizes SAS data sets placed in a single disk location with&lt;BR /&gt;* a single LASR Analytic Server library defined in metadata.&lt;BR /&gt;*&lt;BR /&gt;*/&lt;/P&gt;&lt;P&gt;/* Set the name of the LASR library to which to Auto Load */&lt;BR /&gt;%LET AL_META_LASRLIB=Visual Analytics Public LASR;&lt;/P&gt;&lt;P&gt;/* Include and execute main AutoLoad functionality */&lt;BR /&gt;%LET INCLUDELOC=/sas/sashome/SASVisualAnalyticsHighPerformanceConfiguration/7.3/Config/Deployment/Code/AutoLoad/include;&lt;/P&gt;&lt;P&gt;/* ------- No edits necessary below this line -------- */&lt;BR /&gt;filename inclib "&amp;amp;INCLUDELOC.";&lt;BR /&gt;%include inclib ( AutoLoadMain.sas );&lt;BR /&gt;%AutoLoadMain;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 08:31:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Sas-VA-autoload-scheduling-shh/m-p/395425#M8111</guid>
      <dc:creator>Sm6</dc:creator>
      <dc:date>2017-09-13T08:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Sas VA autoload scheduling shh</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Sas-VA-autoload-scheduling-shh/m-p/395474#M8114</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/145521"&gt;@Sm6&lt;/a&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With schedule.sh you can add an entry that will start runsas.sh every X minute. By default 15. If you want to start the autoload process everyday at 17:00 you have to add this entry to the crontab:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;0 17 * * * /sas/config/Lev1/Applications/SASVisualAnalytics/VisualAnalyticsAdministrator/runsas.sh&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 13 Sep 2017 11:32:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Sas-VA-autoload-scheduling-shh/m-p/395474#M8114</guid>
      <dc:creator>alexal</dc:creator>
      <dc:date>2017-09-13T11:32:28Z</dc:date>
    </item>
  </channel>
</rss>

