On Thursday, November 27, 1997, 08:48 PM, damian Esealuka wrote: I need to be able to write a code in RPG/III/400 that will be able to call a cobol program and return to RPG upon completion. Can someone please show me how this is done. Thanks. Simply use the CALL statement. Use the PARM statement for any parameters. Your COBOL program should include a LINKAGE SECTION to accept these parameters. If your COBOL program uses files not included in your RPG program, and you require overrides, you may have to write a CL Program which includes an OVRDBF statement. If this is the case, then your RPG program should call the CL program, and the CL program should call the COBOL program. Another method would use OVRDBF statements in the CL Program which calls the RPG program. These overrides will remain in effect when the COBOL program is called. David Abramowitz

Reply With Quote