<snip>
Yes, you can.  Put the qualified name in a variable and then call that.
For
example:

     D QualPgm         s             21a   Inz('MYLIB/MYPGM')
                                                                 
     C                   Call      QualPgm                       
</snip>

A better way, always prototype your calls. 

D MyName...
d              pr                ExtPgm('MYLIB/MYPGM')
d   Parm01...
d                          10a   Const

MyName(Parm);

The ExtPgm can be qualified or not and you can call the program just
like any other function, use constants and have parameters checked for
validity of type and size. 

This is an IBM recommendation for call programs or anything external.
Prototype it. Anyway, just a suggestion. 





Return to Archive home page | Return to MIDRANGE.COM home page