<?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: Problem with proc metalib in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-proc-metalib/m-p/52313#M522</link>
    <description>There could be an issue with the connection to the metadata server that metalib uses from its own sas session.  Couple of things to try:&lt;BR /&gt;
&lt;BR /&gt;
1.  Make sure the SCHEMA name matches exactly the schema in the database including the appropriate case in the preassigned library&lt;BR /&gt;
2.  Turn off the "enable optional metadata macros" in DI Studio tools/options/code generation.  &lt;BR /&gt;
3.  Open a code editor window and attempt the same call to metalib and make sure it works from your session.</description>
    <pubDate>Mon, 25 Apr 2011 18:32:02 GMT</pubDate>
    <dc:creator>nar_sas</dc:creator>
    <dc:date>2011-04-25T18:32:02Z</dc:date>
    <item>
      <title>Problem with proc metalib</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-proc-metalib/m-p/52310#M519</link>
      <description>Dear all,&lt;BR /&gt;
&lt;BR /&gt;
I am facing issues with updating metadata via DI Studio 4.21 M3.&lt;BR /&gt;
&lt;BR /&gt;
When selecting the corresponding option for a DB2 table the log says:&lt;BR /&gt;
&lt;BR /&gt;
[...]&lt;BR /&gt;
&lt;BR /&gt;
proc metalib;&lt;BR /&gt;
&lt;BR /&gt;
omr (libid="A900000F" repid="A5XBOHFR");&lt;BR /&gt;
report(type = summary);&lt;BR /&gt;
update_rule = (noadd);&lt;BR /&gt;
&lt;BR /&gt;
select (A5XBOHFR.AB0000QY);&lt;BR /&gt;
&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
SYMBOLGEN: Macro variable DMDATASRC resolves to acpme&lt;BR /&gt;
SYMBOLGEN: Some characters in the above value which were subject to macro quoting have been unquoted for printing.&lt;BR /&gt;
ERROR: CLI error trying to establish connection: [IBM][CLI Driver] SQL30082N Security processing failed with reason "24" &lt;BR /&gt;
("USERNAME AND/OR PASSWORD INVALID"). SQLSTATE=08001 &lt;BR /&gt;
&lt;BR /&gt;
[...]&lt;BR /&gt;
&lt;BR /&gt;
The DB2 connection works fine in all jobs with the same user. SELECT rights are granted. &lt;BR /&gt;
&lt;BR /&gt;
It seems the statement does not use the correct credentials. The DB2 lib is preassigned.&lt;BR /&gt;
&lt;BR /&gt;
Any idea on this one?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Thomas</description>
      <pubDate>Mon, 18 Apr 2011 13:24:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-proc-metalib/m-p/52310#M519</guid>
      <dc:creator>thomash123</dc:creator>
      <dc:date>2011-04-18T13:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with proc metalib</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-proc-metalib/m-p/52311#M520</link>
      <description>*push*&lt;BR /&gt;
&lt;BR /&gt;
Is there a way to update metadata for dedicated tables via the mgmt console?

Message was edited by: thomash123</description>
      <pubDate>Thu, 21 Apr 2011 07:06:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-proc-metalib/m-p/52311#M520</guid>
      <dc:creator>thomash123</dc:creator>
      <dc:date>2011-04-21T07:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with proc metalib</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-proc-metalib/m-p/52312#M521</link>
      <description>removed by poster</description>
      <pubDate>Sun, 24 Apr 2011 06:10:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-proc-metalib/m-p/52312#M521</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2011-04-24T06:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with proc metalib</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-proc-metalib/m-p/52313#M522</link>
      <description>There could be an issue with the connection to the metadata server that metalib uses from its own sas session.  Couple of things to try:&lt;BR /&gt;
&lt;BR /&gt;
1.  Make sure the SCHEMA name matches exactly the schema in the database including the appropriate case in the preassigned library&lt;BR /&gt;
2.  Turn off the "enable optional metadata macros" in DI Studio tools/options/code generation.  &lt;BR /&gt;
3.  Open a code editor window and attempt the same call to metalib and make sure it works from your session.</description>
      <pubDate>Mon, 25 Apr 2011 18:32:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-proc-metalib/m-p/52313#M522</guid>
      <dc:creator>nar_sas</dc:creator>
      <dc:date>2011-04-25T18:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with proc metalib</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-proc-metalib/m-p/52314#M523</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
didn't help, but in the meantime we found out, that proc metalib does not resolve pre-assigned macro variables for the DB user name.&lt;BR /&gt;
&lt;BR /&gt;
So the statement it generates looks like:&lt;BR /&gt;
&lt;BR /&gt;
1               proc metalib tl=2;&lt;BR /&gt;
2          &lt;BR /&gt;
3                               omr (libid="A900000F"      repid="A5XBOHFR");&lt;BR /&gt;
4                               report(type = summary);&lt;BR /&gt;
5                               update_rule = (noadd);&lt;BR /&gt;
6          &lt;BR /&gt;
7                               select (A5XBOHFR.AB0000RH);&lt;BR /&gt;
8          &lt;BR /&gt;
9                            run;&lt;BR /&gt;
&lt;BR /&gt;
(MSCMLB) initenvs: Library is preassigned&lt;BR /&gt;
(MSCMLB) query_connect:db connect options: Datasrc=&amp;amp;DMDatasrc USER='&amp;amp;DBUser' PASSWORD='{SAS002}abcdef' &lt;BR /&gt;
SYMBOLGEN:  Macro variable DMDATASRC resolves to xyzabc&lt;BR /&gt;
&lt;BR /&gt;
You can see, that the &amp;amp;DBUser is - in opposite to the rest of the parameters not resolved as it is set in ' '. This must have changed since 9.2?&lt;BR /&gt;
&lt;BR /&gt;
So using a clear text user in the preassigned library should do the trick at this point.&lt;BR /&gt;
&lt;BR /&gt;
Full of surprises this SAS is... &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
Thomas</description>
      <pubDate>Thu, 28 Apr 2011 12:17:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-proc-metalib/m-p/52314#M523</guid>
      <dc:creator>thomash123</dc:creator>
      <dc:date>2011-04-28T12:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with proc metalib</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-proc-metalib/m-p/52315#M524</link>
      <description>I did check with the developer, and there is some thought that there hasnt been any code changes in the user name resolution since 9.1.3SP4 so this problem has been there for a while.  There is a TS track logged on the issue, and we will investigate a fix for a future release.</description>
      <pubDate>Thu, 05 May 2011 21:11:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-proc-metalib/m-p/52315#M524</guid>
      <dc:creator>nar_sas</dc:creator>
      <dc:date>2011-05-05T21:11:33Z</dc:date>
    </item>
  </channel>
</rss>

