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



John Candidi wrote:
> I have a file that I append data to each month throughout the year via
> query. Come January 31 when we run our first closeout of the year, this file
> has to be cleared so that we can start all over again. I usually just CLRPFM
> I am trying to automate this process but keep in mind, when we run the
> month-end on Jan 1 for the year-end, this file must not get cleared. It is
> entirely possible this process won't run on Jan 31, it could spill over to
> Feb 1 depending on the length of the closeout. 

Job date does not change while a job is running ... so as long as you
are checking the job date, you should be fine.

Alternatively, you could retrieve the date at the beginning of the job
stream, store it in a data area in QTEMP, and use that value whenever
you need to check the date.

david


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.