<?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: X command from SAS Enterprise Guide 7.1 in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/X-command-from-SAS-Enterprise-Guide-7-1/m-p/288825#M19703</link>
    <description>&lt;P&gt;There's nothing in your log to indicate it didn't work. You called the command but did nothing with results.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Whoch is much easier to see once I formatted your code.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try A mkdir command to test it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And review how to obtain results from ls.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Aug 2016 06:05:53 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-08-02T06:05:53Z</dc:date>
    <item>
      <title>X command from SAS Enterprise Guide 7.1</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/X-command-from-SAS-Enterprise-Guide-7-1/m-p/288800#M19693</link>
      <description>&lt;P&gt;Hello everyone How can I create run time directory on SAS unix server and other OS specific commands ls, pwd...etc via SAS Enterprise guide using X command. I did X commands in SAS sessions from EG to run some OS specific commands such as mkdir,ls,pwd...but it looks like they are not working. below is the one of the x command I tried&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;x ls -l;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;12NODS tagsets.sasreport13(ID=EGSR) FILE=EGSR&lt;/P&gt;
&lt;P&gt;13 STYLE=HtmlBlue&lt;/P&gt;
&lt;P&gt;14 STYLESHEET=(URL="file:///C:/Program%20Files%20(x86)/SASHome94/x86/SASEnterpriseGuide/7.1/Styles/HtmlBlue.css")&lt;/P&gt;
&lt;P&gt;15 NOGTITLE&lt;/P&gt;
&lt;P&gt;16 NOGFOOTNOTE&lt;/P&gt;
&lt;P&gt;17 GPATH=&amp;amp;sasworklocation&lt;/P&gt;
&lt;P&gt;18 ENCODING=UTF8&lt;/P&gt;
&lt;P&gt;19 options(rolap="on")&lt;/P&gt;
&lt;P&gt;20 ;&amp;nbsp;NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR&lt;/P&gt;
&lt;P&gt;21&lt;/P&gt;
&lt;P&gt;22 GOPTIONS ACCESSIBLE;&lt;/P&gt;
&lt;P&gt;23 x ls -l 23 ! ;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;24&lt;/P&gt;
&lt;P&gt;25 GOPTIONS NOACCESSIBLE;&lt;/P&gt;
&lt;P&gt;26 %LET _CLIENTTASKLABEL=;&lt;/P&gt;
&lt;P&gt;27 %LET _CLIENTPROJECTPATH=;&lt;/P&gt;
&lt;P&gt;28 %LET _CLIENTPROJECTNAME=;&lt;/P&gt;
&lt;P&gt;29 %LET _SASPROGRAMFILE=;&lt;/P&gt;
&lt;P&gt;30&lt;/P&gt;
&lt;P&gt;31 ;*';*";*/;quit;run;&lt;/P&gt;
&lt;P&gt;32 ODS _ALL_ CLOSE;&lt;/P&gt;
&lt;P&gt;33&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is our new SAS 9.4 Environment,so am not sure How this commands will work from SAS EG,do I need to enable something somewhere in the Tools or may be am using the commands wrongly. I would really appreciate if someone can help me on this Thank you in Advance&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 05:57:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/X-command-from-SAS-Enterprise-Guide-7-1/m-p/288800#M19693</guid>
      <dc:creator>sasprofile</dc:creator>
      <dc:date>2016-08-02T05:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: X command from SAS Enterprise Guide 7.1</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/X-command-from-SAS-Enterprise-Guide-7-1/m-p/288804#M19695</link>
      <description>&lt;P&gt;To be very specific how to create directory&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use following statement. Option dlcreatedir helps to create new directory if it is not present.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;options dlcreatedir;&lt;/P&gt;&lt;P&gt;libname temp "C:\users\New_folder";&lt;/P&gt;&lt;P&gt;libname temp;&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>Tue, 02 Aug 2016 03:41:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/X-command-from-SAS-Enterprise-Guide-7-1/m-p/288804#M19695</guid>
      <dc:creator>RahulG</dc:creator>
      <dc:date>2016-08-02T03:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: X command from SAS Enterprise Guide 7.1</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/X-command-from-SAS-Enterprise-Guide-7-1/m-p/288812#M19697</link>
      <description>&lt;P&gt;Do you have administration privileges for your SAS installation?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You do need to enable X command in EG as its turned off by default.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To create a folder you can use DCREATE&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 04:16:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/X-command-from-SAS-Enterprise-Guide-7-1/m-p/288812#M19697</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-08-02T04:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: X command from SAS Enterprise Guide 7.1</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/X-command-from-SAS-Enterprise-Guide-7-1/m-p/288820#M19699</link>
      <description>&lt;P&gt;a) you need XCMD enabled on the workspace server; run proc options, and then look for XCMD in the log&lt;/P&gt;
&lt;P&gt;b) to reliably catch the output of system commands, do this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename oscmd pipe "ls -l 2&amp;gt;&amp;amp;1";
data _null_;
infile oscmd;
input;
put _infile_;
run;
filename oscmd clear;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The 2&amp;gt;&amp;amp;1 reroutes stderr to stdout, so all output, including error messages, will be streamed to SAS. The data step then writes all output (if present) to the SAS log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 05:38:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/X-command-from-SAS-Enterprise-Guide-7-1/m-p/288820#M19699</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-08-02T05:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: X command from SAS Enterprise Guide 7.1</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/X-command-from-SAS-Enterprise-Guide-7-1/m-p/288821#M19700</link>
      <description>&lt;P&gt;Addendum: When posting code, use the little "running man" icon to get a subwindow for entering code. Code will then be displayed in fixed-width font and with syntax highlighting similar to the SAS Enhanced Editor.&lt;/P&gt;
&lt;P&gt;For log output or data, use the {i} icon. Fixed-width font, but no syntax highlighting.&lt;/P&gt;
&lt;P&gt;This makes it much easier for others to read your posts.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 05:40:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/X-command-from-SAS-Enterprise-Guide-7-1/m-p/288821#M19700</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-08-02T05:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: X command from SAS Enterprise Guide 7.1</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/X-command-from-SAS-Enterprise-Guide-7-1/m-p/288823#M19701</link>
      <description>Thank you for all your prompt replies, I truly appreciate that

I have checked in the Work space Server that Allow XCMD checkbox is checked in the Workspaceserver properties.

but still the X commands in EG is not working, basically I want to run few basic commands like  mkdir, ls, pwd from EG

please help</description>
      <pubDate>Tue, 02 Aug 2016 05:58:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/X-command-from-SAS-Enterprise-Guide-7-1/m-p/288823#M19701</guid>
      <dc:creator>sasprofile</dc:creator>
      <dc:date>2016-08-02T05:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: X command from SAS Enterprise Guide 7.1</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/X-command-from-SAS-Enterprise-Guide-7-1/m-p/288824#M19702</link>
      <description>&lt;P&gt;Run my code and then post the complete log.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 06:00:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/X-command-from-SAS-Enterprise-Guide-7-1/m-p/288824#M19702</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-08-02T06:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: X command from SAS Enterprise Guide 7.1</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/X-command-from-SAS-Enterprise-Guide-7-1/m-p/288825#M19703</link>
      <description>&lt;P&gt;There's nothing in your log to indicate it didn't work. You called the command but did nothing with results.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Whoch is much easier to see once I formatted your code.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try A mkdir command to test it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And review how to obtain results from ls.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 06:05:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/X-command-from-SAS-Enterprise-Guide-7-1/m-p/288825#M19703</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-08-02T06:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: X command from SAS Enterprise Guide 7.1</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/X-command-from-SAS-Enterprise-Guide-7-1/m-p/288828#M19705</link>
      <description>&lt;P&gt;Reeza thanks for your reply&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is how the command looks for mkdir right if am not wrong&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;X 'mkdir abc'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 06:18:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/X-command-from-SAS-Enterprise-Guide-7-1/m-p/288828#M19705</guid>
      <dc:creator>sasprofile</dc:creator>
      <dc:date>2016-08-02T06:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: X command from SAS Enterprise Guide 7.1</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/X-command-from-SAS-Enterprise-Guide-7-1/m-p/288829#M19706</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/6699"&gt;@sasprofile&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Reeza thanks for your reply&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is how the command looks for mkdir right if am not wrong&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;X 'mkdir abc'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Be aware that you specify a relative path (not starting at the UNIX root directory). This means that SAS will try to create the directory at the current working directory (CWD) of the SAS workspace server process.&lt;/P&gt;
&lt;P&gt;With the SAS default installation, this is most probably the &lt;FONT face="courier new,courier"&gt;/&lt;EM&gt;sasconfig&lt;/EM&gt;/Lev1/SASApp/WorkspaceServer&lt;/FONT&gt; directory, where you won't want to create a new directory, and where you most probably are not allowed to create anything.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename oscmd pipe "mkdir $HOME/abc 2&amp;gt;&amp;amp;1";
data _null_;
infile oscmd;
input;
put _infile_;
run;
filename oscmd clear;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;instead and look at the log.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 06:23:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/X-command-from-SAS-Enterprise-Guide-7-1/m-p/288829#M19706</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-08-02T06:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: X command from SAS Enterprise Guide 7.1</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/X-command-from-SAS-Enterprise-Guide-7-1/m-p/288835#M19710</link>
      <description>&lt;P&gt;KurtBremser&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks once again for your prompt replies, I really appreciate that&lt;/P&gt;
&lt;P&gt;here is the log files for the two codes you sent,for the first code the directory created in the home directory&lt;/P&gt;
&lt;P&gt;and the second code it listed some&amp;nbsp;files...so it means the X command in EG is not working.&lt;/P&gt;
&lt;P&gt;but why when am issuing the below commands its not working&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;x 'ls -l;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;x 'pwd';&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;x &amp;nbsp;'cd /home/xu84178';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;x 'ls -l&amp;nbsp; &amp;gt;&amp;nbsp; ls.txt&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;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token statement"&gt;filename&lt;/SPAN&gt; oscmd pipe &lt;SPAN class="token string"&gt;"mkdir $HOME/abc 2&amp;gt;&amp;amp;1"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt; _null_&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token statement"&gt;infile&lt;/SPAN&gt; oscmd&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token keyword"&gt;input&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token keyword"&gt;put&lt;/SPAN&gt; _infile_&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token statement"&gt;filename&lt;/SPAN&gt; oscmd &lt;SPAN class="token keyword"&gt;clear&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;1 &lt;BR /&gt;1 ;*';*";*/;quit;run;&lt;BR /&gt;2 OPTIONS PAGENO=MIN;&lt;BR /&gt;3 %LET _CLIENTTASKLABEL='Program';&lt;BR /&gt;4 %LET _CLIENTPROJECTPATH='';&lt;BR /&gt;5 %LET _CLIENTPROJECTNAME='';&lt;BR /&gt;6 %LET _SASPROGRAMFILE=;&lt;BR /&gt;7 &lt;BR /&gt;8 ODS _ALL_ CLOSE;&lt;BR /&gt;9 OPTIONS DEV=ACTIVEX;&lt;BR /&gt;10 GOPTIONS XPIXELS=0 YPIXELS=0;&lt;BR /&gt;11 FILENAME EGSR TEMP;&lt;BR /&gt;12 ODS tagsets.sasreport13(ID=EGSR) FILE=EGSR&lt;BR /&gt;13 STYLE=HtmlBlue&lt;BR /&gt;14 STYLESHEET=(URL="file:///C:/Program%20Files%20(x86)/SASHome/x86/SASEnterpriseGuide/7.1/Styles/HtmlBlue.css")&lt;BR /&gt;15 NOGTITLE&lt;BR /&gt;16 NOGFOOTNOTE&lt;BR /&gt;17 GPATH=&amp;amp;sasworklocation&lt;BR /&gt;18 ENCODING=UTF8&lt;BR /&gt;19 options(rolap="on")&lt;BR /&gt;20 ;&lt;BR /&gt;NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR&lt;BR /&gt;21 &lt;BR /&gt;22 GOPTIONS ACCESSIBLE;&lt;BR /&gt;23 filename oscmd pipe "mkdir /home/gx25664/abc 2&amp;gt;&amp;amp;1";&lt;BR /&gt;24 data _null_;&lt;BR /&gt;25 infile oscmd;&lt;BR /&gt;26 input;&lt;BR /&gt;27 put _infile_;&lt;BR /&gt;28 run;&lt;BR /&gt;&lt;BR /&gt;NOTE: The infile OSCMD is:&lt;BR /&gt; Pipe command="mkdir /home/gx25664/abc 2&amp;gt;&amp;amp;1"&lt;BR /&gt;&lt;BR /&gt;NOTE: 0 records were read from the infile OSCMD.&lt;BR /&gt;NOTE: PROCEDURE| _DISARM| STOP| _DISARM| 2016-08-01T23:31:01,926-07:00| _DISARM| WorkspaceServer| _DISARM| SAS| _DISARM| | &lt;BR /&gt; _DISARM| 19038208| _DISARM| 19038208| _DISARM| 11| _DISARM| 11| _DISARM| 0| _DISARM| 824| _DISARM| 0.010000| _DISARM| &lt;BR /&gt; 0.022196| _DISARM| 1785738661.904777| _DISARM| 1785738661.926973| _DISARM| 0.010000| _DISARM| | _ENDDISARM &lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt; real time 0.02 seconds&lt;BR /&gt; user cpu time 0.01 seconds&lt;BR /&gt; system cpu time 0.00 seconds&lt;BR /&gt; memory 765.28k&lt;BR /&gt; OS Memory 18592.00k&lt;BR /&gt; Timestamp 08/01/2016 11:31:01 PM&lt;BR /&gt; Step Count 4 Switch Count 49&lt;BR /&gt; Page Faults 0&lt;BR /&gt; Page Reclaims 362&lt;BR /&gt; Page Swaps 0&lt;BR /&gt; Voluntary Context Switches 155&lt;BR /&gt; Involuntary Context Switches 0&lt;BR /&gt; Block Input Operations 0&lt;BR /&gt; Block Output Operations 0&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;29 filename oscmd clear;&lt;BR /&gt;NOTE: Fileref OSCMD has been deassigned.&lt;BR /&gt;30 &lt;BR /&gt;31 GOPTIONS NOACCESSIBLE;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;32 %LET _CLIENTTASKLABEL=;&lt;BR /&gt;33 %LET _CLIENTPROJECTPATH=;&lt;BR /&gt;34 %LET _CLIENTPROJECTNAME=;&lt;BR /&gt;35 %LET _SASPROGRAMFILE=;&lt;BR /&gt;36 &lt;BR /&gt;37 ;*';*";*/;quit;run;&lt;BR /&gt;38 ODS _ALL_ CLOSE;&lt;BR /&gt;39 &lt;BR /&gt;40 &lt;BR /&gt;41 QUIT; RUN;&lt;BR /&gt;42 &lt;/SPAN&gt;&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token statement"&gt;filename&lt;/SPAN&gt; oscmd pipe &lt;SPAN class="token string"&gt;"ls -l 2&amp;gt;&amp;amp;1"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt; _null_&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token statement"&gt;infile&lt;/SPAN&gt; oscmd&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token keyword"&gt;input&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token keyword"&gt;put&lt;/SPAN&gt; _infile_&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token statement"&gt;filename&lt;/SPAN&gt; oscmd &lt;SPAN class="token keyword"&gt;clear&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;1 ;*';*";*/;quit;run;&lt;BR /&gt;2 OPTIONS PAGENO=MIN;&lt;BR /&gt;3 %LET _CLIENTTASKLABEL='Program (2)';&lt;BR /&gt;4 %LET _CLIENTPROJECTPATH='';&lt;BR /&gt;5 %LET _CLIENTPROJECTNAME='';&lt;BR /&gt;6 %LET _SASPROGRAMFILE=;&lt;BR /&gt;7 &lt;BR /&gt;8 ODS _ALL_ CLOSE;&lt;BR /&gt;9 OPTIONS DEV=ACTIVEX;&lt;BR /&gt;10 GOPTIONS XPIXELS=0 YPIXELS=0;&lt;BR /&gt;11 FILENAME EGSR TEMP;&lt;BR /&gt;12 ODS tagsets.sasreport13(ID=EGSR) FILE=EGSR&lt;BR /&gt;13 STYLE=HtmlBlue&lt;BR /&gt;14 STYLESHEET=(URL="file:///C:/Program%20Files%20(x86)/SASHome/x86/SASEnterpriseGuide/7.1/Styles/HtmlBlue.css")&lt;BR /&gt;15 NOGTITLE&lt;BR /&gt;16 NOGFOOTNOTE&lt;BR /&gt;17 GPATH=&amp;amp;sasworklocation&lt;BR /&gt;18 ENCODING=UTF8&lt;BR /&gt;19 options(rolap="on")&lt;BR /&gt;20 ;&lt;BR /&gt;NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR&lt;BR /&gt;21 &lt;BR /&gt;22 GOPTIONS ACCESSIBLE;&lt;BR /&gt;23 filename oscmd pipe "ls -l 2&amp;gt;&amp;amp;1";&lt;BR /&gt;24 data _null_;&lt;BR /&gt;25 infile oscmd;&lt;BR /&gt;26 input;&lt;BR /&gt;27 put _infile_;&lt;BR /&gt;28 run;&lt;BR /&gt;&lt;BR /&gt;NOTE: The infile OSCMD is:&lt;BR /&gt; Pipe command="ls -l 2&amp;gt;&amp;amp;1"&lt;BR /&gt;&lt;BR /&gt;total 68&lt;BR /&gt;-rw-r--r-- 1 sas sas 343 Jul 29 14:02 appserver_autoexec.sas&lt;BR /&gt;-rw-r--r-- 1 sas sas 365 Jul 29 18:25 appserver_autoexec_usermods.sas&lt;BR /&gt;-rw-r--r-- 1 sas sas 236 Jul 29 14:02 appserver_autoexec_usermods.sas_20160729_182516&lt;BR /&gt;-rw-r--r-- 1 sas sas 437 Jul 29 14:02 appservercontext_env.sh&lt;BR /&gt;-rwxr-xr-x 1 sas sas 203 Jul 29 14:02 appservercontext_env_usermods.sh&lt;BR /&gt;drwxr-xr-x 4 sas sas 4096 Jul 29 18:25 BatchServer&lt;BR /&gt;drwxr-xr-x 3 sas sas 4096 Jul 29 18:25 ConnectServer&lt;BR /&gt;drwxr-xr-x 2 sas sas 4096 Jul 29 14:02 Data&lt;BR /&gt;drwxr-x--- 5 sas sas 4096 Jul 29 18:25 PooledWorkspaceServer&lt;BR /&gt;drwxr-xr-x 5 sas sas 4096 Jul 29 14:02 SASEnvironment&lt;BR /&gt;-rwxr-xr-x 1 sas sas 894 Jul 29 14:02 sas.sh&lt;BR /&gt;-rwxr-xr-x 1 sas sas 165 Jul 29 14:02 sas_usermods.sh&lt;BR /&gt;-rw-r--r-- 1 sas sas 1141 Jul 29 14:02 sasv9.cfg&lt;BR /&gt;-rw-r--r-- 1 sas sas 295 Jul 29 14:02 sasv9_usermods.cfg&lt;BR /&gt;drwxr-x--- 5 sas sas 4096 Jul 29 18:25 StoredProcessServer&lt;BR /&gt;drwxrwxr-x 2 sas sas 4096 Aug 1 18:15 test&lt;BR /&gt;drwxr-xr-x 4 sas sas 4096 Jul 29 18:25 WorkspaceServer&lt;BR /&gt;NOTE: 18 records were read from the infile OSCMD.&lt;BR /&gt; The minimum record length was 8.&lt;BR /&gt; The maximum record length was 86.&lt;BR /&gt;NOTE: PROCEDURE| _DISARM| STOP| _DISARM| 2016-08-01T23:39:15,542-07:00| _DISARM| WorkspaceServer| _DISARM| SAS| _DISARM| | &lt;BR /&gt; _DISARM| 20877312| _DISARM| 19300352| _DISARM| 11| _DISARM| 11| _DISARM| 8| _DISARM| 872| _DISARM| 0.020000| _DISARM| &lt;BR /&gt; 0.025575| _DISARM| 1785739155.516796| _DISARM| 1785739155.542371| _DISARM| 0.010000| _DISARM| | _ENDDISARM &lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;2 The SAS System &lt;BR /&gt;&lt;BR /&gt; real time 0.02 seconds&lt;BR /&gt; user cpu time 0.01 seconds&lt;BR /&gt; system cpu time 0.01 seconds&lt;BR /&gt; memory 764.15k&lt;BR /&gt; OS Memory 18848.00k&lt;BR /&gt; Timestamp 08/01/2016 11:39:15 PM&lt;BR /&gt; Step Count 6 Switch Count 92&lt;BR /&gt; Page Faults 0&lt;BR /&gt; Page Reclaims 308&lt;BR /&gt; Page Swaps 0&lt;BR /&gt; Voluntary Context Switches 335&lt;BR /&gt; Involuntary Context Switches 0&lt;BR /&gt; Block Input Operations 0&lt;BR /&gt; Block Output Operations 0&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;29 filename oscmd clear;&lt;BR /&gt;NOTE: Fileref OSCMD has been deassigned.&lt;BR /&gt;30 &lt;BR /&gt;31 GOPTIONS NOACCESSIBLE;&lt;BR /&gt;32 %LET _CLIENTTASKLABEL=;&lt;BR /&gt;33 %LET _CLIENTPROJECTPATH=;&lt;BR /&gt;34 %LET _CLIENTPROJECTNAME=;&lt;BR /&gt;35 %LET _SASPROGRAMFILE=;&lt;BR /&gt;36 &lt;BR /&gt;37 ;*';*";*/;quit;run;&lt;BR /&gt;38 ODS _ALL_ CLOSE;&lt;BR /&gt;39 &lt;BR /&gt;40 &lt;BR /&gt;41 QUIT; RUN;&lt;BR /&gt;42 &lt;BR /&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 06:53:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/X-command-from-SAS-Enterprise-Guide-7-1/m-p/288835#M19710</guid>
      <dc:creator>sasprofile</dc:creator>
      <dc:date>2016-08-02T06:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: X command from SAS Enterprise Guide 7.1</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/X-command-from-SAS-Enterprise-Guide-7-1/m-p/288837#M19711</link>
      <description>&lt;P&gt;&lt;SPAN&gt;KurtBremser&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sorry typo error &amp;nbsp;*so it means the X command in EG is working&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 06:56:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/X-command-from-SAS-Enterprise-Guide-7-1/m-p/288837#M19711</guid>
      <dc:creator>sasprofile</dc:creator>
      <dc:date>2016-08-02T06:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: X command from SAS Enterprise Guide 7.1</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/X-command-from-SAS-Enterprise-Guide-7-1/m-p/288841#M19713</link>
      <description>&lt;P&gt;The X command/statement does not retrieve any output back into the SAS system.&lt;/P&gt;
&lt;P&gt;So you won't get any information for&lt;/P&gt;
&lt;P&gt;x 'ls -l;&lt;/P&gt;
&lt;P&gt;x 'pwd';&lt;/P&gt;
&lt;P&gt;The next two commands&lt;/P&gt;
&lt;P&gt;x &amp;nbsp;'cd /home/xu84178';&lt;/P&gt;
&lt;P&gt;x 'ls -l&amp;nbsp; &amp;gt;&amp;nbsp; ls.txt&amp;nbsp; ' ;&lt;/P&gt;
&lt;P&gt;should create a list of files in (what I guess is) your home directory. Do a refresh on Files in the server list in EG to see if the file (ls.txt) is there.&lt;/P&gt;
&lt;P&gt;Note that a cd command in the X statement will change the CWD of the SAS process. Executing it with the filename pipe method won't do that.&lt;/P&gt;
&lt;P&gt;This indicates that SAS executes commands from X directly, while filename pipe uses a shell exit (therefore changes to the environment are lost when that sub-shell terminates)&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 07:16:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/X-command-from-SAS-Enterprise-Guide-7-1/m-p/288841#M19713</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-08-02T07:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: X command from SAS Enterprise Guide 7.1</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/X-command-from-SAS-Enterprise-Guide-7-1/m-p/649676#M36089</link>
      <description>I tried to run the example, but my code remains running and does not generate any results.&lt;BR /&gt;&lt;BR /&gt;I need run a .sh file from UNIX. The .sh file contains a code to download an online file. Can you help me?</description>
      <pubDate>Thu, 21 May 2020 18:52:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/X-command-from-SAS-Enterprise-Guide-7-1/m-p/649676#M36089</guid>
      <dc:creator>FelipeSch</dc:creator>
      <dc:date>2020-05-21T18:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: X command from SAS Enterprise Guide 7.1</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/X-command-from-SAS-Enterprise-Guide-7-1/m-p/650704#M36115</link>
      <description>&lt;P&gt;Please open a new thread with your question. Hijacking old threads is not useful, as you can see from the lack of any answers to your questions; old threads are near invisible to the crowd here.&lt;/P&gt;
&lt;P&gt;Please include there:&lt;/P&gt;
&lt;P&gt;the SAS code you run (use the "little running man" for this)&lt;/P&gt;
&lt;P&gt;the shell script code (use the &amp;lt;/&amp;gt; button)&lt;/P&gt;
&lt;P&gt;the log from the SAS code, if available (also use the &amp;lt;/&amp;gt; button)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 12:43:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/X-command-from-SAS-Enterprise-Guide-7-1/m-p/650704#M36115</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-05-26T12:43:48Z</dc:date>
    </item>
  </channel>
</rss>

