<?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 execute XCMD using SAS Enterprise Guide? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-execute-XCMD-using-SAS-Enterprise-Guide/m-p/671697#M201744</link>
    <description>Yes, Sir.&lt;BR /&gt;Basically importing a spreadsheet with the usernames.</description>
    <pubDate>Thu, 23 Jul 2020 08:57:10 GMT</pubDate>
    <dc:creator>Akshay1002</dc:creator>
    <dc:date>2020-07-23T08:57:10Z</dc:date>
    <item>
      <title>How to execute XCMD using SAS Enterprise Guide?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-execute-XCMD-using-SAS-Enterprise-Guide/m-p/671673#M201733</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a dataset with 100 records which are basically the LAN_IDs of users. I want to know what all AD groups they're in. I basically run,&amp;nbsp;&lt;STRONG&gt;id lan_id&lt;/STRONG&gt;&amp;nbsp;from the Linux command line. I hate doing that for all the 100 users.&lt;/P&gt;&lt;P&gt;How do I succeed using XCMD programmatically from Enterprise Guide?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please suggest!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TIA,&lt;BR /&gt;Akshay.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 06:17:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-execute-XCMD-using-SAS-Enterprise-Guide/m-p/671673#M201733</guid>
      <dc:creator>Akshay1002</dc:creator>
      <dc:date>2020-07-23T06:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute XCMD using SAS Enterprise Guide?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-execute-XCMD-using-SAS-Enterprise-Guide/m-p/671689#M201739</link>
      <description>&lt;P&gt;The option xcmd must be enabled on the workspace-server you are using. If is is enabled, you can use filename with pipe to execute a command an process the result using a data-step.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 07:42:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-execute-XCMD-using-SAS-Enterprise-Guide/m-p/671689#M201739</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-07-23T07:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute XCMD using SAS Enterprise Guide?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-execute-XCMD-using-SAS-Enterprise-Guide/m-p/671691#M201740</link>
      <description>&lt;P&gt;The XCMD option can only be set as an option when you start SAS so it can't be done in EG. Your SAS Administrator can set it via SAS Management Console or a SAS config file.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 08:22:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-execute-XCMD-using-SAS-Enterprise-Guide/m-p/671691#M201740</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-07-23T08:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute XCMD using SAS Enterprise Guide?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-execute-XCMD-using-SAS-Enterprise-Guide/m-p/671692#M201741</link>
      <description>Yes, I've XCMD enabled and able to successfully execute the below followed by a data step.&lt;BR /&gt;filename dirlist pipe "id lan_id";&lt;BR /&gt;&lt;BR /&gt;How to do it for 100 users?&lt;BR /&gt;Can you please help me with the code?</description>
      <pubDate>Thu, 23 Jul 2020 08:31:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-execute-XCMD-using-SAS-Enterprise-Guide/m-p/671692#M201741</guid>
      <dc:creator>Akshay1002</dc:creator>
      <dc:date>2020-07-23T08:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute XCMD using SAS Enterprise Guide?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-execute-XCMD-using-SAS-Enterprise-Guide/m-p/671693#M201742</link>
      <description>&lt;P&gt;Do you have a dataset with the usernames?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 08:36:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-execute-XCMD-using-SAS-Enterprise-Guide/m-p/671693#M201742</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-07-23T08:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute XCMD using SAS Enterprise Guide?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-execute-XCMD-using-SAS-Enterprise-Guide/m-p/671697#M201744</link>
      <description>Yes, Sir.&lt;BR /&gt;Basically importing a spreadsheet with the usernames.</description>
      <pubDate>Thu, 23 Jul 2020 08:57:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-execute-XCMD-using-SAS-Enterprise-Guide/m-p/671697#M201744</guid>
      <dc:creator>Akshay1002</dc:creator>
      <dc:date>2020-07-23T08:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute XCMD using SAS Enterprise Guide?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-execute-XCMD-using-SAS-Enterprise-Guide/m-p/671728#M201745</link>
      <description>&lt;P&gt;Then you can use the "magic dynamic pipe":&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data usernames;
input name $8.;
datalines;
lan_id
;

data userdata;
set usernames;
length pipevar $20;
pipevar = "id " !! name;
infile dummy pipe filevar=pipevar end=done;
do until (done);
  input uidstring :$20. gid_string :$20. group_string :$500.;
  output;
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This algorithm is part of a presentation planned for SASGF 2021 in Las Vegas.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 09:22:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-execute-XCMD-using-SAS-Enterprise-Guide/m-p/671728#M201745</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-07-23T09:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute XCMD using SAS Enterprise Guide?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-execute-XCMD-using-SAS-Enterprise-Guide/m-p/672014#M201879</link>
      <description>&lt;P&gt;You're A W E S O M E!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It worked. Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 04:32:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-execute-XCMD-using-SAS-Enterprise-Guide/m-p/672014#M201879</guid>
      <dc:creator>Akshay1002</dc:creator>
      <dc:date>2020-07-24T04:32:09Z</dc:date>
    </item>
  </channel>
</rss>

