Skip to content

Commit

Permalink
cube.data updates
Browse files Browse the repository at this point in the history
  • Loading branch information
lotsaram committed Aug 7, 2019
1 parent 2c8be33 commit ccf7f5a
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 19 deletions.
4 changes: 2 additions & 2 deletions main/}bedrock.cube.data.clear.pro
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
586,
585,
564,
565,"dN@IaZD=a^IsbQ2SFgeFDCPbbZ\owByUEZ@F;X6`O6Yxoq\E\S7khkXXbz0TVT>OY?Io<k>^oDpDaSXV9=D?5A9=<B@HfQ2W1;^YSsxxSnphq3MdEO1rXpiuSml`5vnRa<NVmXWcQY[;9voWzWa0`KR6P4OnpBZnys8eYvkFs1HITzm;CZlLxUgzgVumKK_y;DTDZqet"
565,"w=<_S`7YVxuGv8DedYeD\mKaSpxkO?OxOPUgixl\>8>7nIod=2eWNFMfg?[@6CuwVj@hxp2td^TxF]6ez>1=C;[=5JXB5<PJg^=OM?rrQZ0ifnG0E4OlJSQuf;IimmKfPCB4dBh?xfsnSY2AjP3<7k8wK2g`^v\?Lm7;kvF;M\@Wo]hhZYW=^s0xUj:40sDRf<W<sg<i"
559,1
928,0
593,
Expand Down Expand Up @@ -138,7 +138,7 @@ cThisProcName = GetProcessName();
cUserName = TM1User();
cMsgErrorLevel = 'ERROR';
cMsgErrorContent= 'Process:%cThisProcName% ErrorMsg:%sMessage%';
cLogInfo = 'Process:%cThisProcName% run with parameters pCube:%pCube%, pView:%pView%, pFilter:%pFilter%, pFilterParallel:%pFilterParallel%, pParallelThreads:%pParallelThreads%, pDimDelim:%pDimDelim%, pEleStartDelim:%pEleStartDelim%, pEleDelim:%pEleDelim%, pCubeLogging:%pCubeLogging%, pTemp:%pTemp%.' ;
cLogInfo = 'Process:%cThisProcName% run with parameters pCube:%pCube%, pView:%pView%, pFilter:%pFilter%, pFilterParallel:%pFilterParallel%, pParallelThreads:%pParallelThreads%, pDimDelim:%pDimDelim%, pEleStartDelim:%pEleStartDelim%, pEleDelim:%pEleDelim%, pCubeLogging:%pCubeLogging%, pTemp:%pTemp%, pSandbox:%pSandbox%';
cTimeStamp = TimSt( Now, '\Y\m\d\h\i\s' );
cRandomInt = NumberToString( INT( RAND( ) * 1000 ));
cDefaultView = Expand( '%cThisProcName%_%cTimeStamp%_%cRandomInt%' );
Expand Down
32 changes: 19 additions & 13 deletions main/}bedrock.cube.data.copy.pro
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
586,"zzSYS 50 Dim Cube"
585,"zzSYS 50 Dim Cube"
564,
565,"pj7f8U<uF3Qc6qIQab=ZqoPODqYTNmsx5t8^\g;0P7:ChhvLVByU\YDEDmJxl[@[67iwPCMi7udPG@8_YwPuZu<1AD;3XsHC^bBj\f5z2euH;j8zx[hI`wfCB5[@QDi5w<`0<9Kem2[e[Q3VgI;w`lEa6U^HybPYle6hx71USHdJ>6xC<aR1YxWYW_R1Qcp5ffLO8?Zp"
565,"lxw1CUmy2UEJad^Otncvx\hYKwnQMgsXvdoWcFRkpJxY_7cvV8QqSk>7B?oqjuOSbRdPJ<YdkIF7lro4Klww@kg2aG@a9_TiWEg54z?qlfa2uDu\p1x5os7OnPUJkPB0j2w3W:iLv`8>q<0X>x:Jx]`dt3<iTOtP>3h6pk9UgBqX37c0ouLQp5VMUr`Wg<rNejsTWx_l"
559,1
928,0
593,
Expand All @@ -25,7 +25,7 @@
569,0
592,0
599,1000
560,21
560,22
pLogOutput
pCube
pSrcView
Expand All @@ -39,6 +39,7 @@ pDimDelim
pEleStartDelim
pEleDelim
pFactor
pSuppressConsol
pSuppressRules
pCumulate
pZeroTarget
Expand All @@ -47,7 +48,7 @@ pTemp
pCubeLogging
pSandbox
pThreadMode
561,21
561,22
1
2
2
Expand All @@ -67,9 +68,10 @@ pThreadMode
1
1
1
1
2
1
590,21
590,22
pLogOutput,0
pCube,""
pSrcView,""
Expand All @@ -83,6 +85,7 @@ pDimDelim,"&"
pEleStartDelim,"¦"
pEleDelim,"+"
pFactor,1
pSuppressConsol,1
pSuppressRules,1
pCumulate,0
pZeroTarget,1
Expand All @@ -91,7 +94,7 @@ pTemp,1
pCubeLogging,0
pSandbox,""
pThreadMode,0
637,21
637,22
pLogOutput,"Optional: write parameters and action summary to server message log (Boolean True = 1)"
pCube,"REQUIRED: Cube"
pSrcView,"OPTIONAL: Temporary view name for source"
Expand All @@ -105,6 +108,7 @@ pDimDelim,"REQUIRED: Delimiter for start of Dimension/Element set (default valu
pEleStartDelim,"REQUIRED: Delimiter for start of element list (default value if blank = '¦')"
pEleDelim,"REQUIRED: Delimiter between elements (default value if blank = '+')"
pFactor,"OPTIONAL: Multiply source value by factor (1 keeps the value as is). To modify existing values make the target element the same as the source with pZeroTarget = 0"
pSuppressConsol,"OPTIONAL: Suppress Consolidated Cells (Skip = 1)"
pSuppressRules,"OPTIONAL: Suppress Rules (Skip = 1)"
pCumulate,"OPTIONAL: 1 = Add source to existing value in target (if zero out target = 0 False). 0 = Replace target with source."
pZeroTarget,"OPTIONAL: Zero out Target Element PRIOR to Copy? (Boolean 1=True)"
Expand Down Expand Up @@ -426,7 +430,7 @@ VarType=32 ColType=827
VarType=32 ColType=827
VarType=33 ColType=827
603,0
572,795
572,797
#Region CallThisProcess
# A snippet of code provided as an example how to call this process should the developer be working on a system without access to an editor with auto-complete.
If( 1 = 0 );
Expand All @@ -435,7 +439,7 @@ If( 1 = 0 );
'pFilterParallel', '', 'pParallelThreads', 0,
'pEleMapping', '', 'pMappingDelim', '->',
'pDimDelim', '&', 'pEleStartDelim', '¦', 'pEleDelim', '+',
'pFactor', 1, 'pSuppressRules', 1, 'pCumulate', 0,
'pFactor', 1, 'pSuppressConsol', 1, 'pSuppressRules', 1, 'pCumulate', 0,
'pZeroTarget', 1, 'pZeroSource', 0,
'pTemp', 1, 'pCubeLogging', 0, 'pSandbox', ''
);
Expand Down Expand Up @@ -487,7 +491,7 @@ cRandomInt = NumberToString( INT( RAND( ) * 1000 ));
cTempSub = cThisProcName |'_'| cTimeStamp |'_'| cRandomInt;
cMsgErrorLevel = 'ERROR';
cMsgErrorContent= 'Process:%cThisProcName% ErrorMsg:%sMessage%';
cLogInfo = 'Process:%cThisProcName% run with parameters pCube:%pCube%, pSrcView:%pSrcView%, pTgtView:%pTgtView%, pFilter:%pFilter%, pFilterParallel:%pFilterParallel%, pParallelThreads:%pParallelThreads%, pEleMapping:%pEleMapping%, pMappingDelim:%pMappingDelim%, pDimDelim:%pDimDelim%, pEleStartDelim:%pEleStartDelim%, pEleDelim:%pEleDelim%, pFactor:%pFactor%, pSuppressRules:%pSuppressRules%, pCumulate:%pCumulate%, pZeroTarget:%pZeroTarget%, pZeroSource:%pZeroSource%, pTemp:%pTemp%, pCubeLogging:%pCubeLogging%.' ;
cLogInfo = 'Process:%cThisProcName% run with parameters pCube:%pCube%, pSrcView:%pSrcView%, pTgtView:%pTgtView%, pFilter:%pFilter%, pFilterParallel:%pFilterParallel%, pParallelThreads:%pParallelThreads%, pEleMapping:%pEleMapping%, pMappingDelim:%pMappingDelim%, pDimDelim:%pDimDelim%, pEleStartDelim:%pEleStartDelim%, pEleDelim:%pEleDelim%, pFactor:%pFactor%, pSuppressConsol:%pSuppressConsol%, pSuppressRules:%pSuppressRules%, pCumulate:%pCumulate%, pZeroTarget:%pZeroTarget%, pZeroSource:%pZeroSource%, pTemp:%pTemp%, pCubeLogging:%pCubeLogging%, pSandbox:%pSandbox%';
cDefaultView = Expand( '%cThisProcName%_%cTimeStamp%_%cRandomInt%' );

## LogOutput parameters
Expand Down Expand Up @@ -696,7 +700,7 @@ sElementStartDelim = TRIM( pEleStartDelim );
sDelimDim = TRIM( pDimDelim );
sFilter = TRIM( pFilter);
sTargetFilter = '';
sSuppressConsol = 1;
nSuppressConsol = pSuppressConsol;
nSubN = 0;
nChar = 1;
nCharCount = LONG( sElementMapping );
Expand Down Expand Up @@ -893,7 +897,9 @@ If( nCharCount > 0 );

If ( DTYPE( sDimension, sElement) @= 'C' );
IF( nElementCount = 1 );
sSuppressConsol = 0;
If( pSuppressConsol <> 1 );
nSuppressConsol = 0;
EndIf;
nSubN = 1;
Else;
sMessage = Expand( 'Target element: %sElement% for dimension %sDimension% is consolidated' );
Expand Down Expand Up @@ -1138,7 +1144,7 @@ If( Scan( pEleStartDelim, pFilterParallel ) > 0 );
'pCube', pCube, 'pSrcView', pSrcView, 'pTgtView', pTgtView,
'pFilter', sFilter, 'pFilterParallel', '', 'pEleMapping', pEleMapping, 'pMappingDelim', pMappingDelim,
'pDimDelim', pDimDelim, 'pEleStartDelim', pEleStartDelim, 'pEleDelim', pEleDelim,
'pFactor', pFactor, 'pSuppressRules', pSuppressRules, 'pCumulate', pCumulate,
'pFactor', pFactor, 'pSuppressConsol', pSuppressConsol, 'pSuppressRules', pSuppressRules, 'pCumulate', pCumulate,
'pZeroTarget', pZeroTarget, 'pZeroSource', pZeroSource, 'pTemp', pTemp, 'pCubeLogging', pCubeLogging, 'pSandbox', pSandbox, 'pThreadMode', 1
);
nThreadElCounter = 0;
Expand All @@ -1151,7 +1157,7 @@ If( Scan( pEleStartDelim, pFilterParallel ) > 0 );
'pCube', pCube, 'pSrcView', pSrcView, 'pTgtView', pTgtView,
'pFilter', sFilter, 'pFilterParallel', '', 'pEleMapping', pEleMapping, 'pMappingDelim', pMappingDelim,
'pDimDelim', pDimDelim, 'pEleStartDelim', pEleStartDelim, 'pEleDelim', pEleDelim,
'pFactor', pFactor, 'pSuppressRules', pSuppressRules, 'pCumulate', pCumulate,
'pFactor', pFactor, 'pSuppressConsol', pSuppressConsol, 'pSuppressRules', pSuppressRules, 'pCumulate', pCumulate,
'pZeroTarget', pZeroTarget, 'pZeroSource', pZeroSource, 'pTemp', pTemp, 'pCubeLogging', pCubeLogging, 'pSandbox', pSandbox, 'pThreadMode', 1
);
ENDIF;
Expand Down Expand Up @@ -1193,7 +1199,7 @@ Else;
'pView', cViewSource,
'pFilter', sFilter,
'pSuppressZero', 1,
'pSuppressConsol', sSuppressConsol,
'pSuppressConsol', nSuppressConsol,
'pSuppressRules', pSuppressRules,
'pDimDelim', pDimDelim,
'pEleStartDelim', pEleStartDelim,
Expand Down
4 changes: 2 additions & 2 deletions main/}bedrock.cube.data.export.pro
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
586,"}APQ Staging TempSource"
585,"}APQ Staging TempSource"
564,
565,"d47]aJqJl5FFYnIpD>38vzi=\>9NEz:TVv3L=>Mbs\KTPT`Y93`umL7Twnj1zMJb:2MF?5BIRzcGv8AY6`R4E8W0yr8fpiTyZ3Xxd6sbsZLCJIYw==xEPrzTK[>D3SLh:2xskPsEJ^R4Y4[FFi^V0Kt]A5BbC_iS>B[O=]B0UNhCFOYQ3oAI6Z<f6AS:MJc>f\>6:yFM"
565,"wMk]1KPR=P>BOR5PBx]mrp:adXmzy\CtwCC;Fx]LSa\r[8BqvH9MVQQo?kUq27Arf4O<s4G9vU1pzPkv?[fa=fU32_Uxd\<0]Dlm<NjOnum@hCROdNrXGEU3RgA<3czMpQXj=1iHv<b_cGQql\mM7aUbU<ZPkdjZSI:d9RjXY`lHvArZprdEuA@B[Vd5NdkBJXt6NLB`"
559,1
928,0
593,
Expand Down Expand Up @@ -787,7 +787,7 @@ cTimeStamp = TimSt( Now, '\Y\m\d\h\i\s' );
cRandomInt = NumberToString( INT( RAND( ) * 1000 ));
cMsgErrorLevel = 'ERROR';
cMsgErrorContent = 'User:%cUserName% Process:%cThisProcName% ErrorMsg:%sMessage%';
cLogInfo = 'Process:%cThisProcName% run with parameters pCube:%pCube%, pView:%pView%, pFilter:%pFilter%, pFilterParallel:%pFilterParallel%, pParallelThreads:%pParallelThreads%, pDimDelim:%pDimDelim%, pEleStartDelim:%pEleStartDelim%, pEleDelim:%pEleDelim%, pSuppressZero:%pSuppressZero%, pSuppressConsol:%pSuppressConsol%, pSuppressRules:%pSuppressRules%, pZeroSource:%pZeroSource%, pCubeLogging:%pCubeLogging%, pTemp:%pTemp%, pFilePath:%pFilePath%, pFileName:%pFileName%, pDelim:%pDelim%, pQuote:%pQuote%, pTitleRecord:%pTitleRecord%.';
cLogInfo = 'Process:%cThisProcName% run with parameters pCube:%pCube%, pView:%pView%, pFilter:%pFilter%, pFilterParallel:%pFilterParallel%, pParallelThreads:%pParallelThreads%, pDimDelim:%pDimDelim%, pEleStartDelim:%pEleStartDelim%, pEleDelim:%pEleDelim%, pSuppressZero:%pSuppressZero%, pSuppressConsol:%pSuppressConsol%, pSuppressRules:%pSuppressRules%, pZeroSource:%pZeroSource%, pCubeLogging:%pCubeLogging%, pTemp:%pTemp%, pFilePath:%pFilePath%, pFileName:%pFileName%, pDelim:%pDelim%, pQuote:%pQuote%, pTitleRecord:%pTitleRecord%, pSandbox:%pSandbox%';
cDefaultView = Expand( '%cThisProcName%_%cTimeStamp%_%cRandomInt%' );
cLenASCIICode = 3;

Expand Down
4 changes: 2 additions & 2 deletions main/}bedrock.cube.data.import.pro
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
586,"C:\TM1\Bedrock\Data\Bedrock.Z.Cube.Placeholder.csv"
585,"C:\TM1\Bedrock\Data\Bedrock.Z.Cube.Placeholder.csv"
564,
565,"gRGDKxfaloAA>>:<[J2Cu:7eLk7=Q@qSlVJgTr<`6bwlU@HoGS[tYwRBsPY8469]Boj40bUZkCuDKcqnafBGhN;Wzi72vm:CJHvt3l\0^5b[Y<x?qpc54D2L5myVE88@CRgvmdpjQy3N]D5XLbBsEMkp?qDen@ExWCefnx;e8;G_?@r48KR7hkFe3uCeSSZvZ47gl]pR"
565,"pQvZc7GC:t;:o?RFa:hBCyaCA5cf8LS6gi>o3[_aG>PNPwxQV8I0E2PwO_VIzIfznYoYqjGf0@:Ua7Ycm5?c^Oc4@:e_?MJuzVZkOck3ILuQJQI>p2^h[]u3O4hxkOoFd03fEC`0VoX9CNbmSfOxo?=OD6Ooun;QO8C2vTz;[Dfx7>q7otRnB>9xvWn:v[tAiz5=Kp1r"
559,1
928,0
593,
Expand Down Expand Up @@ -320,7 +320,7 @@ cRandomInt = NumberToString( INT( RAND( ) * 1000 ));
cTempSub = cThisProcName |'_'| cTimeStamp |'_'| cRandomInt;
cMsgErrorLevel = 'ERROR';
cMsgErrorContent = 'User:%cUserName% Process:%cThisProcName% ErrorMsg:%sMessage%';
cLogInfo = 'Process:%cThisProcName% run with parameters pSrcDir:%pSrcDir%, pSrcFile:%pSrcFile%, pCube:%pCube%, pDim:%pDim%, pSrcEle:%pSrcEle%, pTgtEle:%pTgtEle%, pTitleRows:%pTitleRows%, pDelim:%pDelim%, pQuote:%pQuote%, pCumulate:%pCumulate%, pCubeLogging:%pCubeLogging%.' ;
cLogInfo = 'Process:%cThisProcName% run with parameters pSrcDir:%pSrcDir%, pSrcFile:%pSrcFile%, pCube:%pCube%, pDim:%pDim%, pSrcEle:%pSrcEle%, pTgtEle:%pTgtEle%, pTitleRows:%pTitleRows%, pDelim:%pDelim%, pQuote:%pQuote%, pCumulate:%pCumulate%, pCubeLogging:%pCubeLogging%, pSandbox:%pSandbox%';
cLenASCIICode = 3;

pDelimiter = TRIM(pDelim);
Expand Down

0 comments on commit ccf7f5a

Please sign in to comment.