<?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 DI studio job runs normally, but same job in batch takes 5 more hours to complete in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-DI-studio-job-runs-normally-but-same-job-in-batch-takes-5/m-p/579868#M16953</link>
    <description>#good_job, &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16120"&gt;@Kurt&lt;/a&gt;_bremser!</description>
    <pubDate>Thu, 08 Aug 2019 13:18:01 GMT</pubDate>
    <dc:creator>ccaulkins9</dc:creator>
    <dc:date>2019-08-08T13:18:01Z</dc:date>
    <item>
      <title>SAS DI studio job runs normally, but same job in batch takes 5 more hours to complete</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-DI-studio-job-runs-normally-but-same-job-in-batch-takes-5/m-p/578667#M16885</link>
      <description>&lt;P&gt;I have a SAS data integration studio, and when i run the job from DI studio itself the job is completing in 1 hour. As we schedule most of our jobs through batch, when i try to execute the same job from batch it is taking longer than 5 hours. Can some please guide me why its long running.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Few thing i have noticed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The procedures that are long running are the proc sql's that are used to join two SAS datasets. If i check the memory consumption it is same for both the runs. Is it something related to SAS server configuration that is causing the job to long run in batch.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2019 11:44:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-DI-studio-job-runs-normally-but-same-job-in-batch-takes-5/m-p/578667#M16885</guid>
      <dc:creator>naveenraj</dc:creator>
      <dc:date>2019-08-02T11:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI studio job runs normally, but same job in batch takes 5 more hours to complete</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-DI-studio-job-runs-normally-but-same-job-in-batch-takes-5/m-p/578691#M16888</link>
      <description>&lt;P&gt;Maxim 2: Read the Log.&lt;/P&gt;
&lt;P&gt;In this case, read both logs and compare them step by step, to see if you have an overall difference or if only certain steps cause it.&lt;/P&gt;
&lt;P&gt;Also compare the setups: are you running with a different user in batch? Where are the WORKs located? Do you have different MEMSIZE (or other) settings?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2019 13:16:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-DI-studio-job-runs-normally-but-same-job-in-batch-takes-5/m-p/578691#M16888</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-08-02T13:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI studio job runs normally, but same job in batch takes 5 more hours to complete</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-DI-studio-job-runs-normally-but-same-job-in-batch-takes-5/m-p/578693#M16889</link>
      <description>Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/66186"&gt;@naveenraj&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;Assuming Server options, user permissions and input data (if any) is the same, I would suggest the same as suggested by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt; to read and compare the logs step by step. see if the option fullstimer would help to get some extra statistics to understand what is causing the bottleneck.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://support.sas.com/rnd/scalability/tools/fullstim/index.html" target="_blank"&gt;https://support.sas.com/rnd/scalability/tools/fullstim/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Fri, 02 Aug 2019 13:25:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-DI-studio-job-runs-normally-but-same-job-in-batch-takes-5/m-p/578693#M16889</guid>
      <dc:creator>AnandVyas</dc:creator>
      <dc:date>2019-08-02T13:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI studio job runs normally, but same job in batch takes 5 more hours to complete</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-DI-studio-job-runs-normally-but-same-job-in-batch-takes-5/m-p/578735#M16891</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/66186"&gt;@naveenraj&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Few things to keep in mind when comparing between SAS Client Applications&lt;/P&gt;
&lt;P&gt;1. The back-end/compute SAS Workspace Server settings/configurations&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. The user id running the task/job be it in batch or interactive&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is why!&lt;/P&gt;
&lt;P&gt;Depending on your SAS Multi-Tier installation, Knowing the following would help in isolating the reason&lt;/P&gt;
&lt;P&gt;- Do you have multiple SASApps configured (Multiple Compute Tiers)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; - if Yes, are all share the same settings?&lt;/P&gt;
&lt;P&gt;- Did both of your SAS Client Apps (DIS &amp;amp; Studio) run using the same SASApp instance?&lt;/P&gt;
&lt;P&gt;- Did both&amp;nbsp;of your SAS Client Apps (DIS &amp;amp; Studio) run under the same user ID?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Typically, the SAS Workspace Server instance would look for sasv9.cfg file under the current user home directory, and apply/use those settings.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would recommend adding the following to the top of the SAS Code/Program and then repeat your execution scenarios&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC OPTIONS GROUP=PERFORMANCE;
RUN;

%macro loginfo;
	data _null_;
		temp=datetime();
		temp2=lowcase(trim(left(put(temp,datetime16.))));
		call symput('g_datetime', trim(temp2));
	run;

	%put LOG HEADER BEGIN;
	%put LOG HEADER os=&amp;amp;sysscp;
	%put LOG HEADER os2=&amp;amp;sysscpl;
	%put LOG HEADER host=&amp;amp;g_computeHostName;
	%put LOG HEADER ver=&amp;amp;sysvlong;
	%put LOG HEADER date=&amp;amp;g_datetime;
	%put LOG HEADER parm=&amp;amp;sysparm;

	%put LOG HEADER END;
%mend loginfo;
%loginfo;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The results of the above code snippet will update your log file with information that could help with your quest.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Ahmed&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2019 15:00:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-DI-studio-job-runs-normally-but-same-job-in-batch-takes-5/m-p/578735#M16891</guid>
      <dc:creator>AhmedAl_Attar</dc:creator>
      <dc:date>2019-08-02T15:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI studio job runs normally, but same job in batch takes 5 more hours to complete</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-DI-studio-job-runs-normally-but-same-job-in-batch-takes-5/m-p/579727#M16948</link>
      <description>#kudoSAS &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/66729"&gt;@AHMED&lt;/a&gt;_alAttar!</description>
      <pubDate>Wed, 07 Aug 2019 18:35:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-DI-studio-job-runs-normally-but-same-job-in-batch-takes-5/m-p/579727#M16948</guid>
      <dc:creator>ccaulkins9</dc:creator>
      <dc:date>2019-08-07T18:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI studio job runs normally, but same job in batch takes 5 more hours to complete</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-DI-studio-job-runs-normally-but-same-job-in-batch-takes-5/m-p/579831#M16949</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/52993"&gt;@AnandVyas&lt;/a&gt;,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13868"&gt;@AhmedAl_Attar&lt;/a&gt;&amp;nbsp;. Thank you for your reply&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for the time being i have enabled fullstimer option and ran the job. Whenever its long running this is the log&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE SQL used (Total process time):&lt;BR /&gt;real time 46:45.31&lt;BR /&gt;user cpu time 11:09.30&lt;BR /&gt;system cpu time 22:48.35&lt;BR /&gt;memory 2110359.71k&lt;BR /&gt;OS Memory 2120860.00k&lt;BR /&gt;Timestamp 08/07/2019 09:57:24 PM&lt;BR /&gt;Page Faults 15&lt;BR /&gt;Page Reclaims 2792475&lt;BR /&gt;Page Swaps 0&lt;BR /&gt;Voluntary Context Switches 7856852&lt;BR /&gt;Involuntary Context Switches 983261&lt;BR /&gt;Block Input Operations 314774320&lt;BR /&gt;Block Output Operations 682482984&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when normal run:&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: SAS threaded sort was used.&lt;BR /&gt;NOTE: Table WORK.testcreated, with 148455601 rows and 15 columns.&lt;/P&gt;&lt;P&gt;quit;&lt;BR /&gt;NOTE: PROCEDURE SQL used (Total process time):&lt;BR /&gt;real time 8:03.16&lt;BR /&gt;user cpu time 7:45.12&lt;BR /&gt;system cpu time 5:14.55&lt;BR /&gt;memory 2110364.18k&lt;BR /&gt;OS Memory 2120860.00k&lt;BR /&gt;Timestamp 08/07/2019 04:27:34 AM&lt;BR /&gt;Page Faults 14&lt;BR /&gt;Page Reclaims 2233821&lt;BR /&gt;Page Swaps 0&lt;BR /&gt;Voluntary Context Switches 7479031&lt;BR /&gt;Involuntary Context Switches 625212&lt;BR /&gt;Block Input Operations 310773896&lt;BR /&gt;Block Output Operations 682466728&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea why real time is this high&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The user, server everything is same when executing from SAS DI or as batch.&amp;nbsp;&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>Thu, 08 Aug 2019 09:58:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-DI-studio-job-runs-normally-but-same-job-in-batch-takes-5/m-p/579831#M16949</guid>
      <dc:creator>naveenraj</dc:creator>
      <dc:date>2019-08-08T09:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI studio job runs normally, but same job in batch takes 5 more hours to complete</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-DI-studio-job-runs-normally-but-same-job-in-batch-takes-5/m-p/579840#M16950</link>
      <description>&lt;P&gt;Looks like you are on a completely different type of storage for your WORK and/or UTILLOC that causes much more wait states and more system (kernel) CPU action. Just compare the system CPU times (4 times as much in the longer run). Simple I/O waits would never cause such an increase, the CPU would just wait and do nothing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc options option=(utilloc work threads);
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;in both environments.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 10:57:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-DI-studio-job-runs-normally-but-same-job-in-batch-takes-5/m-p/579840#M16950</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-08-08T10:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI studio job runs normally, but same job in batch takes 5 more hours to complete</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-DI-studio-job-runs-normally-but-same-job-in-batch-takes-5/m-p/579848#M16951</link>
      <description>&lt;P&gt;Same for both.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;UTILLOC=/*****/work/SASUtils&lt;BR /&gt;&lt;BR /&gt;WORK=/*****/work/SASWork/SAS_work****&lt;BR /&gt;&lt;BR /&gt;THREADS Threads are available for use with features of the SAS System that support threading.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 11:45:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-DI-studio-job-runs-normally-but-same-job-in-batch-takes-5/m-p/579848#M16951</guid>
      <dc:creator>naveenraj</dc:creator>
      <dc:date>2019-08-08T11:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI studio job runs normally, but same job in batch takes 5 more hours to complete</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-DI-studio-job-runs-normally-but-same-job-in-batch-takes-5/m-p/579854#M16952</link>
      <description>&lt;P&gt;So you need to dig deeper:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put &amp;amp;sysuserid.;
%put &amp;amp;syshostname.;
%put &amp;amp;syshostinfolong.;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc options;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If both of these are identical, I fear I've run out of ammunition to shoot at the problem.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 12:38:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-DI-studio-job-runs-normally-but-same-job-in-batch-takes-5/m-p/579854#M16952</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-08-08T12:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI studio job runs normally, but same job in batch takes 5 more hours to complete</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-DI-studio-job-runs-normally-but-same-job-in-batch-takes-5/m-p/579868#M16953</link>
      <description>#good_job, &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16120"&gt;@Kurt&lt;/a&gt;_bremser!</description>
      <pubDate>Thu, 08 Aug 2019 13:18:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-DI-studio-job-runs-normally-but-same-job-in-batch-takes-5/m-p/579868#M16953</guid>
      <dc:creator>ccaulkins9</dc:creator>
      <dc:date>2019-08-08T13:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI studio job runs normally, but same job in batch takes 5 more hours to complete</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-DI-studio-job-runs-normally-but-same-job-in-batch-takes-5/m-p/579875#M16954</link>
      <description>&lt;P&gt;Can you check your system to see if there are other IO heavy things happening at 10:00 pm?&amp;nbsp; Like a backup or another heavy IO job?&amp;nbsp; Your System CPU time is has increased by more than 4 times.&amp;nbsp; System CPU is the amount of time the operating system is doing an activity for SAS - such as reading and/or writing data to a file system.&amp;nbsp; The fact that it is taking 4 times longer indicates that during the timeframe you ran this job it was having to do several retries to access the data.&amp;nbsp; This happens a lot when a backup is running on a system or other heavy IO jobs are running.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you schedule the batch job to run at 4:00 am?&amp;nbsp; This seems to be when the normal run ran.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, what operating system are you running on?&amp;nbsp; Can you gather hardware monitor data during the batch run to see if the extra time is coming from IOWaits?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Margaret&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 13:33:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-DI-studio-job-runs-normally-but-same-job-in-batch-takes-5/m-p/579875#M16954</guid>
      <dc:creator>MargaretC</dc:creator>
      <dc:date>2019-08-08T13:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI studio job runs normally, but same job in batch takes 5 more hours to complete</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-DI-studio-job-runs-normally-but-same-job-in-batch-takes-5/m-p/579876#M16955</link>
      <description>&lt;P&gt;Thanks for the suggestion&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/1759"&gt;@MargaretC&lt;/a&gt;&amp;nbsp;. We have already setup a meeting with Unix administrators to see the performance of the system today evening (we have scheduled the sas job to run at this time sequentially) to see if its something related to system.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To answer your question, the SAS is hosted on Unix system and we will ask administrators for the IOWaits data.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 13:40:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-DI-studio-job-runs-normally-but-same-job-in-batch-takes-5/m-p/579876#M16955</guid>
      <dc:creator>naveenraj</dc:creator>
      <dc:date>2019-08-08T13:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI studio job runs normally, but same job in batch takes 5 more hours to complete</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-DI-studio-job-runs-normally-but-same-job-in-batch-takes-5/m-p/579878#M16956</link>
      <description>&lt;P&gt;Completely missed to look at the timestamps. That could explain everything.&lt;/P&gt;
&lt;P&gt;(Basically, I now think that this is what we've been looking for. And I can't even blame not having had enough coffee ...)&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 13:45:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-DI-studio-job-runs-normally-but-same-job-in-batch-takes-5/m-p/579878#M16956</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-08-08T13:45:51Z</dc:date>
    </item>
  </channel>
</rss>

