Michael Petch solved my problem. It required changing EXTERN MyProcedure: PROC Into MyProcedure PROTO.