<?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: Copy Variable Names to Clipboard in EG in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-Variable-Names-to-Clipboard-in-EG/m-p/232012#M16842</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/17001"&gt;@csc﻿&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And...here's the task! Glad that I was able to demo it for you in Las Vegas at the Analytics 2015 conference. &amp;nbsp;It's events like this that can make things happen!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can &lt;A href="http://support.sas.com/documentation/onlinedoc/guide/customtasks/samples/SASCopyColumns.zip" target="_self"&gt;download the task from the SAS support site as a ZIP file&lt;/A&gt;. &amp;nbsp;The instructions for installation and use are in the README.txt in the ZIP file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you add the task, you'll see three new entries under &lt;STRONG&gt;Tools-&amp;gt;Add-In-&amp;gt;Data Utilities&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/665i0F3C30C134337CE7/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="copycols.png" title="copycols.png" /&gt;&lt;/P&gt;
&lt;P&gt;Each one copies the column names (variable names) from the active SAS data set in a slightly different format: CSV on one line, CSV on multiple lines, and just a straight list with names one-per-line, no separator.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Enjoy!&lt;/P&gt;
&lt;P&gt;Chris&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Oct 2015 14:24:48 GMT</pubDate>
    <dc:creator>ChrisHemedinger</dc:creator>
    <dc:date>2015-10-28T14:24:48Z</dc:date>
    <item>
      <title>Copy Variable Names to Clipboard in EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-Variable-Names-to-Clipboard-in-EG/m-p/142245#M11359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have used the following procedure (from an old SAS proceedings 046-2010) to copy variable names to the clipboard in SAS V9.2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on the Explorer window.&lt;/P&gt;&lt;P&gt;Tools/Options/Explorer/Members/Table/Edit&lt;/P&gt;&lt;P&gt;Add new entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Copy Variable &amp;amp;Names to Clipboard&lt;/P&gt;&lt;P&gt;gsubmit "filename _cb clipbrd;data _null_;file _cb;dsn='%8b'||'.'||'%32b';length N $32;do dsid=open(dsn,'I') while(dsid ne 0);do i=1 to attrn(dsid,'NVARS');N=', '||varname(dsid,i);put N;en;dsid=close(dsid);end;run;filename _cb clear;";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to do the same in EG 4.3?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know I can click on properties, columns and click copy to Clipboard, but I get a whole lot more than just the column names separated by commas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jun 2014 01:06:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-Variable-Names-to-Clipboard-in-EG/m-p/142245#M11359</guid>
      <dc:creator>csc</dc:creator>
      <dc:date>2014-06-14T01:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Variable Names to Clipboard in EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-Variable-Names-to-Clipboard-in-EG/m-p/142246#M11360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are many ways to get the variable name from a SAS data set (in EG), but the example you provide doesn't for obvious reasons: the clipboard is on the client (where EG is executing), but the SAS code is executing on the server, and are not client aware.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To help with an alternative solution, you can help by telling when, and how you wish to use the variable lists.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jun 2014 15:37:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-Variable-Names-to-Clipboard-in-EG/m-p/142246#M11360</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2014-06-14T15:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Variable Names to Clipboard in EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-Variable-Names-to-Clipboard-in-EG/m-p/142247#M11361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like you need a custom task in Enterprise Guide.&amp;nbsp; Perhaps &lt;A _jive_internal="true" href="https://communities.sas.com/mailto:Chris@SAS/" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0e66ba; background-color: #ffffff;"&gt;Chris@SAS&lt;/A&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; can show use how?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Jun 2014 13:56:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-Variable-Names-to-Clipboard-in-EG/m-p/142247#M11361</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-06-15T13:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Variable Names to Clipboard in EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-Variable-Names-to-Clipboard-in-EG/m-p/142248#M11362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Often I am using a file that I did not create.&amp;nbsp; I then need a variety of fields from that file in subsequent code.&amp;nbsp; The PC SAS code above allows me to right click on the file in Explorer and choose "Copy Variable names to Clipboard", which will give me the following when I paste:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;, variable1&lt;/P&gt;&lt;P&gt;, variable2&lt;BR /&gt;, variable3&lt;/P&gt;&lt;P&gt;, etc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Being a long time PC SAS user and new to EG, I thought for sure there was a way to replicate this shortcut.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A custom task sounds interesting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Jun 2014 20:12:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-Variable-Names-to-Clipboard-in-EG/m-p/142248#M11362</guid>
      <dc:creator>csc</dc:creator>
      <dc:date>2014-06-15T20:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Variable Names to Clipboard in EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-Variable-Names-to-Clipboard-in-EG/m-p/231636#M16826</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/17001"&gt;@csc﻿&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Great to see you at &lt;A href="http://www.sas.com/en_us/events/analytics-conference/analytics-conference-2015.html" target="_self"&gt;Analytics 2015&lt;/A&gt;. &amp;nbsp;As we discussed (and I'm sharing here for the group), you might be able to use &lt;A href="http://blogs.sas.com/content/sasdummy/2013/01/21/turn-your-data-set-into-a-data-step-program/" target="_self"&gt;this data set-&amp;gt;DATA step custom task&lt;/A&gt; to accomplish this. &amp;nbsp;Not sure that it's quite as easy as what you want, but it's a start.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise, it's a good idea for a specific custom task. &amp;nbsp;I'll add that to my (growing) list of useful ideas.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2015 14:43:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-Variable-Names-to-Clipboard-in-EG/m-p/231636#M16826</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2015-10-26T14:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Variable Names to Clipboard in EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-Variable-Names-to-Clipboard-in-EG/m-p/232012#M16842</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/17001"&gt;@csc﻿&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And...here's the task! Glad that I was able to demo it for you in Las Vegas at the Analytics 2015 conference. &amp;nbsp;It's events like this that can make things happen!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can &lt;A href="http://support.sas.com/documentation/onlinedoc/guide/customtasks/samples/SASCopyColumns.zip" target="_self"&gt;download the task from the SAS support site as a ZIP file&lt;/A&gt;. &amp;nbsp;The instructions for installation and use are in the README.txt in the ZIP file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you add the task, you'll see three new entries under &lt;STRONG&gt;Tools-&amp;gt;Add-In-&amp;gt;Data Utilities&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/665i0F3C30C134337CE7/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="copycols.png" title="copycols.png" /&gt;&lt;/P&gt;
&lt;P&gt;Each one copies the column names (variable names) from the active SAS data set in a slightly different format: CSV on one line, CSV on multiple lines, and just a straight list with names one-per-line, no separator.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Enjoy!&lt;/P&gt;
&lt;P&gt;Chris&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2015 14:24:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-Variable-Names-to-Clipboard-in-EG/m-p/232012#M16842</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2015-10-28T14:24:48Z</dc:date>
    </item>
  </channel>
</rss>

