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
Title: RPG/400 Reference
Document Number: SC09-1817-00
Build Date: 03/25/94 19:15:14 Build Version: 1.2
Document Path: /home/webapps/epubs/htdocs/book/qbkaqv00.boo

CONTENTS Table of Contents


Summarize

COVER         Book Cover 

NOTICES       Notices 

EDITION       Edition Notice 

CONTENTS      Table of Contents 

FRONT_1       Notices 
FRONT_1.1     Programming Interface 
FRONT_1.2     Trademarks and Service Marks 

FRONT_2       About This Manual 
FRONT_2.1     Who Should Use This Manual 

1.0           Chapter 1.  Introduction to RPG/400 
1.1            Directives 
  1.1.1         /TITLE (Positions 7-12) 
  1.1.2         /EJECT (Positions 7-12) 
  1.1.3         /SPACE (Positions 7-12) 
  1.1.4         /COPY (Positions 7-11) 
    1.1.4.1       How the Compiler Recognizes a Compiler /COPY 
    1.1.4.2       Conditions on the Members That Are Copied 
    1.1.4.3       Results of the /COPY during Compile 
    1.1.4.4       Sequence Numbering of the Listing after a Compile 
1.2           Common Entries 
1.3           Symbolic Names 
  1.3.1         Array Names 
  1.3.2         Data Structure Names 
  1.3.3         EXCPT Names 
  1.3.4         Field Names 
  1.3.5         File Names 
  1.3.6         KLIST Names 
  1.3.7         Labels 
  1.3.8         Named Constants 
  1.3.9         PLIST Names 
  1.3.10        Record Names 
  1.3.11        Subfield Names 
  1.3.12        Subroutine Names 
  1.3.13        Table Names 
  1.3.14        Constants 

2.0           Chapter 2.  RPG/400 Program Cycle and Error Handling 
2.1           General RPG/400 Program Cycle 
2.2           Detailed RPG/400 Program Cycle 
  2.2.1         Detailed RPG/400 Object Program Cycle 
  2.2.2         Initialization Subroutine 
    2.2.2.1       Match Fields Routine 
    2.2.2.2       Overflow Routine 
    2.2.2.3       Lookahead Routine 
  2.2.3         Ending a Program without a Primary File 
  2.2.4         Program Control of File Processing 
    2.2.4.1       RPG/400 Exception/Error Handling Routine 
2.3           File Exception/Errors 
  2.3.1         File Information Data Structure 
    2.3.1.1       File Dependent Feedback Information 
    2.3.1.2       Contents of File-Information Data Structure after POST 
  2.3.2         File Exception/Error Subroutine (INFSR) 
  2.3.3         Status Codes 
    2.3.3.1       File Status Codes 
2.4           Program Exception/Errors 
2.5           Program Status Data Structure 
    2.5.1         Program Status Codes 
  2.5.2         Program Exception/Error Subroutine 

3.0           Chapter 3.  RPG/400 Indicators 
3.1           Indicators Defined on RPG/400 Specifications 
  3.1.1         Overflow Indicators 
  3.1.2         Record Identifying Indicators 
    3.1.2.1       Rules for Assigning Record Identifying Indicators 
  3.1.3         Control Level Indicators (L1-L9) 
    3.1.3.1       Rules for Control Level Indicators 
    3.1.3.2       Split Control Field 
  3.1.4         Field Indicators 
    3.1.4.1       Rules for Assigning Field Indicators 
  3.1.5         Resulting Indicators 
    3.1.5.1       Rules for Assigning Resulting Indicators 
3.2           Indicators Not Defined on the RPG/400 Specifications 
  3.2.1         External Indicators 
  3.2.2         Internal Indicators 
    3.2.2.1       First Page Indicator (1P) 
    3.2.2.2       Last Record Indicator (LR) 
    3.2.2.3       Matching Record Indicator (MR) 
  3.2.3         Return Indicator (RT) 
3.3           Using Indicators 
  3.3.1         File Conditioning 
    3.3.1.1       Rules for File Conditioning 
  3.3.2         Field Record Relation Indicators 
    3.3.2.1       Assigning Field Record Relation Indicators 
  3.3.3         Function Key Indicators 
  3.3.4         Halt Indicators (H1-H9) 
  3.3.5         Indicators Conditioning Calculations 
    3.3.5.1       Positions 7 and 8 
    3.3.5.2       Positions 9-17 
  3.3.6         Indicators Conditioning Output 
3.4           Indicators Referred to As Data 
  3.4.1         *IN 
  3.4.2         *INxx 
  3.4.3         Additional Rules 
3.5           Summary of Indicators 

4.0           Chapter 4.  Control Specifications 
4.1           Control Specification Summary Chart 
4.2           Control Specification Statement 
  4.2.1         Position 6 (Form Type) 
  4.2.2         Positions 7-14 (Reserved) 
  4.2.3         Position 15 (Debug) 
  4.2.4         Positions 16-17 (Reserved) 
  4.2.5         Position 18 (Currency Symbol) 
  4.2.6         Position 19 (Date Format) 
  4.2.7         Position 20 (Date Edit) 
  4.2.8         Position 21 (Decimal Notation) 
  4.2.9         Positions 22-25 (Reserved) 
  4.2.10        Position 26 (Alternate Collating Sequence) 
  4.2.11        Positions 27-39 (Reserved) 
  4.2.12        Position 40 (Sign Handling) 
  4.2.13        Position 41 (Forms Alignment) 
  4.2.14        Position 42 (Reserved) 
  4.2.15        Position 43 (File Translation) 
  4.2.16        Positions 44-56 (Reserved) 
  4.2.17        Position 57 (Transparency Check) 
  4.2.18        Positions 58-74 (Reserved) 
  4.2.19        Positions 75-80 (Program Identification) 

5.0           Chapter 5.  File Description Specifications 
5.1           Main File Description Line Summary Chart 
5.2           File Description Specification Statement 
  5.2.1         Position 6 (Form Type) 
  5.2.2         Positions 7-14 (File Name) 
    5.2.2.1       Program Described File 
    5.2.2.2       Externally Described File 
  5.2.3         Position 15 (File Type) 
    5.2.3.1       Input Files 
    5.2.3.2       Output Files 
    5.2.3.3       Update Files 
    5.2.3.4       Combined Files 
  5.2.4         Position 16 (File Designation) 
    5.2.4.1       Primary File 
    5.2.4.2       Secondary File 
    5.2.4.3       Record Address File 
    5.2.4.4       Array or Table File 
    5.2.4.5       Full Procedural File 
  5.2.5         Position 17 (End of File) 
  5.2.6         Position 18 (Sequence) 
  5.2.7         Position 19 (File Format) 
  5.2.8         Positions 20-23 (Reserved) 
  5.2.9         Positions 24-27 (Record Length) 
  5.2.10        Position 28 (Limits Processing) 
  5.2.11        Positions 29-30 (Length of Key or Record Address) 
  5.2.12        Position 31 (Record Address Type) 
    5.2.12.1      Blank = Non-keyed Processing 
    5.2.12.2      A = Character Keys 
    5.2.12.3      P = Packed Keys 
    5.2.12.4      K = Key 
  5.2.13        Position 32 (File Organization) 
    5.2.13.1      Indexed Files 
    5.2.13.2      Nonkeyed Program-Described File 
    5.2.13.3      Record Address File 
  5.2.14        Positions 33-34 (Overflow Indicator) 
  5.2.15        Positions 35-38 (Key Field Starting Location) 
  5.2.16        Position 39 (Extension Code) 
  5.2.17        Positions 40-46 (Device) 
  5.2.18        Positions 47-52 (Reserved) 
  5.2.19        Position 53 (Continuation Lines) 
  5.2.20        Positions 54-59 (Routine) 
  5.2.21        Positions 60-65 (Reserved) 
  5.2.22        Position 66 (File Addition) 
  5.2.23        Positions 67-70 (Reserved) 
  5.2.24        Positions 71-72 (File Condition) 
  5.2.25        Positions 73-74 (Reserved) 
  5.2.26        Positions 75-80 (Comments) 
5.3           File Types and Processing Methods 
  5.3.1         Random-by-Key Processing 
5.4           Continuation Line 
  5.4.1         Continuation Line Summary Chart 
  5.4.2         Continuation Line Options Summary Chart 
  5.4.3         PRTCTL Data Structure 

6.0           Chapter 6.  Extension Specifications 
6.1           Extension Specification Summary Chart 
6.2           Extension Specification Statement 
  6.2.1         Position 6 (Form Type) 
  6.2.2         Positions 7-10 (Reserved) 
  6.2.3         Positions 11-18 (From File Name) 
  6.2.4         Positions 19-26 (To File Name) 
  6.2.5         Positions 27-32 (Array or Table Name) 
  6.2.6         Positions 33-35 (Entries per Record) 
  6.2.7         Positions 36-39 (Entries per Array or Table) 
  6.2.8         Positions 40-42 (Length of Entry) 
  6.2.9         Position 43 (Data Format) 
  6.2.10        Position 44 (Decimal Positions) 
  6.2.11        Position 45 (Sequence) 
  6.2.12        Positions 46-57 (Second Array Description) 
  6.2.13        Positions 58-74 (Comments) 
  6.2.14        Positions 75-80 (Comments) 

7.0           Chapter 7.  Line Counter Specifications 
7.1           Line Counter Specification Summary Chart 
7.2           Line Counter Specification Statement 
  7.2.1         Position 6 (Form Type) 
  7.2.2         Positions 7-14 (File Name) 
  7.2.3         Positions 15-17 (Lines Per Page) 
  7.2.4         Positions 18-19 (Form Length) 
  7.2.5         Positions 20-22 (Overflow Line Number) 
  7.2.6         Positions 23-24 (Overflow Line) 
  7.2.7         Positions 25-74 (Reserved) 
  7.2.8         Positions 75-80 (Comments) 

8.0           Chapter 8.  Input Specifications 
8.1           Input Specifications Summary Charts 
  8.1.1         Program Described Files, Record Identification Entries 
  8.1.2         Program Described Files, Field Description Entries 
  8.1.3         Externally Described Files, Record Identification Entries 
  8.1.4         Externally Described Files, Field Description Entries 
  8.1.5         Data Structure Statement Specifications 
  8.1.6         Data Structure Subfield Specifications 
  8.1.7         Named Constant 
  8.1.8         Named Constant Continuation 
8.2           Program Described Files 
  8.2.1         Position 6 (Form Type) 
8.3           Record Identification Entries 
  8.3.1         Positions 7-14 (File Name) 
  8.3.2         Positions 14-16 (Logical Relationship) 
  8.3.3         Positions 15-16 (Sequence) 
    8.3.3.1       Alphabetic Entries 
    8.3.3.2       Numeric Entries 
  8.3.4         Position 17 (Number) 
  8.3.5         Position 18 (Option) 
  8.3.6         Positions 19-20 (Record Identifying Indicator, or **) 
    8.3.6.1       Indicators 
    8.3.6.2       Lookahead Fields 
  8.3.7         Positions 21-41 (Record Identification Codes) 
    8.3.7.1       Positions 21-24, 28-31, and 35-38 (Position) 
    8.3.7.2       Positions 25, 32, and 39 (Not) 
    8.3.7.3       Positions 26, 33, and 40 (Code Part) 
    8.3.7.4       Positions 27, 34, and 41 (Character) 
    8.3.7.5       AND Relationship 
    8.3.7.6       OR Relationship 
  8.3.8         Position 42 (Reserved) 
8.4           Field Description Entries 
  8.4.1         Position 43 (Data Format) 
  8.4.2         Positions 44-51 (Field Location) 
  8.4.3         Position 52 (Decimal Positions) 
  8.4.4         Positions 53-58 (Field Name) 
  8.4.5         Positions 59-60 (Control Level) 
  8.4.6         Positions 61-62 (Matching Fields) 
  8.4.7         Positions 63-64 (Field Record Relation) 
  8.4.8         Positions 65-70 (Field Indicators) 
  8.4.9         Positions 71-74 (Reserved) 
  8.4.10        Positions 75-80 (Comments) 
8.5           Externally Described Files 
  8.5.1         Position 6 (Form Type) 
8.6           Record Identification Entries 
  8.6.1         Positions 7-14 (Record Name) 
  8.6.2         Positions 15-18 (Reserved) 
  8.6.3         Positions 19-20 (Record Identifying Indicator) 
  8.6.4         Positions 21-41 (Record Identification Code) 
  8.6.5         Positions 42-74 (Reserved) 
  8.6.6         Positions 75-80 (Comments) 
8.7           Field Description Entries 
  8.7.1         Positions 7-20 (Reserved) 
  8.7.2         Positions 21-30 (External Field Name) 
  8.7.3         Positions 31-52 (Reserved) 
  8.7.4         Positions 53-58 (Field Name) 
  8.7.5         Positions 59-60 (Control Level) 
  8.7.6         Positions 61-62 (Matching Fields) 
  8.7.7         Positions 63-64 (Reserved) 
  8.7.8         Positions 65-70 (Field Indicators) 
  8.7.9         Positions 71-74 (Reserved) 
  8.7.10        Positions 75-80 (Comments) 
8.8           Data Structure Specifications 
8.9           Data Structure Specification Entries 
  8.9.1         Position 6 (Form Type) 
  8.9.2         Positions 7-12 (Data Structure Name) 
  8.9.3         Positions 13-16 (Reserved) 
  8.9.4         Position 17 (External Description) 
  8.9.5         Position 18 (Option) 
  8.9.6         Positions 19-20 (Record Identifying Indicator) 
  8.9.7         Positions 21-30 (External File Name) 
  8.9.8         Positions 31-43 (Reserved) 
  8.9.9         Positions 44-47 (Data Structure Occurrences) 
  8.9.10        Positions 48-51 (Length) 
  8.9.11        Positions 52-74 (Reserved) 
  8.9.12        Positions 75-80 (Comments) 
8.10          Data Structure Subfield Specifications 
  8.10.1        Position 7 (Reserved) 
  8.10.2        Position 8 (Initialization Option) 
  8.10.3        Positions 9-20 (Reserved) 
  8.10.4        Positions 21-30 (External Field Name) 
  8.10.5        Positions 21-42 (Initialization Value) 
  8.10.6        Positions 31-42 (Reserved) 
  8.10.7        Position 43 (Internal Data Format) 
  8.10.8        Positions 44-51 (Field Location) 
  8.10.9        Position 52 (Decimal Positions) 
  8.10.10       Positions 53-58 (Field Name) 
  8.10.11       Positions 59-74 (Reserved) 
  8.10.12       Positions 75-80 (Comments) 
8.11          Named Constant Specifications 
  8.11.1        Positions 7-20 (Reserved) 
  8.11.2        Positions 21-42 (Constant) 
  8.11.3        Position 43 (Data Type) 
  8.11.4        Positions 44-52 (Reserved) 
  8.11.5        Positions 53-58 (Constant Name) 
  8.11.6        Positions 59-74 (Reserved) 
8.12          Named Constant Continuation Specifications 
  8.12.1        Positions 7-20 (Reserved) 
  8.12.2        Positions 21-42 (Constant) 
  8.12.3        Positions 43-74 (Reserved) 

9.0           Chapter 9.  Calculation Specifications 
9.1           Calculation Specification Summary Chart 
9.2           Calculation Specification Statement 
  9.2.1         Position 6 (Form Type) 
  9.2.2         Positions 7-8 (Control Level) 
    9.2.2.1       Control Level Indicators 
    9.2.2.2       Last Record Indicator 
    9.2.2.3       Subroutine Identifier 
    9.2.2.4       AND/OR Lines Identifier 
  9.2.3         Positions 9-17 (Indicators) 
  9.2.4         Positions 18-27 (Factor 1) 
  9.2.5         Positions 28-32 (Operation) 
  9.2.6         Positions 33-42 (Factor 2) 
  9.2.7         Positions 43-48 (Result Field) 
  9.2.8         Positions 49-51 (Field Length) 
  9.2.9         Position 52 (Decimal Positions) 
  9.2.10        Position 53 (Operation Extender) 
  9.2.11        Positions 54-59 (Resulting Indicators) 
  9.2.12        Positions 60-74 (Comments) 
  9.2.13        Positions 75-80 (Comments) 

10.0          Chapter 10.  Output Specifications 
10.1          Output Specifications Summary Charts 
  10.1.1        Program Described Files, Record Identification and Control Entries (Record Line) 
  10.1.2        Program Described Files, Field Description and Control Entries (Field Line) 
  10.1.3        Externally Described Files, Record Identification and Control Entries 
  10.1.4        Externally Described Files, Field Description and Control Entries 
10.2          Program Described Files 
  10.2.1        Position 6 (Form Type) 
10.3          Record Identification and Control Entries 
  10.3.1        Positions 7-14 (File Name) 
  10.3.2        Positions 14-16 (Logical Relationship) 
  10.3.3        Position 15 (Type) 
  10.3.4        Positions 16-18 (Record Addition/Deletion) 
  10.3.5        Position 16 (Fetch Overflow/Release) 
    10.3.5.1      Fetch Overflow 
    10.3.5.2      Release 
  10.3.6        Positions 17-22 (Space and Skip) 
  10.3.7        Position 17 (Space Before) 
  10.3.8        Position 18 (Space After) 
  10.3.9        Positions 19-20 (Skip Before) 
  10.3.10       Positions 21-22 (Skip After) 
  10.3.11       Positions 23-31 (Output Indicators) 
  10.3.12       Positions 32-37 (EXCPT Name) 
10.4          Field Description and Control Entries 
  10.4.1        Positions 23-31 (Output Indicators) 
  10.4.2        Positions 32-37 (Field Name) 
    10.4.2.1      Field Names, Blanks, Tables and Arrays 
    10.4.2.2      PAGE, PAGE1-PAGE7 
    10.4.2.3      *PLACE 
    10.4.2.4      User Date Reserved Words 
    10.4.2.5      *IN, *INxx, *IN,xx 
  10.4.3        Position 38 (Edit Codes) 
  10.4.4        Position 39 (Blank After) 
  10.4.5        Positions 40-43 (End Position) 
  10.4.6        Position 44 (Data Format) 
  10.4.7        Positions 45-70 (Constant or Edit Word) 
    10.4.7.1      Constants 
    10.4.7.2      Edit Words 
    10.4.7.3      Format Name 
  10.4.8        Positions 71-74 (Reserved) 
  10.4.9        Positions 75-80 (Comments) 
10.5          Externally Described Files 
  10.5.1        Position 6 (Form Type) 
10.6          Record Identification and Control Entries 
  10.6.1        Positions 7-14 (Record Name) 
  10.6.2        Positions 14-16 (Logical Relationship) 
  10.6.3        Position 15 (Type) 
  10.6.4        Position 16 (Release) 
  10.6.5        Positions 16-18 (Record Addition) 
  10.6.6        Positions 16-22 (Fetch Overflow/Space/Skip) 
  10.6.7        Positions 23-31 (Output Indicators) 
  10.6.8        Positions 32-37 (EXCPT Name) 
10.7          Field Description and Control Entries 
  10.7.1        Positions 23-31 (Output Indicators) 
  10.7.2        Positions 32-37 (Field Name) 
  10.7.3        Position 38 (Edit Codes) 
  10.7.4        Position 39 (Blank After) 
  10.7.5        Positions 40-43 (End Position) 
  10.7.6        Position 44 (Data Format) 
  10.7.7        Positions 45-70 (Constant or Edit Word) 
  10.7.8        Positions 71-74 (Reserved) 
  10.7.9        Positions 75-80 (Comments) 

11.0          Chapter 11.  Operation Codes 
11.1          Arithmetic Operations 
11.2          Array Operations 
11.3          Bit Operations 
11.4          Branching Operations 
11.5          Call Operations 
11.6          Compare Operations 
11.7          Data-Area Operations 
11.8          Declarative Operations 
11.9          File Operations 
11.10         Indicator-Setting Operations 
11.11         Information Operations 
11.12         Initialization Operations 
11.13         Message Operation 
11.14         Move Operations 
11.15         Move Zone Operations 
11.16         String Operations 
11.17         Structured Programming Operations 
11.18         Subroutine Operations 
11.19         Test Operations 
11.20         Operation Codes List 
  11.20.1       ACQ (Acquire) 
  11.20.2       ADD (Add) 
  11.20.3       ANDxx (And) 
  11.20.4       BEGSR (Beginning of Subroutine) 
  11.20.5       BITOF (Set Bits Off) 
  11.20.6       BITON (Set Bits On) 
  11.20.7       CABxx (Compare and Branch) 
  11.20.8       CALL (Call a Program) 
  11.20.9       CASxx (Conditionally Invoke Subroutine) 
  11.20.10      CAT (Concatenate Two Character Strings) 
  11.20.11      CHAIN (Random Retrieval from a File) 
  11.20.12      CHECK (Check Characters) 
  11.20.13      CHEKR (Check Reverse) 
  11.20.14      CLEAR (Clear) 
  11.20.15      CLOSE (Close Files) 
  11.20.16      COMIT (Commit) 
  11.20.17      COMP (Compare) 
  11.20.18      DEBUG (Debug Function) 
    11.20.18.1    Records Written for DEBUG 
  11.20.19      DEFN (Field Definition) 
    11.20.19.1    *LIKE DEFN 
    11.20.19.2    *NAMVAR DEFN 
  11.20.20      DELET (Delete Record) 
  11.20.21      DIV (Divide) 
  11.20.22      DO (Do) 
  11.20.23      DOUxx (Do Until) 
  11.20.24      DOWxx (Do While) 
  11.20.25      DSPLY (Display Function) 
  11.20.26      DUMP (Program Dump) 
  11.20.27      ELSE (Else) 
  11.20.28      ENDyy (End a Group) 
  11.20.29      ENDSR (End of Subroutine) 
  11.20.30      EXCPT (Calculation Time Output) 
  11.20.31      EXFMT (Write/Then Read Format) 
  11.20.32      EXSR (Invoke Subroutine) 
  11.20.33      Coding Subroutines 
  11.20.34      FEOD (Force End of Data) 
  11.20.35      FORCE (Force a Certain File to Be Read Next Cycle) 
  11.20.36      FREE (Deactivate a Program) 
  11.20.37      GOTO (Go To) 
  11.20.38      IFxx (If) 
  11.20.39      IN (Retrieve a Data Area) 
  11.20.40      ITER (Iterate) 
  11.20.41      KFLD (Define Parts of a Key) 
  11.20.42      KLIST (Define a Composite Key) 
  11.20.43      LEAVE (Leave a Do Group) 
  11.20.44      LOKUP (Look Up) 
  11.20.45      MHHZO (Move High to High Zone) 
  11.20.46      MHLZO (Move High to Low Zone) 
  11.20.47      MLHZO (Move Low to High Zone) 
  11.20.48      MLLZO (Move Low to Low Zone) 
  11.20.49      MOVE (Move) 
  11.20.50      MOVEA (Move Array) 
    11.20.50.1    Character MOVEA Operations 
    11.20.50.2    Numeric MOVEA Operations 
    11.20.50.3    General MOVEA Operations 
  11.20.51      MOVEL (Move Left) 
  11.20.52      MULT (Multiply) 
  11.20.53      MVR (Move Remainder) 
  11.20.54      NEXT (Next) 
  11.20.55      OCUR (Set/Get Occurrence of a Data Structure) 
  11.20.56      OPEN (Open File for Processing) 
  11.20.57      ORxx (Or) 
  11.20.58      OTHER (Otherwise Select) 
  11.20.59      OUT (Write a Data Area) 
  11.20.60      PARM (Identify Parameters) 
  11.20.61      PLIST (Identify a Parameter List) 
  11.20.62      POST (Post) 
  11.20.63      READ (Read a Record) 
  11.20.64      READC (Read Next Changed Record) 
  11.20.65      READE (Read Equal Key) 
  11.20.66      READP (Read Prior Record) 
  11.20.67      REDPE (Read Prior Equal) 
  11.20.68      REL (Release) 
  11.20.69      RESET (Reset) 
  11.20.70      RETRN (Return to Caller) 
  11.20.71      ROLBK (Roll Back) 
  11.20.72      SCAN (Scan Character String) 
  11.20.73      SELEC (Begin a Select Group) 
  11.20.74      SETGT (Set Greater Than) 
  11.20.75      SETLL (Set Lower Limit) 
  11.20.76      SETOF (Set Off) 
  11.20.77      SETON (Set On) 
  11.20.78      SHTDN (Shut Down) 
  11.20.79      SORTA (Sort an Array) 
  11.20.80      SQRT (Square Root) 
  11.20.81      SUB (Subtract) 
  11.20.82      SUBST (Substring) 
  11.20.83      TAG (Tag) 
  11.20.84      TESTB (Test Bit) 
  11.20.85      TESTN (Test Numeric) 
  11.20.86      TESTZ (Test Zone) 
  11.20.87      TIME (Time of Day) 
  11.20.88      UNLCK (Unlock a Data Area or Release a Record) 
  11.20.89      UPDAT (Modify Existing Record) 
  11.20.90      WHxx (When True Then Select) 
  11.20.91      WRITE (Create New Records) 
  11.20.92      XFOOT (Summing the Elements of an Array) 
  11.20.93      XLATE (Translate) 
  11.20.94      Z-ADD (Zero and Add) 
  11.20.95      Z-SUB (Zero and Subtract) 

12.0          Chapter 12.  RPG/400 Words with Special Functions 
12.1          User Date Special Words 
  12.1.1        Rules for User Date 
12.2          PAGE, PAGE1-PAGE7 
  12.2.1        Rules for PAGE, PAGE1-PAGE7 
12.3          Figurative Constants 
  12.3.1        Rules for Figurative Constants 

13.0          Chapter 13.  Using Arrays and Tables 
13.1          Arrays 
  13.1.1        Array Name and Index 
  13.1.2        The Essential Array Specifications 
  13.1.3        Coding a Run-Time Array 
  13.1.4        Loading a Run-Time Array 
    13.1.4.1      Array Information in One Record 
    13.1.4.2      Array Information in More Than One Record 
    13.1.4.3      Sequencing Run-Time Arrays 
  13.1.5        Coding a Compile-Time Array 
  13.1.6        Loading a Compile-Time Array 
    13.1.6.1      Rules for Array Input Records 
  13.1.7        Coding a Prerun-Time Array 
  13.1.8        Loading a Prerun-Time Array 
13.2          Data Structure Initialization with Arrays 
  13.2.1        Run-Time Arrays 
  13.2.2        Compile-Time and Prerun-Time Arrays 
13.3          Defining More than one Array 
  13.3.1        Two Run-Time Arrays 
  13.3.2        Mixing Compile-Time and Prerun-Time Arrays 
  13.3.3        Arrays in Alternating Format 
13.4          Searching Arrays 
  13.4.1        Searching an Array without an Index 
  13.4.2        Searching an Array with an Index 
13.5          Specifying Arrays 
  13.5.1        Specifying an Array in Calculations 
13.6          Modifying Contents of Arrays 
  13.6.1        Adding Entries to Arrays 
13.7          Array Output 
  13.7.1        Editing Entire Arrays 
13.8          Tables 
    13.8.1        LOKUP with One Table 
    13.8.2        LOKUP with Two Tables 
    13.8.3        Specifying the Table Element Found in a LOKUP Operation 

14.0          Chapter 14.  Editing Numeric Fields 
14.1          Edit Codes 
  14.1.1        Simple Edit Codes 
  14.1.2        Combination Edit Codes 
  14.1.3        User-Defined Edit Codes 
  14.1.4        Editing Considerations 
  14.1.5        Summary of Edit Codes 
14.2          Edit Words 
  14.2.1        How to Code an Edit Word 
  14.2.2        Parts of an Edit Word 
    14.2.2.1      Forming the Body of an Edit Word 
    14.2.2.2      Forming the Status of an Edit Word 
    14.2.2.3      Formatting the Expansion of an Edit Word 
  14.2.3        Summary of Coding Rules for Edit Words 
  14.2.4        Formatting Edit Words 
14.3          Editing Externally Described Files 

15.0          Chapter 15.  General File Considerations 
15.1          Primary/Secondary Multi-file Processing 
  15.1.1        Multi-file Processing with No Match Fields 
  15.1.2        Multi-file Processing with Match Fields 
    15.1.2.1      Assigning Match Field Values (M1-M9) 
    15.1.2.2      Processing Matching Records 
15.2          Alternate Collating Sequence 
  15.2.1        Changing the Collating Sequence 
  15.2.2        Specifying an Alternate Collating Sequence 
  15.2.3        Formatting the Alternate Collating Sequence Records 
15.3          File Translation 
  15.3.1        Specifying File Translation 
  15.3.2        Translating One File or All Files 
  15.3.3        Translating More Than One File 
    15.3.3.1      Specifying the Files 
    15.3.3.2      Specifying the Table 
15.4          Special File 

16.0          Chapter 16.  Using Double-Byte Character Set (DBCS) Data in RPG/400 Programs 
16.1          Where You Can Use DBCS Data in RPG/400 Programs 
16.2          How to Work with DBCS Literals in RPG/400 Programs 
  16.2.1        Transparent Literals and Constants 
  16.2.2        Additional Considerations for Using DBCS Data 
  16.2.3        Example of Coding DBCS Data in an RPG/400 Program 

A.0           Appendix A.  RPG/400 Restrictions 

B.0           Appendix B.  EBCDIC Collating Sequence 
B.1           EBCDIC Collating Sequence 

BIBLIOGRAPHY  Bibliography 

INDEX         Index 


Previous Topic Next Topic Copyright IBM Corp. 1994

IBM Library Server Copyright 1989, 2005 IBM Corporation. All rights reserved.