<?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: SAS Dataset Options in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Dataset-Options/m-p/46356#M12349</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to all for you replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought that this was going to be simple, something that I overlooked.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A little background - the file in question is produced by a SQL that is run against a bunch of DB2 and VSAM tables on&amp;nbsp; z/OS mainframe and then downloaded to our server.&amp;nbsp; It has 450,00+ records and over 350 variables.&amp;nbsp; This is only one of about 50+ files that I deal with.&amp;nbsp; Since the files are so big I would rather not have to run a program to rebuild them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My real problem is ad-hoc requests for data when someone asks for all records with some specific value.&amp;nbsp; Since these people are not technical the request is "all cash transaction in US dollars".&amp;nbsp; So - i need to find the variables in the table that contain these fields and believe me, there is no naming standard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was hoping I could see the variables in alphabeic order (such as in PROC CONTENTS) with the data (so I can see "sample" data).&amp;nbsp; I could just scroll across and fiind the variable with the required data and then build a program to filter the data once I know which variables to use.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was just hoping there would be some way to re-organize the data in the table so the variables are in sequence, rather than in the order they were created (first referenced).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Aug 2011 12:49:37 GMT</pubDate>
    <dc:creator>OS2Rules</dc:creator>
    <dc:date>2011-08-11T12:49:37Z</dc:date>
    <item>
      <title>SAS Dataset Options</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Dataset-Options/m-p/46348#M12341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Quick question -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a data table with about a bajillion variables (I exagerate a bit)....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I like to use FSVIEW to see the content but I would like to see the variables in some sort of order (alphabetical?) in the FSVIEW display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to do this?&amp;nbsp; A simple easy way???&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>Wed, 10 Aug 2011 14:36:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Dataset-Options/m-p/46348#M12341</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2011-08-10T14:36:59Z</dc:date>
    </item>
    <item>
      <title>SAS Dataset Options</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Dataset-Options/m-p/46349#M12342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this easy enough?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;fsview&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; data=sashelp.class;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;id&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; age;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; height--weight _char_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2011 15:20:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Dataset-Options/m-p/46349#M12342</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2011-08-10T15:20:47Z</dc:date>
    </item>
    <item>
      <title>SAS Dataset Options</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Dataset-Options/m-p/46350#M12343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Of course you could always preface the call with a proc sql to create a macro variable.&amp;nbsp; e.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql noprint;&lt;/P&gt;&lt;P&gt;&amp;nbsp; select name into :vars&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; separated by " "&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from dictionary.columns&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where libname="SASHELP" and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; memname="CLASS"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; order by name&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc fsview data=sashelp.class;&lt;/P&gt;&lt;P&gt;&amp;nbsp; var &amp;amp;vars.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2011 15:29:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Dataset-Options/m-p/46350#M12343</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-08-10T15:29:54Z</dc:date>
    </item>
    <item>
      <title>SAS Dataset Options</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Dataset-Options/m-p/46351#M12344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data_null_:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It may be easy, but not exactly what I was looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the FSVIEW command in "interactive mode" on a Windoze box - so I just enter:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FSVIEW tablename&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on the command line to see the table contents. (I also don't know the names of the variable until after I view the table.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I was looking for was something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FSVIEW tablename &lt;EM&gt;option &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is like "double clicking" on the table name in the EXPLORER pane to get a VIEWTABLE (which also has the varibles out of order).&amp;nbsp; I have actually modified my regristy so that the doing this will give me a FSVIEW rather than the much hated VIEWTABLE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2011 15:30:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Dataset-Options/m-p/46351#M12344</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2011-08-10T15:30:46Z</dc:date>
    </item>
    <item>
      <title>SAS Dataset Options</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Dataset-Options/m-p/46352#M12345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The FSVIEW command does not support procedure options such as BROWSEONLY and NOADD. You must use the PROC FSVIEW statement rather than the FSVIEW command if you want to invoke the procedure with these options, or if you want to establish default procedure characteristics with the FORMAT, ID, INFORMAT, VAR, or WHERE statements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2011 15:37:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Dataset-Options/m-p/46352#M12345</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2011-08-10T15:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Dataset Options</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Dataset-Options/m-p/46353#M12346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Simple if you only want to re-arrange one or two variables. Once in the FSVIEW window click View, Arrange Variables, Move. Very tedious if you have lots of variables though.....which I guess is your point.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2011 22:50:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Dataset-Options/m-p/46353#M12346</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2011-08-10T22:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Dataset Options</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Dataset-Options/m-p/46354#M12347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Data_null, a number of others, and I wrote an SGF paper a couple of years ago that showed how to automate tasks and either assign them to keywords or function keys (see, &lt;A class="external free" href="http://support.sas.com/resources/papers/proceedings10/046-2010.pdf" rel="nofollow" style="color: #3366bb; background-color: initial; padding-right: 12px; background-position: no-repeat no-repeat;" title="http://support.sas.com/resources/papers/proceedings10/046-2010.pdf"&gt;http://support.sas.com/resources/papers/proceedings10/046-2010.pdf&lt;/A&gt; ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While the topic wasn't FSView, you could do the same thing with the kind of sql+proc fsView code I proposed earlier in this thread.&amp;nbsp; I.e., you could assign a function key that would allow you to select the desired file, obtain a macro variable of ordered variables, and apply the variable to a proc fsView run.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2011 23:43:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Dataset-Options/m-p/46354#M12347</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-08-10T23:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Dataset Options</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Dataset-Options/m-p/46355#M12348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried the show command?&lt;/P&gt;&lt;P&gt;First drop variables, then show them&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also define a formula. Type:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; fsview sashelp.class work.t&lt;/P&gt;&lt;P&gt;&amp;gt; drop age&lt;/P&gt;&lt;P&gt;&amp;gt; end&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;gt; fsview sashelp.class work.t&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the formula work.t.class.formula is used and age doesn't show.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS Good avatar!&amp;nbsp; &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 00:12:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Dataset-Options/m-p/46355#M12348</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2011-08-11T00:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Dataset Options</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Dataset-Options/m-p/46356#M12349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to all for you replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought that this was going to be simple, something that I overlooked.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A little background - the file in question is produced by a SQL that is run against a bunch of DB2 and VSAM tables on&amp;nbsp; z/OS mainframe and then downloaded to our server.&amp;nbsp; It has 450,00+ records and over 350 variables.&amp;nbsp; This is only one of about 50+ files that I deal with.&amp;nbsp; Since the files are so big I would rather not have to run a program to rebuild them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My real problem is ad-hoc requests for data when someone asks for all records with some specific value.&amp;nbsp; Since these people are not technical the request is "all cash transaction in US dollars".&amp;nbsp; So - i need to find the variables in the table that contain these fields and believe me, there is no naming standard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was hoping I could see the variables in alphabeic order (such as in PROC CONTENTS) with the data (so I can see "sample" data).&amp;nbsp; I could just scroll across and fiind the variable with the required data and then build a program to filter the data once I know which variables to use.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was just hoping there would be some way to re-organize the data in the table so the variables are in sequence, rather than in the order they were created (first referenced).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 12:49:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Dataset-Options/m-p/46356#M12349</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2011-08-11T12:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Dataset Options</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Dataset-Options/m-p/46357#M12350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As data_null pointed out, you can't do it via call fsview from the command prompt.&amp;nbsp; However, as I mentioned in my post, you can easily have your cake and be able to eat it as well along with simplifying the keystrokes needed to accomplish the task.&amp;nbsp; The suggested method doesn't rebuild the files but, rather, only accesses the dictionary view of the metadata.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 12:58:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Dataset-Options/m-p/46357#M12350</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-08-11T12:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Dataset Options</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Dataset-Options/m-p/46358#M12351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Art:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks - I will look into it (I'm reading your SGF paper).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was really hoping there would be a "zero programming" solution ie: a parm or option to reorder the table variable list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See you at TASS next month.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 13:05:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Dataset-Options/m-p/46358#M12351</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2011-08-11T13:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Dataset Options</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Dataset-Options/m-p/46359#M12352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since I am going to see you at TASS next month, I must know you, but your name doesn't appear on this forum.&amp;nbsp; If you don't mind, please let me know who you are.&amp;nbsp; You can send it to me, privately, at art at 297 dot rogers dot com.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I created what I was talking about.&amp;nbsp; One creates it by clicking somewhere in the SAS explorer window,&lt;/P&gt;&lt;P&gt; and then clicking on tools-&amp;gt;options-&amp;gt;explorer, &lt;/P&gt;&lt;P&gt;then clicking on members-&amp;gt;table-&amp;gt;edit&lt;/P&gt;&lt;P&gt;then clicking on add&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then, on the top line (labeled action) I named it FSView&lt;/P&gt;&lt;P&gt;then, on the bottom line (labeled action command), I entered the following long string:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gsubmit "proc sql noprint; select name into :vars&amp;nbsp; separated by ' ' from dictionary.columns&amp;nbsp; where libname=upcase('%8b') and&amp;nbsp; memname=upcase('%32b')&amp;nbsp; order by name;quit; proc fsview data=%8b.%32b;&amp;nbsp; var &amp;amp;vars.;run;";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then I clicked on OK-&amp;gt;OK-&amp;gt;OK to exit the menu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once I did that, I can find any file in the SAS explorer window, right click on it, click on FSView and, behold, FSView appears with all of the variables sorted alphabetically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would that serve your purpose?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 19:40:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Dataset-Options/m-p/46359#M12352</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-08-11T19:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Dataset Options</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Dataset-Options/m-p/46360#M12353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know you dislike viewtable, but it does an alphabetic reorder in 5 clicks.&lt;/P&gt;&lt;P&gt;Data &amp;gt; Hide/Unhide &amp;gt; All left &amp;gt; All right &amp;gt; OK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 21:38:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Dataset-Options/m-p/46360#M12353</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2011-08-11T21:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Dataset Options</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Dataset-Options/m-p/46361#M12354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the solution I recommended.&amp;nbsp; I don't know if the OP will like it, but it does the requested task in ONE click.&amp;nbsp; It can also easily be generalized so that virtually any proc can be turned into a one-click solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2011 00:02:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Dataset-Options/m-p/46361#M12354</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-08-12T00:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Dataset Options</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Dataset-Options/m-p/46362#M12355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just tried your code - it is very close, but I have both lower-case and upper-case variable names.&amp;nbsp; It sorts the lower-case first and then the upper-case.&amp;nbsp; This is better than the seeming random list I have now, but ...&amp;nbsp; call me a perfectionist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just FYI - I learned to &lt;SPAN style="text-decoration: line-through;"&gt;hate&lt;/SPAN&gt;&amp;nbsp; dislike VIEWTABLE in SAS V7 (yes, I had one) where the VIEWTABLE would take 45 seconds (!!!) to open any table no matter whether it had 1 row or 1 million.&amp;nbsp; Changed the default to FSVIEW and never looked back.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2011 13:01:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Dataset-Options/m-p/46362#M12355</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2011-08-12T13:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Dataset Options</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Dataset-Options/m-p/46363#M12356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure if there is a way of specifying linguistic as the sort order for proc sql but, given what you want, couldn't you just change the sql order statement to: order by upcase(name)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2011 13:57:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Dataset-Options/m-p/46363#M12356</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-08-12T13:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Dataset Options</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Dataset-Options/m-p/46364#M12357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The OP informed me, offline, that the statement didn't work on his/her system.&amp;nbsp; As such, I suggested another statement that didn't use dictionary.tables.&amp;nbsp; I still don't know if that worked for the OP, but thought I'd post it here in case anyone else was trying out the method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I should admit, up front, that any SAS instructors I've ever had would cringe at my code.&amp;nbsp; Since one can only include 255 characters in an abbreviation, I had to remove as many characters as possible that would still allow the code to run as designed.&amp;nbsp; In short, please, PLEASE, DON'T start writing your own code as shown below.&amp;nbsp; The following is one long continuous line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gsubmit "dat x;d='%8b'||'.'||'%32b';leng n$32;do s=open(d,'I')whil(s!0);do i=1to attrn(s,'NVARS');n=upcase(varname(s,i));outp;en;s=close(s);en;pro sql nopri;sele n into:n separa by' 'fro x order n;qui;pro delete dat=x;ru;pro fsvie dat=%8b.%32b;va &amp;amp;n;ru;";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course, setting the above code as an action command will produce a number of warnings in the log but, as it was only intended to bring up fsview, I thought that might still be acceptable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2011 22:56:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Dataset-Options/m-p/46364#M12357</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-08-15T22:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Dataset Options</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Dataset-Options/m-p/46365#M12358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Art:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know why you are so worried - I writ my code like tht all the tim.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been in this business about 30 years, man and boy, and I have yet to meet anyone who can touch-type!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I sent you a private reply with the results of the code you provided (for the record - it didn't work quite as expected).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for all the help - above and beyond.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2011 12:13:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Dataset-Options/m-p/46365#M12358</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2011-08-16T12:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Dataset Options</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Dataset-Options/m-p/46366#M12359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With a LOT of help from Randy Herbison (I cross posted the question on SAS-L), a solution was found that solved the original problem.&amp;nbsp; It used the same method as the one described in the original reference I posted (i.e., &lt;A class="jive-link-external-small" href="http://support.sas.com/resources/papers/proceedings10/046-2010.pdf" style="font-size: 13px; outline-style: none; color: #0e66ba;"&gt;http://support.sas.com/resources/papers/proceedings10/046-2010.pdf&lt;/A&gt; ), but gets around the 255 character limitation by gsubmit-ing the code with a %include statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus, the main code was saved to a text file with a .SAS extension.&amp;nbsp; I called mine c:\viewfs.sas :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*** c:\viewfs.sas ***;&lt;/P&gt;&lt;P&gt;data _forview;&lt;/P&gt;&lt;P&gt; length name $32;&lt;/P&gt;&lt;P&gt; do dsid=open("&amp;amp;dsn",'I') while(dsid ne 0);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; do i=1 to attrn(dsid,'NVARS');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name=upcase(varname(dsid,i));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; dsid=close(dsid);&lt;/P&gt;&lt;P&gt; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql noprint;&lt;/P&gt;&lt;P&gt; select name into :names&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; separated by ' '&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from _forview&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; order by name&lt;/P&gt;&lt;P&gt; ;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc delete data=_forview;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc fsview data=&amp;amp;dsn;&lt;/P&gt;&lt;P&gt; var &amp;amp;names.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That code, in turn, was %include-ed via the following gsubmit as the action command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gsubmit "%%let dsn=%8b.%32b; %%include 'c:\viewfs.sas';"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYI, the %%let dsn=%8b.%32b; at the beginning of that command is simply creating a macro variable called dsn which will contain the libname and memname of the SAS datafile that one right clicks on from the SAS Explorer window.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2011 12:59:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Dataset-Options/m-p/46366#M12359</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-08-17T12:59:08Z</dc:date>
    </item>
  </channel>
</rss>

