08-17-2017 09:47 AM
I have master data of 12 months. I am caluclating value of one varible based on previous months values. I have calculated Feb values based on Jan values. Now, I want to calculate March value based on Jan and New Feb values; April value based on Jan, New Feb, New March values and so on...The new monthly value has to go in master dataset everytime. I have to use updated master file everytime.
Can you please help me to write the loop?
08-17-2017 10:16 AM - edited 08-17-2017 10:58 AM
I have caluclated it for Feb and applied back on master dataset I am just trying to iterative process for 12 months.
This completely avoids answering the question.
We still don't know what the calculation is that you are doing.
And you haven't provided an example, as was also requested.
08-17-2017 09:55 AM
Now, I want to calculate March value based on Jan and New Feb values;
Explain. What is the calculation? Sum? Average? Delta? Time series prediction? arc-cosine?
08-17-2017 10:26 AM
Does this answers your question:
do i = 1 to 12; if i > 2 then do j=1 to i; <calculate month(j) depending on month(i)> end; end;