Library View Topics Framed Contents Revised Topics Previous Topic Next Topic Search Search ResultsPrevious Topic MatchNext Topic Match Notes List Notes Print Download No PDF Handheld DisconnectedHandheld ConnectedHelp

X 6.1.6.4.3 Pointer Data Items




X Only EQUAL and NOT EQUAL are allowed as relational operators when
X specifying pointer data items. Pointer data items are items defined
X explicitly as USAGE IS POINTER, or are ADDRESS OF special registers, which
X are implicitly defined as USAGE IS POINTER.


X The operands are equal if the two addresses used in the comparison would
X both result in the same storage location.


X This relation condition is allowed in IF, PERFORM, EVALUATE, and SEARCH
X Format 1 statements. It is not allowed in SEARCH Format 2 (SEARCH ALL)
X statements, because there is no meaningful ordering that can be applied to
X pointer data items.


 X  ___ Format 2 ___________________________________________________________ 
 X |                                                                        |
 X | >>__ _ADDRESS OF__identifier-1_ __ ____ __ _____ ____________________> |
 X |     |_identifier-2_____________|  |_IS_|  |_NOT_|                      |
 X |     |_NULL_____________________|                                       |
 X |     |_NULLS____________________|                                       |
   |                                                                        |
 X | >__ _EQUAL__ ____ _ __ _ADDRESS OF__identifier-3_ __________________>< |
 X |    |        |_TO_| |  |_identifier-4_____________|                     |
 X |    |_=_____________|  |_NULL_____________________|                     |
 X |                       |_NULLS____________________|                     |
   |                                                                        |
   |________________________________________________________________________|

X identifier-1

X identifier-3

X Can specify any level item defined in the Linkage Section, except 66
X and 88.


X identifier-2

X identifier-4

X Must be described as USAGE IS POINTER.


X NULL(S)

X As in this syntax diagram, can be used only if the other operand is
X defined as USAGE IS POINTER. That is, NULL=NULL is not allowed.


X Table 23 summarizes the permissible comparisons for USAGE IS POINTER,
X NULL, and ADDRESS OF.


RevisionX  Table 23. Permissible Comparisons for USAGE IS POINTER, NULL, and ADDRESS 
RevisionX            OF                                                              
RevisionX                                    
                                   
RevisionX                                    
RevisionX  First Operand                     
RevisionX              Second Operand            
RevisionX   USAGE IS 
RevisionX   POINTER  
RevisionX              
RevisionX   ADDRESS OF 
RevisionX              
RevisionX   NULL/NULLS 
RevisionX  USAGE IS POINTER                   RevisionX     Yes     RevisionX      Yes      RevisionX      Yes     
RevisionX  ADDRESS OF                         RevisionX     Yes     RevisionX      Yes      RevisionX      Yes     
RevisionX  NULL/NULLS                         RevisionX     Yes     RevisionX      Yes      RevisionX       No     
RevisionX  Note:                                                                     
                                                                           
RevisionX       YES = Comparison allowed only for EQUAL, NOT EQUAL                   
RevisionX       NO = No comparison allowed                                           




Previous Topic Next Topic © 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.