× 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.



On 6/29/2016 9:20 AM, Bill Howie wrote:
A couple of things I probably should have mentioned initially.......first,
I'm only using SQL to accomplish this, not an RPG program. What I'm
actually doing is writing an SQL script in SSRS but accessing an AS/400
database. So basically the script has to work on the AS/400, but I'll
actually be running it within SSRS.

If you use IDATE, you will have a set of User Defined Functions that
will live and execute on the IBM side. So instead of writing nasty
error-prone SQL for the SRSS side of the house (see my contribution for
one example of error-prone!), you'd have a simple UDF like

select cymdToISO(packed) - 90 days from sometable

The performance may not be very good, but this bridge solution has two
things going for it
1) The SQL DML is easy on the eyes and therefore, easy to
understand/maintain.
2) It can be debugged on the IBM side with traditional debugging tools.

The downside may be the runtime performance.

I'm liking the date cross reference table more and more for these sorts
of chores.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.