DATA Step, Macro, Functions and more

Problem with URI filter

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 5
Accepted Solution

Problem with URI filter

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("omsobjSmiley Very Happyimension/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.


Accepted Solutions
Solution
‎10-05-2011 06:47 AM
Occasional Contributor
Posts: 7

Problem with URI filter

Hi,

You may want to try the following line:

numobj=metadata_getnobj("omsobjSmiley Very Happyimension?@Name contains 'Company'",1,uriDim);

Regards,

Chendhil

View solution in original post


All Replies
Solution
‎10-05-2011 06:47 AM
Occasional Contributor
Posts: 7

Problem with URI filter

Hi,

You may want to try the following line:

numobj=metadata_getnobj("omsobjSmiley Very Happyimension?@Name contains 'Company'",1,uriDim);

Regards,

Chendhil

Occasional Contributor
Posts: 5

Problem with URI filter

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

Thanks.

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

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