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 1.1.1.2 COBOL Words with Multi-Byte Characters




X DBCS/EUC characters must conform to the normal COBOL rules for
X user-defined words. The following are the rules for forming user-defined
X words from multi-byte characters:


RevisionX  Table 2. Rules for Forming User-Defined Words from Multi-Byte Characters  
RevisionX  Rule          RevisionX          OS/390 and VM         RevisionX     AIX, OS/2, and Windows   
RevisionX  Use of       
RevisionX  Shift-Out    
RevisionX  Shift-In     
RevisionX  Characters   
RevisionX  DBCS user-defined words      
RevisionX  begin with a shift-out       
RevisionX  character and end with a     
RevisionX  shift-in character.          
RevisionX  Not required                
RevisionX                              
RevisionX                              
RevisionX                              
RevisionX  Value Range  
RevisionX               
RevisionX               
RevisionX               
RevisionX  DBCS user-defined words can  
RevisionX  contain characters whose     
RevisionX  values range from X'41' to   
RevisionX  X'FE' for both bytes.        
RevisionX  Valid value ranges for      
RevisionX  multi-byte characters       
RevisionX  depend on the specific code 
RevisionX  page being used.            
RevisionX  Containing   
RevisionX  Characters   
RevisionX               
RevisionX               
RevisionX               
RevisionX               
RevisionX               
RevisionX               
RevisionX               
RevisionX               
              
RevisionX               
RevisionX               
RevisionX               
RevisionX               
RevisionX               
RevisionX               
RevisionX               
RevisionX               
RevisionX               
RevisionX               
RevisionX  DBCS user-defined words can  
RevisionX  contain only double-byte     
RevisionX  characters, and must contain 
RevisionX  at least one non-EBCDIC      
RevisionX  character.  (Double-byte     
RevisionX  EBCDIC characters are        
RevisionX  represented by X'42' in the  
RevisionX  first byte.)  Single-byte    
RevisionX  characters are not allowed   
RevisionX  in a DBCS word.              
                              
RevisionX  DBCS user-defined words can  
RevisionX  contain both double-byte     
RevisionX  EBCDIC and double-byte non   
RevisionX  EBCDIC characters.  The only 
RevisionX  double-byte EBCDIC           
RevisionX  characters allowed are:  A - 
RevisionX  Z, a - z, 0 - 9, and the     
RevisionX  hyphen (-).  The hyphen      
RevisionX  cannot appear as the first   
RevisionX  or last character.           
RevisionX  A user-defined word can     
RevisionX  consist of both single-byte 
RevisionX  or multiple-byte (including 
RevisionX  double-byte) characters.    
RevisionX  If a character exists in    
RevisionX  both single-byte and        
RevisionX  multiple-byte forms, its    
RevisionX  single-byte and multi-byte  
RevisionX  representations are not     
RevisionX  equivalent.                 
                             
RevisionX                              
RevisionX                              
RevisionX                              
RevisionX                              
RevisionX                              
RevisionX                              
RevisionX                              
RevisionX                              
RevisionX                              
RevisionX                              
RevisionX  Continuation 
RevisionX  Rules        
RevisionX  Words cannot be continued    
RevisionX  across lines.                
RevisionX  Words cannot be continued   
RevisionX  across lines.               
RevisionX  Uppercase /  
RevisionX  Lowercase    
RevisionX  Letters      
RevisionX  Equivalent                   
RevisionX                               
RevisionX                               
RevisionX  Not equivalent              
RevisionX                              
RevisionX                              
RevisionX  Maximum      
RevisionX  Length       
              
RevisionX               
              
RevisionX               
RevisionX               
              
RevisionX               
RevisionX               
RevisionX               
RevisionX               
RevisionX  14 characters                
RevisionX                               
                              
RevisionX                               
                              
RevisionX                               
RevisionX                               
                              
RevisionX                               
RevisionX                               
RevisionX                               
RevisionX                               
RevisionX  15 characters for a DBCS    
RevisionX  code page                   
                             
RevisionX  For AIX only:               
                             
RevisionX  °   7 characters for EUC    
RevisionX      code page IBM_eucTW     
                             
RevisionX  °   10 characters for EUC   
RevisionX      code pages, IBM_eucJP,  
RevisionX      IBM_eucKR, and          
RevisionX      IBM_eucCN               




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.