Skip to content

Commit 0bd4bbe

Browse files
authored
Merge pull request #73 from lotsaram/master
include pSuppressConsol in data.copy
2 parents b731466 + 56d93b2 commit 0bd4bbe

4 files changed

Lines changed: 24 additions & 17 deletions

File tree

main/}bedrock.cube.data.clear.pro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ cThisProcName = GetProcessName();
138138
cUserName = TM1User();
139139
cMsgErrorLevel = 'ERROR';
140140
cMsgErrorContent= 'Process:%cThisProcName% ErrorMsg:%sMessage%';
141-
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%.' ;
141+
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%';
142142
cTimeStamp = TimSt( Now, '\Y\m\d\h\i\s' );
143143
cRandomInt = NumberToString( INT( RAND( ) * 1000 ));
144144
cDefaultView = Expand( '%cThisProcName%_%cTimeStamp%_%cRandomInt%' );

main/}bedrock.cube.data.copy.pro

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
569,0
2626
592,0
2727
599,1000
28-
560,21
28+
560,22
2929
pLogOutput
3030
pCube
3131
pSrcView
@@ -39,6 +39,7 @@ pDimDelim
3939
pEleStartDelim
4040
pEleDelim
4141
pFactor
42+
pSuppressConsol
4243
pSuppressRules
4344
pCumulate
4445
pZeroTarget
@@ -47,7 +48,7 @@ pTemp
4748
pCubeLogging
4849
pSandbox
4950
pThreadMode
50-
561,21
51+
561,22
5152
1
5253
2
5354
2
@@ -69,7 +70,9 @@ pThreadMode
6970
1
7071
2
7172
1
72-
590,21
73+
2
74+
1
75+
590,22
7376
pLogOutput,0
7477
pCube,""
7578
pSrcView,""
@@ -83,6 +86,7 @@ pDimDelim,"&"
8386
pEleStartDelim,"¦"
8487
pEleDelim,"+"
8588
pFactor,1
89+
pSuppressConsol,1
8690
pSuppressRules,1
8791
pCumulate,0
8892
pZeroTarget,1
@@ -91,7 +95,7 @@ pTemp,1
9195
pCubeLogging,0
9296
pSandbox,""
9397
pThreadMode,0
94-
637,21
98+
637,22
9599
pLogOutput,"Optional: write parameters and action summary to server message log (Boolean True = 1)"
96100
pCube,"REQUIRED: Cube"
97101
pSrcView,"OPTIONAL: Temporary view name for source"
@@ -105,6 +109,7 @@ pDimDelim,"REQUIRED: Delimiter for start of Dimension/Element set (default valu
105109
pEleStartDelim,"REQUIRED: Delimiter for start of element list (default value if blank = '¦')"
106110
pEleDelim,"REQUIRED: Delimiter between elements (default value if blank = '+')"
107111
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"
112+
pSuppressConsol,"OPTIONAL: Suppress Consolidated Cells (Skip = 1)"
108113
pSuppressRules,"OPTIONAL: Suppress Rules (Skip = 1)"
109114
pCumulate,"OPTIONAL: 1 = Add source to existing value in target (if zero out target = 0 False). 0 = Replace target with source."
110115
pZeroTarget,"OPTIONAL: Zero out Target Element PRIOR to Copy? (Boolean 1=True)"
@@ -426,7 +431,7 @@ VarType=32 ColType=827
426431
VarType=32 ColType=827
427432
VarType=33 ColType=827
428433
603,0
429-
572,795
434+
572,797
430435
#Region CallThisProcess
431436
# 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.
432437
If( 1 = 0 );
@@ -435,7 +440,7 @@ If( 1 = 0 );
435440
'pFilterParallel', '', 'pParallelThreads', 0,
436441
'pEleMapping', '', 'pMappingDelim', '->',
437442
'pDimDelim', '&', 'pEleStartDelim', '¦', 'pEleDelim', '+',
438-
'pFactor', 1, 'pSuppressRules', 1, 'pCumulate', 0,
443+
'pFactor', 1, 'pSuppressConsol', 1, 'pSuppressRules', 1, 'pCumulate', 0,
439444
'pZeroTarget', 1, 'pZeroSource', 0,
440445
'pTemp', 1, 'pCubeLogging', 0, 'pSandbox', ''
441446
);
@@ -487,7 +492,7 @@ cRandomInt = NumberToString( INT( RAND( ) * 1000 ));
487492
cTempSub = cThisProcName |'_'| cTimeStamp |'_'| cRandomInt;
488493
cMsgErrorLevel = 'ERROR';
489494
cMsgErrorContent= 'Process:%cThisProcName% ErrorMsg:%sMessage%';
490-
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%.' ;
495+
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%';
491496
cDefaultView = Expand( '%cThisProcName%_%cTimeStamp%_%cRandomInt%' );
492497

493498
## LogOutput parameters
@@ -696,7 +701,7 @@ sElementStartDelim = TRIM( pEleStartDelim );
696701
sDelimDim = TRIM( pDimDelim );
697702
sFilter = TRIM( pFilter);
698703
sTargetFilter = '';
699-
sSuppressConsol = 1;
704+
nSuppressConsol = pSuppressConsol;
700705
nSubN = 0;
701706
nChar = 1;
702707
nCharCount = LONG( sElementMapping );
@@ -893,7 +898,9 @@ If( nCharCount > 0 );
893898

894899
If ( DTYPE( sDimension, sElement) @= 'C' );
895900
IF( nElementCount = 1 );
896-
sSuppressConsol = 0;
901+
If( pSuppressConsol <> 1 );
902+
nSuppressConsol = 0;
903+
EndIf;
897904
nSubN = 1;
898905
Else;
899906
sMessage = Expand( 'Target element: %sElement% for dimension %sDimension% is consolidated' );
@@ -1138,7 +1145,7 @@ If( Scan( pEleStartDelim, pFilterParallel ) > 0 );
11381145
'pCube', pCube, 'pSrcView', pSrcView, 'pTgtView', pTgtView,
11391146
'pFilter', sFilter, 'pFilterParallel', '', 'pEleMapping', pEleMapping, 'pMappingDelim', pMappingDelim,
11401147
'pDimDelim', pDimDelim, 'pEleStartDelim', pEleStartDelim, 'pEleDelim', pEleDelim,
1141-
'pFactor', pFactor, 'pSuppressRules', pSuppressRules, 'pCumulate', pCumulate,
1148+
'pFactor', pFactor, 'pSuppressConsol', pSuppressConsol, 'pSuppressRules', pSuppressRules, 'pCumulate', pCumulate,
11421149
'pZeroTarget', pZeroTarget, 'pZeroSource', pZeroSource, 'pTemp', pTemp, 'pCubeLogging', pCubeLogging, 'pSandbox', pSandbox, 'pThreadMode', 1
11431150
);
11441151
nThreadElCounter = 0;
@@ -1151,7 +1158,7 @@ If( Scan( pEleStartDelim, pFilterParallel ) > 0 );
11511158
'pCube', pCube, 'pSrcView', pSrcView, 'pTgtView', pTgtView,
11521159
'pFilter', sFilter, 'pFilterParallel', '', 'pEleMapping', pEleMapping, 'pMappingDelim', pMappingDelim,
11531160
'pDimDelim', pDimDelim, 'pEleStartDelim', pEleStartDelim, 'pEleDelim', pEleDelim,
1154-
'pFactor', pFactor, 'pSuppressRules', pSuppressRules, 'pCumulate', pCumulate,
1161+
'pFactor', pFactor, 'pSuppressConsol', pSuppressConsol, 'pSuppressRules', pSuppressRules, 'pCumulate', pCumulate,
11551162
'pZeroTarget', pZeroTarget, 'pZeroSource', pZeroSource, 'pTemp', pTemp, 'pCubeLogging', pCubeLogging, 'pSandbox', pSandbox, 'pThreadMode', 1
11561163
);
11571164
ENDIF;
@@ -1193,7 +1200,7 @@ Else;
11931200
'pView', cViewSource,
11941201
'pFilter', sFilter,
11951202
'pSuppressZero', 1,
1196-
'pSuppressConsol', sSuppressConsol,
1203+
'pSuppressConsol', nSuppressConsol,
11971204
'pSuppressRules', pSuppressRules,
11981205
'pDimDelim', pDimDelim,
11991206
'pEleStartDelim', pEleStartDelim,

main/}bedrock.cube.data.export.pro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
586,"}APQ Staging TempSource"
55
585,"}APQ Staging TempSource"
66
564,
7-
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"
7+
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`"
88
559,1
99
928,0
1010
593,
@@ -787,7 +787,7 @@ cTimeStamp = TimSt( Now, '\Y\m\d\h\i\s' );
787787
cRandomInt = NumberToString( INT( RAND( ) * 1000 ));
788788
cMsgErrorLevel = 'ERROR';
789789
cMsgErrorContent = 'User:%cUserName% Process:%cThisProcName% ErrorMsg:%sMessage%';
790-
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%.';
790+
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%';
791791
cDefaultView = Expand( '%cThisProcName%_%cTimeStamp%_%cRandomInt%' );
792792
cLenASCIICode = 3;
793793

main/}bedrock.cube.data.import.pro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
586,"C:\TM1\Bedrock\Data\Bedrock.Z.Cube.Placeholder.csv"
55
585,"C:\TM1\Bedrock\Data\Bedrock.Z.Cube.Placeholder.csv"
66
564,
7-
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"
7+
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"
88
559,1
99
928,0
1010
593,
@@ -320,7 +320,7 @@ cRandomInt = NumberToString( INT( RAND( ) * 1000 ));
320320
cTempSub = cThisProcName |'_'| cTimeStamp |'_'| cRandomInt;
321321
cMsgErrorLevel = 'ERROR';
322322
cMsgErrorContent = 'User:%cUserName% Process:%cThisProcName% ErrorMsg:%sMessage%';
323-
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%.' ;
323+
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%';
324324
cLenASCIICode = 3;
325325

326326
pDelimiter = TRIM(pDelim);

0 commit comments

Comments
 (0)