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



You are quite fortunate it is only 15 or so queries.

There are the queries run as part of the end fiscal report collection, that
need to get latest end month selection range.
There are also queries run regularly during the month, that need to be
changed to next month date range.
I have a rather large number of queries, outside of fiscal month, that use
date math to get the last 30 days, prior to the date that the query is
actually run, or some variation thereof, so the user gets current data, does
not have to key in some date.

Also our fiscal month is not calendar month, the date range has to be based
on some info from our fiscal calendar.
With a regular program, it can look up the fiscal month file to determine"
(a) what is the current fiscal month?
(b) what are the date ranges for the current month?
At one or more points in the end fiscal check list, you can also run some
program to put that info into some work file that queries link to, for some
of their logic, assuming you got some basis for linking.

Once upon a time it was permitted to use calendar month for some reports ...
such as everything for the past week, and our fiscal month always fell
within a week of calendar month ... somewhere between 20 something of one
month and no more than 10 days into next ... so I was able to do some date
math based on date this thing is run, use month we probably closest to.

-
Al Mac

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Burns, Bryan
Sent: Thursday, April 30, 2009 9:23 AM
To: MIDRANGE-L@xxxxxxxxxxxx
Subject: Month-end queries

At the end of every month, I change the record selection date range in 15 or
so queries to reflect the current month in order to get month-end totals.
Is there a way to automate this? Of course, the files to be queried may be
different so the date fields will not always be the same.

Bryan Burns
iSeries Specialist
ECHO, Incorporated
Lake Zurich, Illinois



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.