Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9164

Equation For Variables in Script Logic

$
0
0

Hi All,

 

Need help with the below script logic:

 

*WHEN TIME

*IS $INP_YR$.INPUT

*FOR %MONTH%=$PREV_YR$.04,$PREV_YR$.05,$PREV_YR$.06...$PREV_YR$.12,$INP_YR$.01,$INP_YR$.02,$INP_YR$.03

*REC(EXPRESSION = %VALUE%/12, TIME=%MONTH%)

*NEXT

*ENDWHEN

*COMMIT

 

The Logic Script basically splits an Annual Input over 12 Months equally, where,

$INP_YR$ would be the year of Input that needs to be split, provided by the User through a Text Prompt in the Data Manager Package containing the Logic Script.

 

The organisation Follows April to March as Financial Year. So when the Financial Year ending is March 2015, the First Month is April 2014.

 

For that reason there is a second Data Manager Variable as $PREV_YR$.

 

I have Tried using BAS($INP_YR$.INPUT) instead of %MONTH% in the *REC statement but it is Not Premitted.

 

I have even tried $INP_YR$(-1).04,$INP_YR$(-1).05....$INP_YR$(-1).12; but it does not get recognized.


To avoid Prompting the Users for 2 Years please let me know if there a way whereby I can either directly use Base members of $INP_YR$.INPUT or record $PREV_YR$=$INP_YR$ - 1.  

 

Regards.


Viewing all articles
Browse latest Browse all 9164

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>