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

6.2.24.1 Elementary Moves



An elementary move is one in which the receiving item is an elementary item, and the sending item is an elementary item or a literal. Any necessary conversion of data from one form of internal representation to another takes place during the move, along with any specified editing in, or de-editing implied by, the receiving item. Each elementary item belongs to one of the following categories:

The following rules outline the execution of valid elementary moves. When the receiving field is:

Alphabetic:

Alphanumeric or Alphanumeric-Edited:

Numeric or Numeric-edited:


X Floating-point:


X DBCS:

Notes:

1. If the receiving field is alphanumeric or numeric-edited, and the sending field is a scaled integer (that is, has a P as the rightmost character in its PICTURE character-string), the scaling positions are treated as trailing zeros when the MOVE statement is executed.

2. If the receiving field is numeric and the sending field is alphanumeric literal or ALL literal, then all characters of the literal must be numeric characters.

Table 42 shows valid and invalid elementary moves for each category. In the table:


 Table 42. Valid and Invalid Elementary Moves                                                     
                 
                 
RevisionX                  
RevisionX  Sending Item    
RevisionX  Category        
                             Receiving Item Category                            
RevisionX         
RevisionX  Alpha- 
RevisionX  betic  
RevisionX          
RevisionX  Alpha-  
RevisionX  numeric 
RevisionX  Alpha-  
RevisionX  numeric 
RevisionX  Edited  
RevisionX          
RevisionX          
RevisionX  Numeric 
RevisionX          
RevisionX          
RevisionX  Numeric-
RevisionX  External 
RevisionX  Floating 
RevisionX dPoint    
RevisionX  Internal 
RevisionX  Floating 
RevisionX  Point    
RevisionX          
RevisionX          
RevisionX  DBCS(1) 
 Alphabetic and  
RevisionX  SPACE           
        
RevisionX    Yes  
         
RevisionX    Yes   
         
RevisionX    Yes   
         
RevisionX     No   
         
RevisionX     No   
          
RevisionX     No    
          
RevisionX     No    
         
RevisionX     No   
RevisionX  Alphanumeric(2)  RevisionX    Yes   RevisionX    Yes    RevisionX    Yes    RevisionX  Yes (3)  RevisionX  Yes (3)  RevisionX   Yes(8)   RevisionX   Yes(8)   RevisionX     No   
RevisionX  Alphanumeric-Edi RevisionX ed Yes   RevisionX    Yes    RevisionX    Yes    RevisionX     No    RevisionX     No    RevisionX     No     RevisionX     No     RevisionX     No   
 Numeric Integer 
RevisionX  and ZERO(4)     
        
RevisionX    No   
         
RevisionX    Yes   
         
RevisionX    Yes   
         
RevisionX    Yes   
         
RevisionX    Yes   
          
RevisionX     Yes   
          
RevisionX     Yes   
         
RevisionX     No   
 Numeric         
RevisionX  Non-integer(5)  
        
RevisionX    No   
         
RevisionX     No   
         
RevisionX     No   
         
RevisionX    Yes   
         
RevisionX    Yes   
          
RevisionX     Yes   
          
RevisionX     Yes   
         
RevisionX     No   
RevisionX  Numeric-Edited   RevisionX    No    RevisionX    Yes    RevisionX    Yes    RevisionX    Yes    RevisionX    Yes    RevisionX     Yes    RevisionX     Yes    RevisionX     No   
RevisionX  Floating        
RevisionX  point(6)        
RevisionX         
RevisionX    No   
RevisionX          
RevisionX     No   
RevisionX          
RevisionX     No   
RevisionX          
RevisionX    Yes   
RevisionX          
RevisionX    Yes   
RevisionX           
RevisionX     Yes   
RevisionX           
RevisionX     Yes   
RevisionX          
RevisionX     No   
RevisionX  DBCS(7)          RevisionX    No    RevisionX     No    RevisionX     No    RevisionX     No    RevisionX     No    RevisionX     No     RevisionX     No     RevisionX    Yes   
 Note:                                                                                            
                                                                                                  
RevisionX  (1) Includes DBCS data items.                                                                    
 (2) Includes nonnumeric literals.                                                                
RevisionX  (3) Figurative constants and nonnumeric literals must consist only of numeric characters and     
RevisionX     will be treated as numeric integer fields.                                                    
 (4) Includes integer numeric literals.                                                           
 (5) Includes non-integer numeric literals.                                                       
RevisionX  (6) Includes floating-point literals, external floating-point data items (USAGE DISPLAY), and    
RevisionX     internal floating-point data items (USAGE COMP-1 or USAGE COMP-2).                            
RevisionX  (7) Includes DBCS data-items, DBCS literals, and SPACE.                                          
 (8) Figurative constants and nonnumeric literals must consist only of numeric characters and     
    will be treated as numeric integer fields. The ALL literal cannot be used as a sending item.  

Subtopics:



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.