×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




Booth,

In addition to the techniques already presented for dynamically resolving
procedure addresses at runtime, also consider that the ExtPgm() keyword on a
procedure prototype can reference a variable for a program name.

And since the addresses for programs are automatically and dynamically resolved
at runtime, you might consider something like the following where the verify()
procedure actually resolves to a program named 'RED' at runtime.

D array s 3a dim(5)

D verify PR ExtPgm(pgm)
D myParms 12A Const

D pgm S 10A

/free

array(1) = 'YLW';
array(2) = 'GRN';
array(3) = 'BLU';
array(4) = 'RED';
array(5) = 'YLW';

pgm = array(4);

verify('Hello World');

/end-free


Nathan M. Andelin







As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 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.