|
Hi Don - >Does anyone know how I can ensure the field in the file gets cleared when >the job is terminated or will I have to redesign the process? We are at >V4R1 and RPGIV is not an option here as the program must be compiled to >ignore decimal data errors (no, I had nothing to do with it but must now >maintain it). The method I use, when starting from scratch, is to keep in the record, in addition to the flag field, the job name, user name, and job number of the job that sets the field. When a program wants that record, if the flag field is set it calls an API with the job information to determine the status of the job that set the flag. If that job is not found or is in status *OUTQ, the program wanting the record disregards the flag and sets the flag and job information fields for itself. So I don't clear the flag when there is an abnormal end, I implicitly clear the flag when someone else wants the record and the flag is still set. Ken http://www.ke9nr.org/ Opinions expressed are my own and do not necessarily represent the views of my employer or anyone in their right mind.
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.