set array function
Kenneth Brody
kenbrody at spamcop.net
Fri Feb 4 09:12:40 PST 2011
(Sorry for not trimming, but there really isn't anything to trim...)
On 2/4/2011 10:58 AM, Richard Kreiss wrote:
[...]
>>> Having an odd problem with this function.
>>>
>>> Mt is the starting date within a 48 element array. As each record is
>>> processed, its position based on the pay date is calculated (mt).
>>>
>>> Amount=payment/"12"
>>>
>>> Set allocation,mt,amount,"11"
>>>
>>> What I am finding is that within each 12 month period, the 5th element
>>> is blank.
>>
>> What are the actual values of "mt" and "amount"?
>>
>> How, exactly, is the array "allocation" defined?
>>
>>> There are 7 other arrays which use set aaaaa,mt,"11" to populate the
>>> proper array elements and none of them have the 5th element blank.
>>
>> How are those arrays defined, and what are the values passed to SET for
>> them?
>
> DIM ALLOCATION(48)(7,,2)
Is there a reason you only answered one of my questions?
> Export to insure that each element of the array was set to output during the
> export.
Huh?
> The only thing that it may be is an error in the program as this may be the
> last element in a 12 element range and gets a different value.
So it's not the "5th element", but rather the 12th? Perhaps that's because
your SET command only sets 11 elements?
Or are you talking about something else entirely?
> I need to debug this to see if this is the problem and not the set command.
--
Kenneth Brody
More information about the Filepro-list
mailing list