Concerning the issue for CALL and module not found: don't compile the aub program as main (drop the -x). If you want to run programs both as main and as sub: use cobcrun to start a program compiled as module, or, if you really want a separate main use CALL "SYSTEM" USING "PROG00 param1 param2" END-CALL which would start a program as you'd start it from the command line (completely separate run unit).