RPG/400 Help
The following RPG/400 reserved words have special functions within a
program:
- UDATE, *DATE, UMONTH, *MONTH, UYEAR, *YEAR, UDAY, and *DAY allow you to
access the system date, or a portion of it, to be used in the program.
- PAGE, PAGE1-PAGE7 can be used for numbering the pages of a report, for
record sequence numbering, or to sequentially number output fields.
- Figurative constants (*BLANK/*BLANKS, *ZERO/*ZEROS,
*HIVAL, *LOVAL, *ON/*OFF, *ALLX'x1..', and
*ALL'X..') are implied literals that allow
specifications without referring to length.
- *IN and *INxx allow indicators to be referred to as data.
- The following reserved words define symbolic locations within the file
information data structure (INFDS) and the program status data
structure.
- *FILE
- *OPCODE
- *PARMS
- *PROGRAM
- *RECORD
- *ROUTINE
- *STATUS
- The following reserved words provide symbolic labels for the ENDSR
operation for the file and program exception/error subroutines or for the
INFDS.
- *CANCL
- Cancel the program
- *DETC
- Detail calculations
- *DETL
- Detail lines
- *GETIN
- Get input record
- *INIT
- Program initialization
- *OFL
- Overflow lines
- *TERM
- Program ending
- *TOTC
- Total calculations
- *TOTL
- Total lines
- Special words used with operation codes.
- *DEFN
- *ENTRY
- *INZSR
- *LDA
- *LIKE
- *LOCK
- *NAMVAR
- *OFF
- *ON
- *PDA
- *PSSR
- Special words used with translation.
- *FILE
- *EQUATE
- *PLACE allows repetitive placement of fields in an output record.
(See *PLACE for more information.)
- *ALL allows all fields that are defined for an externally described file
to be written on output. (See Rules for Figurative
Constants for more information on *ALL)
[ Top of Page | Previous Page | Next Page | Table of Contents ]
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.