X 6.2.22.10 INVOKE Parameter Type Conformance--Example
X WORKING-STORAGE SECTION.
X 01 anA USAGE OBJECT REFERENCE A.
X 01 aB USAGE OBJECT REFERENCE B.
X 01 aC USAGE OBJECT REFERENCE C.
X .
X .
X .
X PROCEDURE DIVISION
X INVOKE anX "METHOD-1" USING BY REFERENCE anA.
X BY VALUE aB.
X RETURNING aC.
X CLASS-ID. X.
X .
X .
X .
X METHOD-ID. METHOD-1.
X .
X .
X .
X LINKAGE SECTION.
X 01 aP USAGE OBJECT REFERENCE P.
X 01 aQ USAGE OBJECT REFERENCE Q.
X 01 anR USAGE OBJECT REFERENCE R.
X .
X .
X .
X PROCEDURE DIVISION USING BY REFERENCE aP
X BY VALUE aQ
X RETURNING anR.
X In the above examples:
- X Class P and class A must be the same class.
- X Class Q must be the same class or a parent of B.
- X Class R must be the same class or a subclass of C.
© Copyright IBM Corp. 1991, 1998
IBM Library Server Copyright 1989, 2005 IBM Corporation. All rights reserved.
Return to library:
z/OS |
z/OS.e |
TPF |
z/VSE |
z/VM |
IBM Hardware |
IBM System z Redbooks
Glossary:
IBM terminology
Publications:
How to order publications
Readers:
Download IBM Library Reader |
Download IBM Softcopy Reader |
Download Adobe® Acrobat® Reader®
Library management:
Download IBM Softcopy Librarian
Contacts:
Contact z/OS
Adobe, the Adobe logo, Acrobat, the Acrobat logo, and Acrobat Reader are registered trademarks
of Adobe Systems incorporated.