Re: *INLR
Sam_L <[email protected]> Thu, 16 Apr 2026 13:35:29 -0400
| Newsgroups | gmane.comp.lang.as400.rpg |
|---|---|
| Message-ID | <[email protected]> |
One relatively easy change, provided that invoices can be processed in
any order. Then run multiple instances of PgmA
PgmA
Do until shutdown
Read Invoice Header File for update of unprocessed invoices
// This locks the record against other instances of PgmA
Mark the invoice as In-Process
call PgmB
enddo
You read the header file with a EOFDLY on a logical that selects only
unprocessed invoices.
--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: [email protected]
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request-+hD5IHI5Xscn3HwCXmMcX9BPR1lH4CV8@public.gmane.org
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.
Please contact support-FMtJrHiV//lnDLsaKlm4mFaTQe2KTcn/@public.gmane.org for any subscription related questions.