<?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: Displaying the Columns of a dataset in alphabetical order in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Displaying-the-Columns-of-a-dataset-in-alphabetical-order/m-p/357281#M2471</link>
    <description>&lt;P&gt;Well this option would be a great enhancement to the work area of SAS Studio.&amp;nbsp; If I open a dataset, it shows me the Columns and all the rows of the dataset.&amp;nbsp; In the View Columns section if there was something next to the word 'Columns' that said 'Alpha' (for alphabetize) that would be a great help.&amp;nbsp; I did notice that when I click on the Table Properties icon and then click on the Columns tab, I can click the 'Column Name' header and it will alphabetize the columns.&amp;nbsp; That is what&amp;nbsp;I need on the 'Select all' section under Columns.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;</description>
    <pubDate>Tue, 09 May 2017 19:17:40 GMT</pubDate>
    <dc:creator>SASHunter</dc:creator>
    <dc:date>2017-05-09T19:17:40Z</dc:date>
    <item>
      <title>Displaying the Columns of a dataset in alphabetical order</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Displaying-the-Columns-of-a-dataset-in-alphabetical-order/m-p/357172#M2464</link>
      <description>&lt;P&gt;I am new to SAS Studio (less than a month now),&amp;nbsp;&amp;nbsp; What I want to do while viewing a dataset in SAS Studio is what I can do currently in the regular Display Manager.&amp;nbsp;&amp;nbsp; That is, to open a dataset and the click on 'Data' and then click 'Hide/Unhidle' - send all the variables over to the hidden box and I can view all the variables in &lt;U&gt;alphabetical order&lt;/U&gt;.&amp;nbsp; I can now scan down the list to view the one(s) I want and put them onto the Displayed side.&amp;nbsp; This helps so much because we can have hundreds of variables in a dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to do this same thing in SAS Studio?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks -&amp;nbsp; Nancy&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 13:22:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Displaying-the-Columns-of-a-dataset-in-alphabetical-order/m-p/357172#M2464</guid>
      <dc:creator>SASHunter</dc:creator>
      <dc:date>2017-05-09T13:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying the Columns of a dataset in alphabetical order</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Displaying-the-Columns-of-a-dataset-in-alphabetical-order/m-p/357249#M2465</link>
      <description>&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Can you provide more details on how you are able to see the columns in alphabetical order in the ViewTable Hide/Unhide window? &amp;nbsp;I see them listed by their&amp;nbsp;the logical position in&amp;nbsp;the SAS data set.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;For example, here is what I see for SASHELP.CLASS:&lt;/FONT&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/8784i9C5C137C680A47DC/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="HideUnhide.png" title="HideUnhide.png" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Vince DelGobbo&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;SAS R&amp;amp;D&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 17:15:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Displaying-the-Columns-of-a-dataset-in-alphabetical-order/m-p/357249#M2465</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2017-05-09T17:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying the Columns of a dataset in alphabetical order</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Displaying-the-Columns-of-a-dataset-in-alphabetical-order/m-p/357252#M2466</link>
      <description>&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;I think I see how you got the alphabetical list; move all columns to hidden and then they are displayed alphabetically:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/8785iB6079274F369DDEF/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="HideUnhide2.png" title="HideUnhide2.png" /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Vince DelGobbo&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;SAS R&amp;amp;D&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 17:24:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Displaying-the-Columns-of-a-dataset-in-alphabetical-order/m-p/357252#M2466</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2017-05-09T17:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying the Columns of a dataset in alphabetical order</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Displaying-the-Columns-of-a-dataset-in-alphabetical-order/m-p/357253#M2467</link>
      <description>&lt;P&gt;If you click the double (left) arrow, they all go over to the Hidden side and are in alphabetical order now.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now i can scan down the list and put back what I want to be displayed.&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, 09 May 2017 17:26:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Displaying-the-Columns-of-a-dataset-in-alphabetical-order/m-p/357253#M2467</guid>
      <dc:creator>SASHunter</dc:creator>
      <dc:date>2017-05-09T17:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying the Columns of a dataset in alphabetical order</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Displaying-the-Columns-of-a-dataset-in-alphabetical-order/m-p/357254#M2468</link>
      <description>&lt;P&gt;Yes - Is there any way to do that in SAS Studio in&amp;nbsp;the Columns area,&amp;nbsp;when you have dataset displayed?&amp;nbsp; Myself and others could really use this feature.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 17:30:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Displaying-the-Columns-of-a-dataset-in-alphabetical-order/m-p/357254#M2468</guid>
      <dc:creator>SASHunter</dc:creator>
      <dc:date>2017-05-09T17:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying the Columns of a dataset in alphabetical order</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Displaying-the-Columns-of-a-dataset-in-alphabetical-order/m-p/357259#M2469</link>
      <description>&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;I do not see an easy way to do this but I am checking into it. &amp;nbsp;You can drag-and-drop columns in both the navigation tree and the grid, but that is only useful if you don't have too many columns.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Vince DelGobbo&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;SAS R&amp;amp;D&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 17:38:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Displaying-the-Columns-of-a-dataset-in-alphabetical-order/m-p/357259#M2469</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2017-05-09T17:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying the Columns of a dataset in alphabetical order</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Displaying-the-Columns-of-a-dataset-in-alphabetical-order/m-p/357281#M2471</link>
      <description>&lt;P&gt;Well this option would be a great enhancement to the work area of SAS Studio.&amp;nbsp; If I open a dataset, it shows me the Columns and all the rows of the dataset.&amp;nbsp; In the View Columns section if there was something next to the word 'Columns' that said 'Alpha' (for alphabetize) that would be a great help.&amp;nbsp; I did notice that when I click on the Table Properties icon and then click on the Columns tab, I can click the 'Column Name' header and it will alphabetize the columns.&amp;nbsp; That is what&amp;nbsp;I need on the 'Select all' section under Columns.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 19:17:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Displaying-the-Columns-of-a-dataset-in-alphabetical-order/m-p/357281#M2471</guid>
      <dc:creator>SASHunter</dc:creator>
      <dc:date>2017-05-09T19:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying the Columns of a dataset in alphabetical order</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Displaying-the-Columns-of-a-dataset-in-alphabetical-order/m-p/357283#M2472</link>
      <description>&lt;P&gt;The ability to do this is on the roadmap for a future release of SAS Studio. Attached&amp;nbsp;is a sneak peek at the preliminary design.&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13803i1C89CB81C484F57B/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="SASStudio_ColumnLayoutDesign.png" title="SASStudio_ColumnLayoutDesign.png" /&gt;</description>
      <pubDate>Tue, 09 May 2017 19:25:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Displaying-the-Columns-of-a-dataset-in-alphabetical-order/m-p/357283#M2472</guid>
      <dc:creator>samdupont</dc:creator>
      <dc:date>2017-05-09T19:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying the Columns of a dataset in alphabetical order</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Displaying-the-Columns-of-a-dataset-in-alphabetical-order/m-p/357285#M2473</link>
      <description>Awesome!</description>
      <pubDate>Tue, 09 May 2017 19:31:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Displaying-the-Columns-of-a-dataset-in-alphabetical-order/m-p/357285#M2473</guid>
      <dc:creator>SASHunter</dc:creator>
      <dc:date>2017-05-09T19:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying the Columns of a dataset in alphabetical order</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Displaying-the-Columns-of-a-dataset-in-alphabetical-order/m-p/357323#M2474</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13635"&gt;@Vince_SAS&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;I think I see how you got the alphabetical list; move all columns to hidden and then they are displayed alphabetically:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;&lt;IMG title="HideUnhide2.png" alt="HideUnhide2.png" src="https://communities.sas.com/t5/image/serverpage/image-id/8785iB6079274F369DDEF/image-size/original?v=1.0&amp;amp;px=-1" border="0" /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Vince DelGobbo&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;SAS R&amp;amp;D&lt;/FONT&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I would swear I made a variable selection tool like this with SAS/AF back around 1995 only my users had a need to select varaibles from multiple data sets as well...&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 22:13:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Displaying-the-Columns-of-a-dataset-in-alphabetical-order/m-p/357323#M2474</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-05-09T22:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying the Columns of a dataset in alphabetical order</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Displaying-the-Columns-of-a-dataset-in-alphabetical-order/m-p/358432#M2499</link>
      <description>&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;This macro may be helpful to you. &amp;nbsp;It creates a view of the data with the columns alphabetically arranged:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro SortColumns(data=sashelp.class);

%local COLUMNS
       LIBRARY
       TABLE;

%*TODO: Add code to enforce valid 2-level name for DATA;

data _null_;
call symputx('LIBRARY', scan("&amp;amp;DATA", 1, '.'));
call symputx('TABLE',   scan("&amp;amp;DATA", 2, '.'));
run;

proc sql noprint;
  select name into: COLUMNS separated by ', '
  from sashelp.vcolumn
  where (libname eq upcase("&amp;amp;LIBRARY") and 
         memname eq upcase("&amp;amp;TABLE")   and 
         memtype eq 'DATA')
  order by upcase(name);
  
  create view work.&amp;amp;TABLE as
  select &amp;amp;COLUMNS
  from &amp;amp;DATA;
quit;

%mend SortColumns;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;When you run it from SAS Studio the output is opened in the grid view:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%SORTCOLUMNS(data=sashelp.classfit)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;I tried to get this code working within a SAS Studio Task, but limitations in the task model prevented the data from being automatically opened.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Vince DelGobbo&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;SAS R&amp;amp;D&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 13 May 2017 12:58:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Displaying-the-Columns-of-a-dataset-in-alphabetical-order/m-p/358432#M2499</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2017-05-13T12:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying the Columns of a dataset in alphabetical order</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Displaying-the-Columns-of-a-dataset-in-alphabetical-order/m-p/359096#M2518</link>
      <description>&lt;P&gt;Vince,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much.&amp;nbsp; That works perfectly for what we need.&amp;nbsp; We have saved this macro to our drive and can now alphabetize any dataset in SAS Studio.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But for a&amp;nbsp;future release of SAS Studio, if there is that&amp;nbsp;option in the Column layout to just click a button to alphabetize the columns so the search is easier -&amp;nbsp;that would be great.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS is the best!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Nancy&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 15:27:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Displaying-the-Columns-of-a-dataset-in-alphabetical-order/m-p/359096#M2518</guid>
      <dc:creator>SASHunter</dc:creator>
      <dc:date>2017-05-16T15:27:01Z</dc:date>
    </item>
  </channel>
</rss>

