RPG/400 Help


RPG/400 Restrictions

*--------------------------------*-------------------------------*
| FUNCTION                       | RESTRICTION                   |
*--------------------------------*-------------------------------*
| AN/OR lines (positions 7 and 8 | Maximum of 7 per operation.   |
| of calculation specifications) |                               |
*--------------------------------*-------------------------------*
| Arrays and tables              | Maximum of 200 per program.   |
*--------------------------------*-------------------------------*
| Array/table input record       | Maximum length is 80.         |
| length for compile time        |                               |
*--------------------------------*-------------------------------*
| Character field length         | Maximum length is 256.        |
*--------------------------------*-------------------------------*
| Control fields (position 59    | Maximum length is 256.        |
| and 60 of input specifica-     |                               |
| tions) length                  |                               |
*--------------------------------*-------------------------------*
| Data structure length          | Maximum of 9999.              |
*--------------------------------*-------------------------------*
| Data structure occurrences     | Maximum of 9999 per data      |
| (number of)                    | structure.                    |
*--------------------------------*-------------------------------*
| Edit Word                      | Maximum length of 24 for      |
|                                | literals or 115 for named     |
|                                | constants.                    |
*--------------------------------*-------------------------------*
| Elements in an array/table     | Maximum of 9999 per           |
| (positions 36 through 39 of    | array/table.                  |
| extension specifications)      |                               |
*--------------------------------*-------------------------------*
| File                           | Maximum of 50 per program.    |
*--------------------------------*-------------------------------*
| Levels of nesting in struc-    | Maximum of 100.               |
| tured groups                   |                               |
*--------------------------------*-------------------------------*
| Look-ahead                     | Can be specified only once    |
|                                | for a file.  Can be specified |
|                                | only for primary and sec-     |
|                                | ondary files.                 |
*--------------------------------*-------------------------------*
| Named Constant                 | Maximum length of 256 for     |
|                                | character named constant, 512 |
|                                | for hexadecimal named con-    |
|                                | stant, constant, 128 for DBCS |
|                                | named constant, and 30 digits |
|                                | with 9 decimal positions for  |
|                                | numeric named constant.       |
*--------------------------------*-------------------------------*
| Overflow indicator             | Only 1 unique overflow indi-  |
|                                | cator can be specified per    |
|                                | printer file.                 |
*--------------------------------*-------------------------------*
| Parameters                     | Maximum of 255                |
*--------------------------------*-------------------------------*
| Primary file (P in position 16 | Maximum of 1 per program.     |
| of file description specifica- |                               |
| tions)                         |                               |
*--------------------------------*-------------------------------*
| Printer file (PRINTER in posi- | Maximum of 8 per program.     |
| tions 40 through 46 of file    |                               |
| description specifications)    |                               |
*--------------------------------*-------------------------------*
| Printing lines per page        | Minimum of 2; maximum of 112. |
*--------------------------------*-------------------------------*
| Program status data structure  | Only 1 allowed per program.   |
*--------------------------------*-------------------------------*
| Record address file (R in      | Only 1 allowed per program.   |
| position 16 of file            |                               |
| description specifications)    |                               |
*--------------------------------*-------------------------------*
| Record length for program      | Maximum length is 9999.  (1)  |
| described file (positions 24   |                               |
| through 27 of file description |                               |
| specifications)                |                               |
*--------------------------------*-------------------------------*
| Structured groups (see levels  |                               |
| of nesting)                    |                               |
*--------------------------------*-------------------------------*
| Subroutines                    | Maximum of 254 per program.   |
*--------------------------------*-------------------------------*
| Tables (see arrays)            |                               |
*--------------------------------*-------------------------------*
| (1)Any device record size restraints override this value.      |
*----------------------------------------------------------------*


[ Top of Page | Previous Page | Next Page | Table of Contents ]