Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
SORT-MERGE/XL Programmer's Guide: HP 3000 MPE/iX Computer Systems > Appendix E Data Types

HP COBOL II/XL

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

Table E-3 HP COBOL II/XL Equivalents of SORT-MERGE/XL Data Types

 SORT-MERGE/XL Data TypeHP COBOL II/XL Equivalent
0byte (character)PIC X(n) or a group
1twos complement (integer) 
 2-byte (short integer)S9(n) COMP (where 1 ≤ n ≤ 4)
 4-byte (integer)S9(n) COMP (where 5 ≤ n ≤ 9)
 8-byte (long integer)S9(n) COMP (where 10 ≤ n ≤ 18)
4packed decimal with odd number of digitsS9(n) COMP-3 (where n is an odd number)
5packed decimal with even number of digitsS9(n) COMP-3 (where n is an even number)
6display trailing signS9(n) SIGN IS TRAILING
7display leading signS9(n) SIGN IS LEADING
8display trailing sign separateS9(n) SIGN IS TRAILING SEPARATE
9Display-Leading-Sign-SeparateS9(n) SIGN IS LEADING SEPARATE
10CharacterPIC X(n) or a group

 

NOTE: The variable n refers to an integer number.
Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.