<?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: How to enable the running of LSF B commands within a SAS front-end application like Enterprise G in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-enable-the-running-of-LSF-B-commands-within-a-SAS-front/m-p/396425#M278121</link>
    <description>&lt;P&gt;Sometimes providing full paths to external sources help.&lt;/P&gt;
&lt;P&gt;I suspect that the /usr/bin is where the SAS server (?) code sets and without a path to the desired objects that is where it defaults to looking for things.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Sep 2017 16:59:47 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-09-15T16:59:47Z</dc:date>
    <item>
      <title>How to enable the running of LSF B commands within a SAS front-end application like Enterprise Guide</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-enable-the-running-of-LSF-B-commands-within-a-SAS-front/m-p/396241#M278120</link>
      <description>&lt;P&gt;Greetings all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having a problem running Platform B commands from Enterprise Guide.&lt;/P&gt;&lt;P&gt;What I am trying to do is execute one of the B commands (bjobs) from enterprise guide, and piping the results to a dataset, using the below code:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ScreenHunter_01 Sep. 15 11.47.gif" style="width: 372px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15199i153D399E83CCBA5E/image-size/large?v=v2&amp;amp;px=999" role="button" title="ScreenHunter_01 Sep. 15 11.47.gif" alt="ScreenHunter_01 Sep. 15 11.47.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The command works fine from command line in Putty, using the sassrv user, as per the below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ScreenHunter_06 Sep. 15 12.03.gif" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15200i234E1213463E6DFA/image-size/large?v=v2&amp;amp;px=999" role="button" title="ScreenHunter_06 Sep. 15 12.03.gif" alt="ScreenHunter_06 Sep. 15 12.03.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I get the /usr/bin/ksh: bjobs:&amp;nbsp; not found. error when running from E-Guide.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ScreenHunter_03 Sep. 15 11.49.gif" style="width: 229px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15201iA5271A685C248F1C/image-size/large?v=v2&amp;amp;px=999" role="button" title="ScreenHunter_03 Sep. 15 11.49.gif" alt="ScreenHunter_03 Sep. 15 11.49.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The B commands are in /EIP/Software/Platform/lsf/9.1/aix-64/bin, and &lt;STRONG&gt;not&lt;/STRONG&gt; in /usr/bin/ksh.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ScreenHunter_05 Sep. 15 11.50.gif" style="width: 286px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15202iE8F02A3697BDED0C/image-size/large?v=v2&amp;amp;px=999" role="button" title="ScreenHunter_05 Sep. 15 11.50.gif" alt="ScreenHunter_05 Sep. 15 11.50.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ScreenHunter_04 Sep. 15 11.49.gif" style="width: 342px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15203i8AC85AAF8E8C09F1/image-size/large?v=v2&amp;amp;px=999" role="button" title="ScreenHunter_04 Sep. 15 11.49.gif" alt="ScreenHunter_04 Sep. 15 11.49.gif" /&gt;&lt;/span&gt;&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;&lt;P&gt;The reason behind all this is that we want to automate the some of the b commands to have better visibility on what is happening with out ETLs, to manage our environment resources better&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the E-Guide log&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;25         GOPTIONS ACCESSIBLE;
26         filename jobinfo pipe "bjobs";
27         
28         data getinfo;
29         infile jobinfo pad missover lrecl=3000;
30         input inline $1-500;
31         run;

NOTE: The infile JOBINFO is:
      Pipe command="bjobs"

NOTE: 1 record was read from the infile JOBINFO.
      The minimum record length was 32.
      The maximum record length was 32.
NOTE: The data set WORK.GETINFO has 1 observations and 1 variables.
NOTE: Compressing data set WORK.GETINFO increased size by 100.00 percent. 
      Compressed is 2 pages; un-compressed would require 1 pages.
NOTE: DATA statement used (Total process time):
      real time           0.19 seconds
      cpu time            0.00 seconds
      

32         
33         GOPTIONS NOACCESSIBLE;
34         %LET _CLIENTTASKLABEL=;
35         %LET _CLIENTPROCESSFLOWNAME=;
36         %LET _CLIENTPROJECTPATH=;
37         %LET _CLIENTPROJECTPATHHOST=;
38         %LET _CLIENTPROJECTNAME=;
39         %LET _SASPROGRAMFILE=;
40         %LET _SASPROGRAMFILEHOST=;
41         
42         ;*';*";*/;quit;run;
2                                                          The SAS System                           11:07 Friday, September 15, 2017

43         ODS _ALL_ CLOSE;
44         
45         
46         QUIT; RUN;
47         &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ruan&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;&lt;P&gt;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 10:20:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-enable-the-running-of-LSF-B-commands-within-a-SAS-front/m-p/396241#M278120</guid>
      <dc:creator>ruanmet</dc:creator>
      <dc:date>2017-09-15T10:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable the running of LSF B commands within a SAS front-end application like Enterprise G</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-enable-the-running-of-LSF-B-commands-within-a-SAS-front/m-p/396425#M278121</link>
      <description>&lt;P&gt;Sometimes providing full paths to external sources help.&lt;/P&gt;
&lt;P&gt;I suspect that the /usr/bin is where the SAS server (?) code sets and without a path to the desired objects that is where it defaults to looking for things.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 16:59:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-enable-the-running-of-LSF-B-commands-within-a-SAS-front/m-p/396425#M278121</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-09-15T16:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable the running of LSF B commands within a SAS front-end application like Enterprise G</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-enable-the-running-of-LSF-B-commands-within-a-SAS-front/m-p/397407#M278122</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried using the full paths, and the results are still the same.&lt;/P&gt;&lt;P&gt;It creates the output file, but it is empty.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have even specified the location of the profilels file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;x "/EIP/Software/Platform/lsf/conf/profile.lsf; lsid &amp;gt; /EIP/Data/Lev1/Data/ACE_ADM/SourceFiles/bacct_out.txt";&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 12:27:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-enable-the-running-of-LSF-B-commands-within-a-SAS-front/m-p/397407#M278122</guid>
      <dc:creator>ruanmet</dc:creator>
      <dc:date>2017-09-20T12:27:16Z</dc:date>
    </item>
  </channel>
</rss>

