|
DC Press Build your own knowledge base IBM Literatur für die iSeries
42
| ENDPGM | |__________________________________| Prozeduren in anderen Programmiersprachen aufgerufen werden. Die folgende Abbildung zeigt, wie die Steuerung zwischen einer CL-Prozedur und RPG IV- und ILE COBOL/400-Prozeduren in einer Anwendung übergeben werden kann. Um eine Anwendung auszuführen, würde ein Datenstationsbenutzer Programm A anfordern, das die gesamte Anwendung steuert. Die Abbildung enthält folgende Einzelheiten: Das vorangehende Beispiel zeigt ein einfaches Binderprogramm (PGMA), das mit dem Befehl CALL in PGMA aufgerufen wird. PGMA besteht aus: ° Einer RPG-Prozedur (PGMB), die eine andere RPG IV-Prozedur (PGMC) aufruft. ° Einer RPG IV-Prozedur (PGMB), die eine CL-Prozedur (PGMD) aufruft. ° Einer CL-Prozedur (PGMA), die eine ILE COBOL/400-Prozedur (PGME) aufruft. ° Einem ILE COBOL/400-Programm (PGME), das eine CL-Prozedur (PGMF) aufruft. | Start | | | | | |____ÿ PGMA (CL) _____ÿ PGMB (RPG) ____ÿ PGMC (RPG) | | ______________ | ____________ | ____________ | | | . | | | . | | | . | | | | . | | | . | | | . | | | | . | | | . | | | . | | | | CALLPRC PGMB_|__| | CALLB PGMC_|__| | . | | | | . ______|_____ | . ______|_______|_END | | | | . | | | . | |____________| | | | . | | | . | | | | CALLPRC PGME_|__ | | . | ____ÿ PGMD (CL) | | ____|_ÿ . | | | | . | | ____________ | | | | . | | | | . | | | . | | | | | . | | | | . | | | . | | | | | ENDPGM | | | | CALLB PGMD_|__| | . | | | | |______________| | | | . ______|_______|_RETURN | | | | | | | . | |____________| | | | __________________| | | . | | | | | |__|_RETURN | | | | |__ÿ PGME (COBOL) |____________| | | | _____________ | | | | . | ____ÿ PGMF (CL) | | | | . | | _____________ | | | | . | | | . | | | | | CALL PGMF __|__| | . | | | | | . _______|_______|_RETURN | | | | | . | |_____________| | | | | . | | | |______|_EXIT PROGRAM| | | |_____________| | |__________________________________________________________________|
|