BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
DanielC
Calcite | Level 5

Hi, I'm new and I have a problem when I try to filter the metadata to find the dimension of a cube using the statement:

  numObj =
METADATA_GETNOBJ("omsobj: Dimension? (@ Name contains 'Company')", 1, uriDim);

I can not find any subtype of the object (Cube, Hierarchy, ...). I've managed to supertype values (Repository).

I also tested with the following expression and neither is found:


"omsobj: Dimension/A5G6J93P * [(@ Name contains 'Company')]"

if I use the uri:

     numObj = METADATA_GETNOBJ("omsobj:Dimension/A5G6J93P.AU00000U",1, uriDim);

There are no problems finding the object. But when I add a filter stops working

I'm lost with the syntax What am I doing wrong?

PD: Excuse me, but my English is very bad.

1 ACCEPTED SOLUTION

Accepted Solutions
ChendhilKumar
Calcite | Level 5

Hi,

You may want to try the following line:

numobj=metadata_getnobj("omsobj:Dimension?@Name contains 'Company'",1,uriDim);

Regards,

Chendhil

View solution in original post

2 REPLIES 2
ChendhilKumar
Calcite | Level 5

Hi,

You may want to try the following line:

numobj=metadata_getnobj("omsobj:Dimension?@Name contains 'Company'",1,uriDim);

Regards,

Chendhil

DanielC
Calcite | Level 5

The problem was the repository options in the connection. I put the id of the repository and must be referenced with the name.

Thanks.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1064 views
  • 0 likes
  • 2 in conversation