Problem Note 42872: The METADATA_PATHOBJ function returns the ID of the parent folder instead of the ID of the requested folder object
When you use the METADATA_PATHOBJ function to request the Type and ID attributes of a folder object, the value that is assigned to the ID variable does not contain the ID of the requested object. Instead, it contains the ID of the parent folder. This problem occurs when the name of the folder that you request consists only of a single character.
For example, if you submit a statement similar to the following in a DATA step, the value of the ID variable contains the ID for the TestFolder folder, and not the ID for the x folder.
rc=metadata_pathobj("", "/Shared Data/TestFolder/x", "Folder", type, id);
To circumvent this problem, specify the object type as part of the path value instead of as a separate argument to the function as shown in this example:
rc=metadata_pathobj("", "/Shared Data/TestFolder/x(Folder)", "", type, id);
Operating System and Release Information
SAS System | SAS Metadata Server | z/OS | 9.2 TS2M3 | 9.3 TS1M0 |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 TS2M3 | 9.3 TS1M0 |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 TS2M3 | 9.3 TS1M0 |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 TS2M3 | 9.3 TS1M0 |
Microsoft Windows XP 64-bit Edition | 9.2 TS2M3 | 9.3 TS1M0 |
Microsoft® Windows® for x64 | 9.2 TS2M3 | 9.3 TS1M0 |
Microsoft Windows Server 2003 Datacenter Edition | 9.2 TS2M3 | 9.3 TS1M0 |
Microsoft Windows Server 2003 Enterprise Edition | 9.2 TS2M3 | 9.3 TS1M0 |
Microsoft Windows Server 2003 Standard Edition | 9.2 TS2M3 | 9.3 TS1M0 |
Microsoft Windows Server 2003 for x64 | 9.2 TS2M3 | 9.3 TS1M0 |
Microsoft Windows Server 2008 | 9.2 TS2M3 | 9.3 TS1M0 |
Microsoft Windows Server 2008 for x64 | 9.2 TS2M3 | 9.3 TS1M0 |
Microsoft Windows XP Professional | 9.2 TS2M3 | 9.3 TS1M0 |
Windows 7 Enterprise 32 bit | 9.2 TS2M3 | 9.3 TS1M0 |
Windows 7 Enterprise x64 | 9.2 TS2M3 | 9.3 TS1M0 |
Windows 7 Home Premium 32 bit | 9.2 TS2M3 | 9.3 TS1M0 |
Windows 7 Home Premium x64 | 9.2 TS2M3 | 9.3 TS1M0 |
Windows 7 Professional 32 bit | 9.2 TS2M3 | 9.3 TS1M0 |
Windows 7 Professional x64 | 9.2 TS2M3 | 9.3 TS1M0 |
Windows 7 Ultimate 32 bit | 9.2 TS2M3 | 9.3 TS1M0 |
Windows 7 Ultimate x64 | 9.2 TS2M3 | 9.3 TS1M0 |
Windows Vista | 9.2 TS2M3 | 9.3 TS1M0 |
Windows Vista for x64 | 9.2 TS2M3 | 9.3 TS1M0 |
64-bit Enabled AIX | 9.2 TS2M3 | 9.3 TS1M0 |
64-bit Enabled HP-UX | 9.2 TS2M3 | 9.3 TS1M0 |
64-bit Enabled Solaris | 9.2 TS2M3 | 9.3 TS1M0 |
HP-UX IPF | 9.2 TS2M3 | 9.3 TS1M0 |
Linux | 9.2 TS2M3 | 9.3 TS1M0 |
Linux for x64 | 9.2 TS2M3 | 9.3 TS1M0 |
Solaris for x64 | 9.2 TS2M3 | 9.3 TS1M0 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
The METADATA_PATHOBJ function returns the parent folder id if the name of the specified folder consists of only a single letter.
Type: | Problem Note |
Priority: | alert |
Topic: | Data Management ==> Access ==> Client/Server Data Management ==> Data Sources ==> Metadata
|
Date Modified: | 2011-04-13 13:03:16 |
Date Created: | 2011-04-06 10:17:13 |