Programs written in OPM languages such as OPM COBOL/400 or OPM RPG/400(R) can only be called from ILE COBOL using dynamic program calls. OPM programs cannot be statically bound to ILE COBOL programs. If you attempt to call an OPM program using a static procedure call, you will receive an error message. At bind time, you will receive a warning message from the binder for an unresolved reference to the static procedure call. If you disregard the warning message and create the ILE program object, you will get a exception when the static procedure call is attempted at run time.
You call an OPM program from an ILE COBOL program by using the CALL literal statement (were literal is the name of the OPM program). To call the OPM program, you write the CALL literal statement in the same way as you would if you were calling another ILE COBOL subprogram using a dynamic program call. See Performing Dynamic Program Calls using CALL literal for detailed information about how to write the CALL statement in your ILE COBOL program to call an OPM program using dynamic program calls.
You can also call an OPM program from an ILE COBOL program by using the CALL identifier statement. See Using CALL identifier for more information on CALL identifier.
Programs written in OPM languages can only be run in the Default Activation Group (*DFTACTGRP).
You can call an ILE COBOL program from an OPM program by using the same call semantics as you would for calling another OPM program.
External data cannot be shared between OPM programs and ILE COBOL programs.
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.