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

Re: LOOP ON TIME DIMENSION

$
0
0

Sure,

 

Suppose I need to run any calculation from a particular month so rather than declaring a same piece of code again n again its better to apply a loop on time . So that's what I am trying to apply. Please consider below mentioned logic and help me in applying logic of time so that I dont repeat same section again n agian.

 

*RUN_PROGRAM INTERCAL

CATEGORY = %CATEGORY_SET%

TID_RA = 2012.06

CALC = INT

*ENDRUN_PROGRAM

 

 

*RUN_PROGRAM INTERCAL

CATEGORY = %CATEGORY_SET%

TID_RA = 2012.07

CALC = INT

*ENDRUN_PROGRAM

 

So here I wanted to run the calculation from 2012.06 and so on but I dont want to use same code copy again n agian just for time as its not good performance wise and it will be hard code. The reason of defining initial period as june because for a scenario I need to calculate previous month data so I defined previous month as june. Hope its clear.

 

Thanks


Viewing all articles
Browse latest Browse all 9190

Trending Articles



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