X 6.2.22.5 Conformance Requirements for USING Phrase
X The arguments specified on the USING phrase and the formal parameters
X specified on the method PROCEDURE-DIVISION USING must satisfy the
X following:
- X An invoked COBOL method must have the same number of formal parameters
X on its procedure division USING phrase as there are arguments on the
X INVOKE USING phrase. The presence or absence of USING...BY VALUE must
X be consistent on the INVOKE statement and the Procedure Division
X header of the target method.
- X If a formal parameter is a COBOL elementary data item not described
X with USAGE IS OBJECT REFERENCE, then the corresponding argument must
X have the same PICTURE, USAGE, SIGN, SYNCHRONIZED, JUSTIFIED, and BLANK
X WHEN ZERO clauses. Note that periods and commas can be interchanged
X if specifying the DECIMAL POINT IS COMMA clause, and PICTURE clause
X currency symbols can differ.
- X If a formal parameter is a COBOL elementary data item described with
X USAGE IS OBJECT REFERENCE then:
- X If the argument is passed BY REFERENCE, then the argument and the
X parameter must be defined with identical USAGE clauses.
- X If the argument is passed BY VALUE or BY CONTENT, and the
X parameter specified on the method Procedure Division USING phrase
X is a universal object reference, then the argument can be any
X object reference.
- X If the argument is passed BY VALUE or BY CONTENT, and the
X parameter specified on the method Procedure Division USING phrase
X is an object reference typed to a specific class, then the
X argument must be an object reference typed to the same or a
X derived class.
© 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.