|
There's a little bit of terminology mismatch, Booth, because you don't just combine programs into a service program. Each of the programs is now a procedure within the service program. One may indeed be called pgmB, but it's no longer a program, it's a procedure. If you left the name of the procedure to be pgmB, then you would use EXTPROC(pgmB) on your prototype; note the keyword EXTPROC, not EXTPGM. Then in order to bring that service program into ProgA, you would create a binding directory with SRVPGM01 in it, and use that binding directory in the CTL-OPT specification. Say you called the binding directory BNDDIR01, then you add BNDDIR('BNDDIR01') in your CTL-OPT specification.
Hope that helps!
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.