COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Transformer => Topic started by: Vishnu Priya on 27 Jun 2019 06:16:05 AM

Title: Identify the respsective .mdl and .mdc file
Post by: Vishnu Priya on 27 Jun 2019 06:16:05 AM
Hi,

I am new to Cognos Transformer and working on some stuffs with it. I found that there is a .mdc (cube file) and a .mdl(metadata file) for each Powerplay transformer cube. But the problem is the file names for the same cube can be different. That is, for a transformer cube A there can be .mdl file with a different name. So I'm not able to map the cubes with their corresponding .mdl files.

Is there any way I can find them and map them respectively? Please correct me if I am wrong somewhere.
Title: Re: Identify the respsective .mdl and .mdc file
Post by: MFGF on 27 Jun 2019 07:31:41 AM
Quote from: Vishnu Priya on 27 Jun 2019 06:16:05 AM
Hi,

I am new to Cognos Transformer and working on some stuffs with it. I found that there is a .mdc (cube file) and a .mdl(metadata file) for each Powerplay transformer cube. But the problem is the file names for the same cube can be different. That is, for a transformer cube A there can be .mdl file with a different name. So I'm not able to map the cubes with their corresponding .mdl files.

Is there any way I can find them and map them respectively? Please correct me if I am wrong somewhere.

Hi,

When you open an mdl file in Transformer, you can see the cubes it generates down in the bottom right corner in the PowerCubes area - a model may actually have multiple cubes generated from it. You can go into the properties of each of the cube definitions in that dialog and see the name and path of the mdc cube file it will generate on the Output tab.

Cheers!

MF.
Title: Re: Identify the respsective .mdl and .mdc file
Post by: Vishnu Priya on 01 Jul 2019 01:18:41 AM
Thanks for the immediate reply MFGF. That was useful. Is there any way to know the Cube Name (that generates in the Output tab in the Properties of the cube in Transformer) from the .mdl file directly without opening the file in Transformer.
Title: Re: Identify the respsective .mdl and .mdc file
Post by: MFGF on 01 Jul 2019 08:04:33 AM
Quote from: Vishnu Priya on 01 Jul 2019 01:18:41 AM
Thanks for the immediate reply MFGF. That was useful. Is there any way to know the Cube Name (that generates in the Output tab in the Properties of the cube in Transformer) from the .mdl file directly without opening the file in Transformer.

Hi,

No, not one I'm aware of. As I mentioned above, a single mdl can be used to generate multiple cubes with different names, too. It isn't necessarily a 1:1 relationship between a model and a cube.

Cheers!

MF.
Title: Re: Identify the respsective .mdl and .mdc file
Post by: Vishnu Priya on 02 Jul 2019 12:12:38 AM
Hi,

Thank you for the info. That was really a good point to keep in mind in future working
Title: Re: Identify the respsective .mdl and .mdc file
Post by: czg on 02 Jul 2019 09:01:22 AM
Open the MDL file in a text editor and search for MdcFile to find the names of the MDC files that it creates.
Title: Re: Identify the respsective .mdl and .mdc file
Post by: Vishnu Priya on 03 Jul 2019 01:13:29 AM
Thank you so much @czg. This is what I was looking into. Thank you once again for the answer.   :D