|
The data area does have one distinct advantage. If you're checking/setting a flag at the start and resetting it at the end then it's not reset when the job dies. The object lock approach _assumes_ that your process can be restarted w/o any cleanup. If the object's not locked, then go. Many jobs are indeed like this. However, other jobs have a necessary "cleanup" process if they don't complete normally. The flag will prevent future jobs from running until it's reset, presumably after the cleanup process has completed. -Walden ------------ Walden H Leverich III President Tech Software (516) 627-3800 x11 (208) 692-3308 eFax WaldenL@xxxxxxxxxxxxxxx http://www.TechSoftInc.com Quiquid latine dictum sit altum viditur. (Whatever is said in Latin seems profound.) -----Original Message----- From: Alan E. [mailto:steelville@xxxxxxxxxxx] Sent: Saturday, October 25, 2003 2:50 PM To: RPG programming on the AS400 / iSeries Subject: Re: Best way to check if a certain program is running I like the data area method best. One purpose. - Alan | Other people create a data area named after the program, and allocate it. _______________________________________________ This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/rpg400-l or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
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.