<?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: Find library path in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Find-library-path/m-p/910836#M359166</link>
    <description>&lt;P&gt;I run this code&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;create table DICTIONARY.LIBNAMES
  (
   libname char(8) label='Library Name',
   engine char(8) label='Engine Name',
   path char(1024) label='Pathname',
   level num label='Library Concatenation Level',
   fileformat char(8) label='Default File Format',
   readonly char(3) label='Read-only?',
   sequential char(3) label='Sequential?',
   sysdesc char(1024) label='System Information Description',
   sysname char(1024) label='System Information Name',
   sysvalue char(1024) label='System Information Value',
   temp char(3) label='Temp Access?'
  );
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result in Log is&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;1                                                          The SAS System                              08:36 Monday, January 8, 2024

1          ;*';*";*/;quit;run;
2          OPTIONS PAGENO=MIN;
3          %LET _CLIENTTASKLABEL='Program (4)';
4          %LET _CLIENTPROCESSFLOWNAME='Process Flow';
5          %LET _CLIENTPROJECTPATH='';
6          %LET _CLIENTPROJECTPATHHOST='';
7          %LET _CLIENTPROJECTNAME='';
8          %LET _SASPROGRAMFILE='';
9          %LET _SASPROGRAMFILEHOST='';
10         
11         ODS _ALL_ CLOSE;
12         OPTIONS DEV=PNG;
13         GOPTIONS XPIXELS=0 YPIXELS=0;
14         FILENAME EGSR TEMP;
15         ODS tagsets.sasreport13(ID=EGSR) FILE=EGSR
16             STYLE=HTMLBlue
17             STYLESHEET=(URL="file:///C:/Program%20Files/SASHome/SASEnterpriseGuide/7.1/Styles/HTMLBlue.css")
18             NOGTITLE
19             NOGFOOTNOTE
20             GPATH=&amp;amp;sasworklocation
21             ENCODING=UTF8
22             options(rolap="on")
23         ;
NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR
24         
25         GOPTIONS ACCESSIBLE;
26         
27         create table DICTIONARY.LIBNAMES
28           (
29            libname char(8) label='Library Name',
30            engine char(8) label='Engine Name',
31            path char(1024) label='Pathname',
32            level num label='Library Concatenation Level',
33            fileformat char(8) label='Default File Format',
34            readonly char(3) label='Read-only?',
35            sequential char(3) label='Sequential?',
36            sysdesc char(1024) label='System Information Description',
37            sysname char(1024) label='System Information Name',
38            sysvalue char(1024) label='System Information Value',
39            temp char(3) label='Temp Access?'
40           );
41         quit;
42         
43         GOPTIONS NOACCESSIBLE;
44         %LET _CLIENTTASKLABEL=;
45         %LET _CLIENTPROCESSFLOWNAME=;
46         %LET _CLIENTPROJECTPATH=;
47         %LET _CLIENTPROJECTPATHHOST=;
48         %LET _CLIENTPROJECTNAME=;
49         %LET _SASPROGRAMFILE=;
50         %LET _SASPROGRAMFILEHOST=;
51         
52         ;*';*";*/;quit;run;
53         ODS _ALL_ CLOSE;
54         
55         
56         QUIT; RUN;
57         
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;What can we learn from it?&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jan 2024 11:07:50 GMT</pubDate>
    <dc:creator>Ronein</dc:creator>
    <dc:date>2024-01-08T11:07:50Z</dc:date>
    <item>
      <title>Find library path</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Find-library-path/m-p/910797#M359149</link>
      <description>Hello&lt;BR /&gt;In SAS I see a library called TeraData where I can see TeraData tables.&lt;BR /&gt;This teradata library was created by the admin person.&lt;BR /&gt;I would like to know this library path but the admin person is not available. &lt;BR /&gt;I see the library in:&lt;BR /&gt;Servers&lt;BR /&gt;LabRet&lt;BR /&gt;TeraData&lt;BR /&gt;&lt;BR /&gt;Let's say that I want to know the path of this TeraData library.&lt;BR /&gt;What is the way to check it?&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Jan 2024 07:39:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Find-library-path/m-p/910797#M359149</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2024-01-08T07:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Find library path</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Find-library-path/m-p/910803#M359152</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I've understood you correctly, the documentation has a page&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lepg/p0lfdljtaz0ekpn10qc1xo0hkw7w.htm" target="_blank" rel="noopener"&gt;Examples: View Information about a Library&lt;/A&gt;&amp;nbsp;. One such example from there is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname myfiles 'c:\example';
libname myfiles list;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;which gives the path and other information:&lt;/P&gt;
&lt;PRE&gt;NOTE: Libref=   MYFILES
      Scope=    DMS Process
      Engine=   V9
      Physical Name= c:\example
      Filename= c:\example
      Owner Name= userid
      File Size=              8KB
      File Size (bytes)= 8192&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could try something similar, such as:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname teradata list;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; kind regards,&lt;/P&gt;
&lt;P&gt;Amir.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 08:37:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Find-library-path/m-p/910803#M359152</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2024-01-08T08:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: Find library path</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Find-library-path/m-p/910805#M359154</link>
      <description>&lt;P&gt;Another option is to query dictionary.libnames:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;82   proc sql;
83   describe table dictionary.libnames;
NOTE: SQL table DICTIONARY.LIBNAMES was created like:
create table DICTIONARY.LIBNAMES
  (
   libname char(8) label='Library Name',
   engine char(8) label='Engine Name',
   path char(1024) label='Pathname',
   level num label='Library Concatenation Level',
   fileformat char(8) label='Default File Format',
   readonly char(3) label='Read-only?',
   sequential char(3) label='Sequential?',
   sysdesc char(1024) label='System Information Description',
   sysname char(1024) label='System Information Name',
   sysvalue char(1024) label='System Information Value',
   temp char(3) label='Temp Access?'
  );
84   quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Jan 2024 08:54:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Find-library-path/m-p/910805#M359154</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2024-01-08T08:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: Find library path</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Find-library-path/m-p/910816#M359160</link>
      <description>&lt;P&gt;Here is the Log output when I run&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname teradata list;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Can anyone tell me what is the libaname that I should run that reflect the libname to TeraData?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then I want to see how to add&amp;nbsp;dmstemp=yes???&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;PRE&gt;1                                                          The SAS System                              08:36 Monday, January 8, 2024

1          ;*';*";*/;quit;run;
2          OPTIONS PAGENO=MIN;
3          %LET _CLIENTTASKLABEL='Program (4)';
4          %LET _CLIENTPROCESSFLOWNAME='Process Flow';
5          %LET _CLIENTPROJECTPATH='';
6          %LET _CLIENTPROJECTPATHHOST='';
7          %LET _CLIENTPROJECTNAME='';
8          %LET _SASPROGRAMFILE='';
9          %LET _SASPROGRAMFILEHOST='';
10         
11         ODS _ALL_ CLOSE;
12         OPTIONS DEV=PNG;
13         GOPTIONS XPIXELS=0 YPIXELS=0;
14         FILENAME EGSR TEMP;
15         ODS tagsets.sasreport13(ID=EGSR) FILE=EGSR
16             STYLE=HTMLBlue
17             STYLESHEET=(URL="file:///C:/Program%20Files/SASHome/SASEnterpriseGuide/7.1/Styles/HTMLBlue.css")
18             NOGTITLE
19             NOGFOOTNOTE
20             GPATH=&amp;amp;sasworklocation
21             ENCODING=UTF8
22             options(rolap="on")
23         ;
NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR
24         
25         GOPTIONS ACCESSIBLE;
26         
27         Libname Teradata list;
NOTE: Libref=   TERADATA 
      Scope=    Object Server
      Engine=   TERADATA
      Physical Name= dwprod
      Schema/User= udkdw02
28         
29         
30         GOPTIONS NOACCESSIBLE;
31         %LET _CLIENTTASKLABEL=;
32         %LET _CLIENTPROCESSFLOWNAME=;
33         %LET _CLIENTPROJECTPATH=;
34         %LET _CLIENTPROJECTPATHHOST=;
35         %LET _CLIENTPROJECTNAME=;
36         %LET _SASPROGRAMFILE=;
37         %LET _SASPROGRAMFILEHOST=;
38         
39         ;*';*";*/;quit;run;
40         ODS _ALL_ CLOSE;
41         
42         
43         QUIT; RUN;
44         
&lt;/PRE&gt;
&lt;/LI-SPOILER&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 09:19:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Find-library-path/m-p/910816#M359160</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2024-01-08T09:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Find library path</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Find-library-path/m-p/910823#M359165</link>
      <description>&lt;P&gt;This libname is either defined in an autoexec or more likely in SAS Metadata. You should have read access to both and though could work out what you need.&lt;/P&gt;
&lt;P&gt;libname list or the SAS dictionary tables unfortunately don't surface 100% of the options and though it's always a bit hard to determine the details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But.... is this the same Teradata server and schema that you already use in &lt;A href="https://communities.sas.com/t5/SAS-Programming/Create-TeraData-VOLATILE-TABLE-from-SAS/m-p/910794#M359147" target="_self"&gt;this question of yours&lt;/A&gt;? If so then you've got already all the info you need to create a libname statement.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1704706510469.png" style="width: 880px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/92374i0B7FAB7D0C9EF0E8/image-dimensions/880x55?v=v2" width="880" height="55" role="button" title="Patrick_0-1704706510469.png" alt="Patrick_0-1704706510469.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;libname mytera teradata
  server=dwprod schema=DWP_vall authdomain=TeraDataAuth CONNECTION=GLOBAL 
  dbmstemp=yes
  ;
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 09:36:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Find-library-path/m-p/910823#M359165</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2024-01-08T09:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Find library path</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Find-library-path/m-p/910836#M359166</link>
      <description>&lt;P&gt;I run this code&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;create table DICTIONARY.LIBNAMES
  (
   libname char(8) label='Library Name',
   engine char(8) label='Engine Name',
   path char(1024) label='Pathname',
   level num label='Library Concatenation Level',
   fileformat char(8) label='Default File Format',
   readonly char(3) label='Read-only?',
   sequential char(3) label='Sequential?',
   sysdesc char(1024) label='System Information Description',
   sysname char(1024) label='System Information Name',
   sysvalue char(1024) label='System Information Value',
   temp char(3) label='Temp Access?'
  );
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result in Log is&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;1                                                          The SAS System                              08:36 Monday, January 8, 2024

1          ;*';*";*/;quit;run;
2          OPTIONS PAGENO=MIN;
3          %LET _CLIENTTASKLABEL='Program (4)';
4          %LET _CLIENTPROCESSFLOWNAME='Process Flow';
5          %LET _CLIENTPROJECTPATH='';
6          %LET _CLIENTPROJECTPATHHOST='';
7          %LET _CLIENTPROJECTNAME='';
8          %LET _SASPROGRAMFILE='';
9          %LET _SASPROGRAMFILEHOST='';
10         
11         ODS _ALL_ CLOSE;
12         OPTIONS DEV=PNG;
13         GOPTIONS XPIXELS=0 YPIXELS=0;
14         FILENAME EGSR TEMP;
15         ODS tagsets.sasreport13(ID=EGSR) FILE=EGSR
16             STYLE=HTMLBlue
17             STYLESHEET=(URL="file:///C:/Program%20Files/SASHome/SASEnterpriseGuide/7.1/Styles/HTMLBlue.css")
18             NOGTITLE
19             NOGFOOTNOTE
20             GPATH=&amp;amp;sasworklocation
21             ENCODING=UTF8
22             options(rolap="on")
23         ;
NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR
24         
25         GOPTIONS ACCESSIBLE;
26         
27         create table DICTIONARY.LIBNAMES
28           (
29            libname char(8) label='Library Name',
30            engine char(8) label='Engine Name',
31            path char(1024) label='Pathname',
32            level num label='Library Concatenation Level',
33            fileformat char(8) label='Default File Format',
34            readonly char(3) label='Read-only?',
35            sequential char(3) label='Sequential?',
36            sysdesc char(1024) label='System Information Description',
37            sysname char(1024) label='System Information Name',
38            sysvalue char(1024) label='System Information Value',
39            temp char(3) label='Temp Access?'
40           );
41         quit;
42         
43         GOPTIONS NOACCESSIBLE;
44         %LET _CLIENTTASKLABEL=;
45         %LET _CLIENTPROCESSFLOWNAME=;
46         %LET _CLIENTPROJECTPATH=;
47         %LET _CLIENTPROJECTPATHHOST=;
48         %LET _CLIENTPROJECTNAME=;
49         %LET _SASPROGRAMFILE=;
50         %LET _SASPROGRAMFILEHOST=;
51         
52         ;*';*";*/;quit;run;
53         ODS _ALL_ CLOSE;
54         
55         
56         QUIT; RUN;
57         
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;What can we learn from it?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 11:07:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Find-library-path/m-p/910836#M359166</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2024-01-08T11:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Find library path</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Find-library-path/m-p/910837#M359167</link>
      <description>&lt;P&gt;I see that the only information that you took from information in Log&amp;nbsp; &amp;nbsp;(Of code&amp;nbsp;Libname Teradata list;) is&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Physical Name= dwprod&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 11:18:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Find-library-path/m-p/910837#M359167</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2024-01-08T11:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: Find library path</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Find-library-path/m-p/910838#M359168</link>
      <description>&lt;P&gt;This was posted as a&amp;nbsp;&lt;STRONG&gt;DESCRIPTION&lt;/STRONG&gt;. You do not run it ever, you look at it to see how the&amp;nbsp;&lt;U&gt;dynamic&lt;/U&gt; DICTIONARY table is defined.&lt;/P&gt;
&lt;P&gt;Query DICTIONARY.LIBNAMES in PROC SQL (use a WHERE clause for libname, name in uppercase!) to get the metadata of the library you want information for.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 11:23:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Find-library-path/m-p/910838#M359168</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2024-01-08T11:23:52Z</dc:date>
    </item>
  </channel>
</rss>

