Skip to Content

To get the datastore owner name in the output

Hi All,

I have a dataflow in my job where the data is extracted from 8 different JDE markets as shown in attachment.

The values starting with 'U' inside the brackets are the library names/Table owner. I have a requirement where the target data has a new output column- 'Library' and the data corresponding the that market should populate the value of the library that it is coming from.

For instance, the data corresponding to 'Italy' should populate the 'Library' field as -'UR064PBD'.

Could someone please suggest what function should be called t this column in order to populate the fields automatically.

Thanks in advance.

Sindhura Thota

DF.PNG (42.3 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Jul 21, 2016 at 01:10 PM

    Hi Sindhura,

    Try db_onwer() function.

    Syntax:- db_owner('datastore_name','Alias_name')


    The name of the alias that you created in the datastore, then mapped to the real owner name when you created a datastore configuration.Example

    $real_owner = db_owner('sales_ds', 'sales_person');

    or else

    You already know the table_owner name for each data store. you simply hardcode that owner name in each query transform 🤪


    Ravi kiran.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.