Yes, you can.  Put the qualified name in a variable and then call that.

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

A better way, always prototype your calls. 

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


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. 

This thread ...


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