Team- I have a script logic which feeds input from the data manager package, this is working fine
*******************************
1*SELECT(%CURRMONTH%,"[CURRMO]",CATEGORY,"[ID] = '$TARGET$'")
2*SELECT(%YEAR%,"[FISCAL_YR]",TIME,"[CURMO] = 'Y'")
3*SELECT(%NYEAR%,"[FISCAL_YR]",TIME,"[ID] = %YEAR%.08")
4*SELECT(%CMONTHS%,"[ID]",TIME,"[ID] >= %CURRMONTH% AND CALC = 'N' AND [FISCAL_YR] = %YEAR% ")
5*SELECT(%NMONTHS%,"[ID]",TIME,"[FISCAL_YR] = %NYEAR%" AND CALC = 'N')
6*XDIM_MEMBERSET TIME = %CMONTHS%,%NMONTHS%
7*XDIM_MEMBERSET AUDITTRAIL = ALLOC_HC,ALLOC_SCC
8*XDIM_MEMBERSET CATEGORY = $TARGET$
9*WHEN AUDITTRAIL
10*IS *
11*REC(EXPRESSION=0)
12*ENDWHEN
13*COMMIT
*****************************************************************
In a certain scenario line 4 is yielding 0 results, which is making line 6 Time dimension scope to begin with "," which is causing the package to fail.
hence I combined the line 4 and 5 into and modified the logic
********************************************************
1*SELECT(%CURRMONTH%,"[CURRMO]",CATEGORY,"[ID] = '$TARGET$'")
2*SELECT(%YEAR%,"[FISCAL_YR]",TIME,"[CURMO] = 'Y'")
3*SELECT(%NYEAR%,"[FISCAL_YR]",TIME,"[ID] = %YEAR%.08")
4*SELECT(%CMONTHS%,"[ID]",TIME,"[ID] >= %CURRMONTH% AND CALC = 'N' AND [FISCAL_YR] = %YEAR% AND [FISCAL_YR]=%NYEAR%")
//5*SELECT(%NMONTHS%,"[ID]",TIME,"[FISCAL_YR] = %NYEAR%" AND CALC = 'N')
6*XDIM_MEMBERSET TIME = %CMONTHS%
//,%NMONTHS%
7*XDIM_MEMBERSET AUDITTRAIL = ALLOC_HC,ALLOC_SCC
8*XDIM_MEMBERSET CATEGORY = $TARGET$
9*WHEN AUDITTRAIL
10*IS *
11*REC(EXPRESSION=0)
12*ENDWHEN
13*COMMIT
*****************************************
Now i cant get the logic to validate, It is complaining on the select statement on the first line.
The original script also does not validate, but as the validated version already exists...The DM package is working fine.
Any ideas as to how to get this validated.
Thanks for your time.Appreciate your inputs in getting me over this bump.