6.2.4.1 USING Phrase
The USING phrase specifies arguments that are passed to the target
program.
Include the USING phrase in the CALL statement only if there is a USING
X phrase in the Procedure Division header or the ENTRY statement through
which the called program is invoked. The number of operands in each USING
phrase must be identical.
For more information on the USING phrase see "The Procedure Division
Header" in topic 6.1.2.
The sequence of appearance of the identifiers in the USING phrase of the
CALL statement and in the corresponding USING phrase in the called
subprogram's Procedure Division header determines the correspondence
between the identifiers used by the calling and called programs. This
correspondence is positional.
X The sequence of appearance of the identifiers in the USING phrase of the
X CALL statement and in the corresponding USING phrase in the called
X program's ENTRY statement determines the correspondence between the
X identifiers used by the calling and called programs.
The values of the parameters referenced in the USING phrase of the CALL
statement are made available to the called subprogram at the time the CALL
statement is executed. The description of the data item in the called
program must describe the same number of character positions as the
description of the corresponding data item in the calling program.
X The BY CONTENT, BY REFERENCE and BY VALUE phrases apply to parameters that
X follow them until another BY CONTENT, BY REFERENCE, or BY VALUE phrase is
encountered. BY REFERENCE is assumed if you do not specify a BY CONTENT,
X BY REFERENCE, or BY VALUE phrase prior to the first parameter.
© 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.