|
I think you have been given good answers but I want to warn you about repeatedly calling a COBOL program. If you are going to call this COBOL program a bunch of times during the running of the RPG program you will want to use a COBOL wrapper program as the initail calling program. Each time you call a COBOL program you have to create the COBOL run unit and then destroy it after the program ends. As you could imagine this can get very expensive over the course of a long running process. If you set it up this way you will on have to "build/destroy" the run unit once. ------------------------- Bryan Dietz 3X Corporation 614-410-9205 ====================================== I'm embarrassed to even ask this question, but I sure can't find the answer. If I "CALL" a COBOL program from an RPGLE program, how do I capture the value that the COBOL program has returned using the RETURN-CODE variable? This is an unbound call. Seems, oh so simple...but the answer eludes me.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.