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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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