|
>Date: Sun, 17 Sep 2000 23:31:05 -0700 >From: "James W. Kilgore" <qappdsn@attglobal.net> > ... >Isolate the function via /COPY and you can change the contents of the /COPY to satisfy the >method de jour. > > so your program will have: > >C z-add 30 waitsec >C exsr wait > >And somewhere else you would have: > >C/copy xxxxxxxxxx,waitfunctn > >Where waitfunctn can contain a call to QCMDEXC, a call to a CL program, a CALLP to your own >procedure, a CALLP to a C function or even if you're a rebel, a wait on a data queue that >never has content. > ... James, I don't think your /COPY method isolates the code any better than having your users code this: C callp wait (30) with your "wait" subprocedure or program using the method du jour? Besides the fact that using a subprocedure in a service program, or using another program allows you to modify your code and have all the users immediately pick up the change, using your /COPY method requires the users to remember more (the /copy file name, the subroutine name, AND the name of the variable with the number of seconds). Barbara Morris +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
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.