I've tried looking around in this forum and online to my best before posting this new topic. I Could not find any guidance. Please my only hope now is any of you all assisting me.
Cube A (Master cube) stores detailed demographic details of members by Account, Model, Type and Time dimensions. Cube B (cube stores the choices of Account, Model, Type and Time made by the users through a front-end). The number of dimensions and its structure is not the same in both the cubes. Account dimension in Cube A has Group Number as leaf level whereas in Cube B the Account numbers are the elements. Similarly, Model in Cube A has further levels as leaf whereas in Cube B its just the Model as elements.
The requirement is to output the details from cube A for only those Model, Type and Time chosen by users stored in Cube B for an account.
I plan to Asciioutput from Cube A during the cube load process. The idea is to get the 'Account' Number from Cube B (CellGetS) and compare it with Account in Cube A for every record using IF condition within a While loop. If matched, the code will compare the 'Model' from Cube B with Cube A and similarly the 'Type' will be matched. Once these three IFs match, the Asciioutput will save the details in the required txt format in a location for only the matched Models, Type and Accounts.
The problem is when I CellGetS the Account Number from Cube B and test to see what number it has fetched by Asciioutputting the Account number in Cube A, it is returning blank strings. If the same account number is Asciioutputted from Cube B, it shows correct number. I dont understand what mistake I'm making that it is fetching blank string from Cube B.
Without the CellGetS getting the account number from Cube B, the IF condition is not matching and hence no output is being generated.
The code written in the Cube A is -
Code: Select all
CubeA_AcctNum = CellGetS('CubeA',PYM,vProd_Level3_Cd,RISK_TYPE2_CD,Acct_MemProf,Act_Grp,'Acct_num');
CubeB_AcctNum = CellGetS('CubeB',PYM,Model,Acct_Num,'Account Number');
Asciioutput('E:\test.txt', CubeB_AcctNum);
Thanks