× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



This is actually a co-worker's idea, but she asked me to email this out.

Quite often, for a report, we are accumulating fields (dollars or quantity generally). The accumulator variable usually needs to be a step larger than the variable that's being accumulated. So, wouldn't it be nice if we could do something like this:

D QtyA S Like( FileA.UsageQty + 2)
D QtyB S Like( FileA.UsageQty + 2,1)

Field Size
FileA.UsageQty 9,4
QtyA 11,4
QtyB 11,5

We are big proponents of using LIKE to define fields within programs, though quite often it's these accumulator variables that are the exception.

We're curious if anyone else would find benefit to something like this? Or maybe there's an existing solution that doesn't involve hardcoding the definition?

Thanks,
Kurt Anderson
Sr. Programmer/Analyst
CustomCall Data Systems


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.