HP 3000 Manuals

Ap M. System Limits and Programming Restrictions [ COBOL/HP-UX Operating Guide for the Series 700 and 800 ] MPE/iX 5.0 Documentation


COBOL/HP-UX Operating Guide for the Series 700 and 800

Appendix M  System Limits and Programming Restrictions 

COBOL System Limits 

This appendix gives information on the maximum size or number that can be
used for various parameters.  The COBOL system limits equal, or exceed,
all those listed in the X/Open CAE, COBOL Language (XPG4).

Specifications 

   *   Maximum size of:

       Data Division                   256 Mbytes
       Procedure Division              16 Mbytes per COBOL segment
                                       (up to 50 segments plus root
                                       segment)

   *   Maximum file sizes (bytes): 

       Sequential file                 No limit
       Line sequential file            No limit
       Relative file                   No limit
       Indexed sequential file         No limit

       If record locking is used:

       Relative file                   No limit
       Indexed sequential file         No limit

   *   Maximum file sizes (records):

       Sequential file                 depends on record size and file
                                       size
       Line sequential file            depends on record size and file
                                       size
       Relative file                   depends on record size and file
                                       size
       Indexed sequential file         any

   *   Maximum record sizes (bytes):

                               Fixed      Variable 

Sequential files               65526      65526
Line sequential files          65526      N/A
Relative files                 65526      65526
Indexed files                  32767      65526

   *   Index keys:

       Maximum keys per file           255
       (including split-key
       components)

       Maximum length of any one key   1016
       (bytes) (performance best
       below 512)

       Maximum number of records       64K
       containing the same duplicate
       key value

       Maximum number of components    62
       in a split key

       Maximum number of alternate     254
       keys

   *   Maximum open files:

       Sequential files/               255 or your operating system
       Line Sequential files           limit, whichever is the smaller
       Relative files/                 128 or half your operating system
       Indexed sequential files        limit, whichever is the smaller

   *   Maximum length of:

       PROGRAM-ID name                 30 characters
       Programmer defined words        30 characters
       Path names                      100 characters
       File-names (including program   14 characters
       source files, copy file-names
       and .ext file-names)
       Literals                        160 bytes
       Entry point names               30 characters

       Contents of dd _environment     up to the maximum operating system
       variables                       size for each path

   *   Maximum number of:

       Table subscripts                16
       Arguments in a CALL statement   255
       USING parameters per entry      255
       point
       Literals                        No limit

   *   Maximum number of:

       Records in a file (all file     No limit
       types)
       Record locks                    Operating system dependent
       File locks                      Operating system dependent

   *   Maximum length of data items:

       Alphanumeric                    256 Mbytes
       Alphanumeric Edited/            Consist of 32 parts,
       Numeric Edited                  each of which can contain up to 16
                                       occurrences of a single edited
                                       character type
       Numeric                         18 digits
       ANSI ACCEPT                     103 characters
       ANSI DISPLAY                    No limit
       Full screen DISPLAY             One screen less one character (the
                                       last character position on the
                                       screen is not usable)
       Full screen ACCEPT              One screen less one character (the
                                       last character position on the
                                       screen is not usable)

   *   Maximum nesting: 

       IFs (compiled code only)        255

       PERFORM statements in .int      100
       programs

       PERFORM statements in .gnt      no limit other than the size of
       programs                        the system stack

       PERFORM n times                 22

   *   Maximum table dimensions:
       (that is, maximum number of subscripts)    16

   *   Maximum program size:      No limit

   *   Sort keys:

       Maximum sort key size (with     1016
       RTS)
       Maximum sort key size (with     1016
       EXTSM)
       Maximum number of sort keys     25 

   *   Maximum number of data- and procedure-names:        64K

   *   Maximum size of an external data item:      64K

   *   Maximum OCCURS in Screen Section: 

              This is limited by the number of fields and/or the levels
              of occurrence.  It is not possible to give an actual limit,
              but exceeding the limit will result in an error when you
              compile your program.

   *   Maximum number of files in a MERGE file-name GIVING/USING phrase:
       10



MPE/iX 5.0 Documentation