<?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 How to call dataset automatically without calling the lib ? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-call-dataset-automatically-without-calling-the-lib/m-p/724078#M224780</link>
    <description>&lt;P&gt;Hi SAS Users,&lt;/P&gt;
&lt;P&gt;I want to work efficiently by using SAS EG, and one function I am really into is the automatically suggestion about function and dataset.&lt;/P&gt;
&lt;P&gt;However, regarding dataset, they normally suggest that I need to type the library first then SAS EG will suggest me the dataset inside this library.&lt;/P&gt;
&lt;P&gt;I am wondering that is there any way when I type "&lt;STRONG&gt;data&lt;/STRONG&gt;" statement, SAS EG will suggest all the datasets that I can choose and "enter" quickly rather than I must type the lib (for example: WORK) first then get the dataset hint from SAS EG. It makes my dataset name looks longer and the lib name plays no role here.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="a.jpg" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55548i76FDDC0A34DAA937/image-size/large?v=v2&amp;amp;px=999" role="button" title="a.jpg" alt="a.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not lazy, but sometimes the library name is just redundant, and I want to optimize and simplify my coding progress as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warmest regards.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P/S: Even when I call a dataset in &lt;STRONG&gt;set&lt;/STRONG&gt; statement., I also need to call the library first and then SAS EG will suggest me the datasets inside. I am not greedy, just want to know if there is any way to shorten the coding progress.&lt;/P&gt;</description>
    <pubDate>Fri, 05 Mar 2021 22:47:35 GMT</pubDate>
    <dc:creator>Phil_NZ</dc:creator>
    <dc:date>2021-03-05T22:47:35Z</dc:date>
    <item>
      <title>How to call dataset automatically without calling the lib ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-call-dataset-automatically-without-calling-the-lib/m-p/724078#M224780</link>
      <description>&lt;P&gt;Hi SAS Users,&lt;/P&gt;
&lt;P&gt;I want to work efficiently by using SAS EG, and one function I am really into is the automatically suggestion about function and dataset.&lt;/P&gt;
&lt;P&gt;However, regarding dataset, they normally suggest that I need to type the library first then SAS EG will suggest me the dataset inside this library.&lt;/P&gt;
&lt;P&gt;I am wondering that is there any way when I type "&lt;STRONG&gt;data&lt;/STRONG&gt;" statement, SAS EG will suggest all the datasets that I can choose and "enter" quickly rather than I must type the lib (for example: WORK) first then get the dataset hint from SAS EG. It makes my dataset name looks longer and the lib name plays no role here.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="a.jpg" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55548i76FDDC0A34DAA937/image-size/large?v=v2&amp;amp;px=999" role="button" title="a.jpg" alt="a.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not lazy, but sometimes the library name is just redundant, and I want to optimize and simplify my coding progress as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warmest regards.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P/S: Even when I call a dataset in &lt;STRONG&gt;set&lt;/STRONG&gt; statement., I also need to call the library first and then SAS EG will suggest me the datasets inside. I am not greedy, just want to know if there is any way to shorten the coding progress.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 22:47:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-call-dataset-automatically-without-calling-the-lib/m-p/724078#M224780</guid>
      <dc:creator>Phil_NZ</dc:creator>
      <dc:date>2021-03-05T22:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to call dataset automatically without calling the lib ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-call-dataset-automatically-without-calling-the-lib/m-p/724090#M224789</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/212695"&gt;@Phil_NZ&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi SAS Users,&lt;/P&gt;
&lt;P&gt;I want to work efficiently by using SAS EG, and one function I am really into is the automatically suggestion about function and dataset.&lt;/P&gt;
&lt;P&gt;However, regarding dataset, they normally suggest that I need to type the library first then SAS EG will suggest me the dataset inside this library.&lt;/P&gt;
&lt;P&gt;I am wondering that is there any way when I type "&lt;STRONG&gt;data&lt;/STRONG&gt;" statement, SAS EG will suggest all the datasets that I can choose and "enter" quickly rather than I must type the lib (for example: WORK) first then get the dataset hint from SAS EG. It makes my dataset name looks longer and the lib name plays no role here.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="a.jpg" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55548i76FDDC0A34DAA937/image-size/large?v=v2&amp;amp;px=999" role="button" title="a.jpg" alt="a.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not lazy, but sometimes the library name is just redundant, and I want to optimize and simplify my coding progress as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warmest regards.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P/S: Even when I call a dataset in &lt;STRONG&gt;set&lt;/STRONG&gt; statement., I also need to call the library first and then SAS EG will suggest me the datasets inside. I am not greedy, just want to know if there is any way to shorten the coding progress.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The process is called "typing" if you are coding.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest that you run this code in your session:&lt;/P&gt;
&lt;PRE&gt;proc sql;
   select libname, memname
   from dictionary.tables
   ;
quit;&lt;/PRE&gt;
&lt;P&gt;That will list &lt;STRONG&gt;all&lt;/STRONG&gt; the data sets in all the libraries that would be presented if you had your wish for a "suggestion" based on just "data".&lt;/P&gt;
&lt;P&gt;I am guessing that you will get somewhere around 40+ just in the SASHELP library. If you have enough modules installed may be more. SAS Graph for instance will add a couple of map related libraries with a couple hundred data sets in each (one map for most countries in the world, often a second with major features like cities, some with subdivisions like states or counties; continents ).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My actual work installation has 15 permanent libraries and anywhere from 1 to 10 temporary libraries depending on what I am working on that day. That code listing data sets runs to 1000's of data sets. Some of temporary libraries are creating/modifying subsets of the permanent data sets and often share some of the same names. I really wouldn't want to just grab the first data set of the name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you routinely use one library a lot more than others I suggest naming it so&amp;nbsp; it appears first in the selection list.&lt;/P&gt;
&lt;P&gt;Or perhaps set a couple of editor abbreviations for commonly used libraries.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 23:23:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-call-dataset-automatically-without-calling-the-lib/m-p/724090#M224789</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-03-05T23:23:07Z</dc:date>
    </item>
  </channel>
</rss>

