Contents

About This Reference
Who Should Use This Reference
Prerequisite and Related Information
How to Send Your Comments
What's New
What's New in this Release
What's New in V6R1
What's New in V5R4?
What's New in V5R3?
What's New in V5R2?
What's New in V5R1?
What's New in V4R4?
What's New in V4R2?
What's New in V3R7?
What's New in V3R6/V3R2?
RPG IV Concepts
Chapter 1. Symbolic Names and Reserved Words
Symbolic Names
Array Names
Conditional Compile Names
Data Structure Names
EXCEPT Names
Field Names
KLIST Names
Labels
Named Constants
PLIST Names
Prototype Names
Record Names
Subroutine Names
Table Names
RPG IV Words with Special Functions/Reserved Words
User Date Special Words
Rules for User Date
PAGE, PAGE1-PAGE7
Rules for PAGE, PAGE1-PAGE7
Chapter 2. Compiler Directives
/FREE... /END-FREE (Positions 7-11)
/TITLE (Positions 7-12)
/EJECT (Positions 7-12)
/SPACE (Positions 7-12)
/COPY or /INCLUDE
Results of the /COPY or /INCLUDE during Compile
Nested /COPY or /INCLUDE
Using /COPY, /INCLUDE in Source Files with Embedded SQL
Conditional Compilation Directives
Defining Conditions
Predefined Conditions
Condition Expressions
Testing Conditions
The /EOF Directive
Handling of Directives by the RPG Preprocessor
Chapter 3. Procedures and the Program Logic Cycle
Subprocedure Definition
Procedure Interface Definition
Return Values
Scope of Definitions
Subprocedures and Subroutines
Program Flow in RPG Modules: Cycle Versus Linear
Cycle Module
Linear Module
Module Initialization
RPG Cycle and other implicit Logic
Program Cycle
Subprocedure Calculations
Implicit Opening of Files and Locking of Data Areas
Implicit Closing of Files and Unlocking of Data Areas
Chapter 4. RPG IV Indicators
Indicators Defined on RPG IV Specifications
Overflow Indicators
Record Identifying Indicators
Control Level Indicators (L1-L9)
Field Indicators
Resulting Indicators
Indicators Not Defined on the RPG IV Specifications
External Indicators
Internal Indicators
Return Indicator (RT)
Using Indicators
File Conditioning
Field Record Relation Indicators
Function Key Indicators
Halt Indicators (H1-H9)
Indicators Conditioning Calculations
Indicators Used in Expressions
Indicators Conditioning Output
Indicators Referred to As Data
*IN
*INxx
Additional Rules
Summary of Indicators
Chapter 5. File and Program Exception/Errors
File Exception/Errors
File Information Data Structure
File Exception/Error Subroutine (INFSR)
Program Exception/Errors
Program Status Data Structure
Program Exception/Error Subroutine
Chapter 6. General File Considerations
Global and Local Files
File Parameters
Variables Associated with Files
Example of passing a file and passing a data structure with the associated variables.
Primary/Secondary Multi-file Processing
Multi-file Processing with No Match Fields
Multi-file Processing with Match Fields
File Translation
Specifying File Translation
Translating One File or All Files
Translating More Than One File
Definitions
Chapter 7. Defining Data and Prototypes
General Considerations
Scope of Definitions
Storage of Definitions
Standalone Fields
Variable Initialization
Constants
Literals
Named Constants
Figurative Constants
Data Structures
Qualifying Data Structure Names
Array Data Structures
Defining Data Structure Parameters in a Prototype or Procedure Interface
Defining Data Structure Subfields
Special Data Structures
Data Structure Examples
Prototypes and Parameters
Prototypes
Prototyped Parameters
Procedure Interface
Chapter 8. Using Arrays and Tables
Arrays
Array Name and Index
The Essential Array Specifications
Coding a Run-Time Array
Loading a Run-Time Array
Coding a Compile-Time Array
Loading a Compile-Time Array
Coding a Prerun-Time Array
Example of Coding Arrays
Loading a Prerun-Time Array
Sequence Checking for Character Arrays
Initializing Arrays
Run-Time Arrays
Compile-Time and Prerun-Time Arrays
Defining Related Arrays
Searching Arrays
Searching an Array Without an Index
Searching an Array Data Structure
Searching an Array with an Index
Using Arrays
Specifying an Array in Calculations
Sorting Arrays
Sorting using part of the array as a key
Sorting an Array Data Structure
Array Output
Editing Entire Arrays
Using Dynamically-Sized Arrays
Tables
LOOKUP with One Table
LOOKUP with Two Tables
Specifying the Table Element Found in a LOOKUP Operation
Chapter 9. Data Types and Data Formats
Internal and External Formats
Internal Format
External Format
Character Data Type
Character Format
Indicator Format
Graphic Format
UCS-2 Format
Variable-Length Character, Graphic and UCS-2 Formats
Conversion between Character, Graphic and UCS-2 Data
Alternate Collating Sequence
Numeric Data Type
Binary Format
Float Format
Integer Format
Packed-Decimal Format
Unsigned Format
Zoned-Decimal Format
Considerations for Using Numeric Formats
Representation of Numeric Formats
Date Data Type
Separators
Initialization
Time Data Type
Separators
Initialization
*JOBRUN
Timestamp Data Type
Separators
Initialization
Object Data Type
Where You Can Specify an Object Field
Basing Pointer Data Type
Setting a Basing Pointer
Examples
Procedure Pointer Data Type
Database Null Value Support
User Controlled Support for Null-Capable Fields and Key Fields
Input-Only Support for Null-Capable Fields
ALWNULL(*NO)
Error Handling for Database Data Mapping Errors
Chapter 10. Editing Numeric Fields
Edit Codes
Simple Edit Codes
Combination Edit Codes
User-Defined Edit Codes
Editing Considerations
Summary of Edit Codes
Edit Words
How to Code an Edit Word
Parts of an Edit Word
Summary of Coding Rules for Edit Words
Editing Externally Described Files
Specifications
Chapter 11. About Specifications
RPG IV Specification Types
Main Source Section Specifications
Subprocedure Specifications
Program Data
Common Entries
Syntax of Keywords
Continuation Rules
Specification Type Not Known
Chapter 12. Control Specifications
Using a Data Area as a Control Specification
Control-Specification Statement
Position 6 (Form Type)
Positions 7-80 (Keywords)
Control-Specification Keywords
ALLOC(*STGMDL | *TERASPACE | *SNGLVL)
ACTGRP(*STGMDL | *NEW | *CALLER | 'activation-group-name')
ALTSEQ{(*NONE | *SRC | *EXT)}
ALWNULL(*NO | *INPUTONLY | *USRCTL)
AUT(*LIBRCRTAUT | *ALL | *CHANGE | *USE | *EXCLUDE | 'authorization-list-name')
BNDDIR('binding-directory-name' {:'binding-directory-name'...})
CCSID(*GRAPH : parameter | *UCS2 : number | *CHAR : *JOBRUN)
COPYNEST(number)
COPYRIGHT('copyright string')
CURSYM('sym')
CVTOPT(*{NO}DATETIME *{NO}GRAPHIC *{NO}VARCHAR *{NO}VARGRAPHIC)
DATEDIT(fmt{separator})
DATFMT(fmt{separator})
DEBUG{(*INPUT | *DUMP | *XMLSAX | *NO | *YES)}
DECEDIT(*JOBRUN | 'value')
DECPREC(30|31|63)
DFTACTGRP(*YES | *NO)
DFTNAME(rpg_name)
ENBPFRCOL(*PEP | *ENTRYEXIT | *FULL)
EXPROPTS(*MAXDIGITS | *RESDECPOS)
EXTBININT{(*NO | *YES)}
FIXNBR(*{NO}ZONED *{NO}INPUTPACKED)
FLTDIV{(*NO | *YES)}
FORMSALIGN{(*NO | *YES)}
FTRANS{(*NONE | *SRC)}
GENLVL(number)
INDENT(*NONE | 'character-value')
INTPREC(10 | 20)
LANGID(*JOBRUN | *JOB | 'language-identifier')
MAIN(main_procedure_name)
NOMAIN
OPENOPT (*NOINZOFL | *INZOFL)
OPTIMIZE(*NONE | *BASIC | *FULL)
OPTION(*{NO}XREF *{NO}GEN *{NO}SECLVL *{NO}SHOWCPY *{NO}EXPDDS *{NO}EXT *{NO}SHOWSKP) *{NO}SRCSTMT) *{NO}DEBUGIO) *{NO}UNREF
PGMINFO(*PCML | *NO { : *MODULE } )
PRFDTA(*NOCOL | *COL)
SRTSEQ(*HEX | *JOB | *JOBRUN | *LANGIDUNQ | *LANGIDSHR | 'sort-table-name')
STGMDL(*INHERIT | *SNGLVL | *TERASPACE)
TEXT(*SRCMBRTXT | *BLANK | 'description')
THREAD(*CONCURRENT | *SERIALIZE)
TIMFMT(fmt{separator})
TRUNCNBR(*YES | *NO)
USRPRF(*USER | *OWNER)
Control Specifications Help
Control Specifications
Control-Specification Keywords
Control-Specification Compile-Option Keywords
Chapter 13. File Description Specifications
File Description Specification Statement
File-Description Keyword Continuation Line
Position 6 (Form Type)
Positions 7-16 (File Name)
Position 17 (File Type)
Position 18 (File Designation)
Position 19 (End of File)
Position 20 (File Addition)
Position 21 (Sequence)
Position 22 (File Format)
Positions 23-27 (Record Length)
Position 28 (Limits Processing)
Positions 29-33 (Length of Key or Record Address)
Position 34 (Record Address Type)
Position 35 (File Organization)
Positions 36-42 (Device)
Position 43 (Reserved)
Positions 44-80 (Keywords)
File-Description Keywords
ALIAS
BLOCK(*YES |*NO)
COMMIT{(rpg_name)}
DATFMT(format{separator})
DEVID(fieldname)
EXTDESC(external-filename)
EXTFILE(filename | *EXTDESC)
EXTIND(*INUx)
EXTMBR(membername)
FORMLEN(number)
FORMOFL(number)
IGNORE(recformat{:recformat...})
INCLUDE(recformat{:recformat...})
INDDS(data_structure_name)
INFDS(DSname)
INFSR(SUBRname)
KEYLOC(number)
LIKEFILE(parent-filename)
MAXDEV(*ONLY | *FILE)
OFLIND(indicator)
PASS(*NOIND)
PGMNAME(program_name)
PLIST(Plist_name)
PREFIX(prefix{:nbr_of_char_replaced})
PRTCTL(data_struct{:*COMPAT})
QUALIFIED
RAFDATA(filename)
RECNO(fieldname)
RENAME(Ext_format:Int_format)
SAVEDS(DSname)
SAVEIND(number)
SFILE(recformat:rrnfield)
SLN(number)
STATIC
TEMPLATE
TIMFMT(format{separator})
USROPN
File Types and Processing Methods
File Description Specifications Help
File Description Specifications Program-Described
Keywords Program Described
File Description Specifications Externally Described
Keywords Externally Described
File-Description Keywords
Chapter 14. Definition Specifications
Definition Specification Statement
Definition Specification Keyword Continuation Line
Definition Specification Continued Name Line
Position 6 (Form Type)
Positions 7-21 (Name)
Position 22 (External Description)
Position 23 (Type of Data Structure)
Positions 24-25 (Definition Type)
Positions 26-32 (From Position)
Positions 33-39 (To Position / Length)
Position 40 (Internal Data Type)
Positions 41-42 (Decimal Positions)
Position 43 (Reserved)
Positions 44-80 (Keywords)
Definition-Specification Keywords
ALIAS
ALIGN
ALT(array_name)
ALTSEQ(*NONE)
ASCEND
BASED(basing_pointer_name)
CCSID(number | *DFT)
CLASS(*JAVA:class-name)
CONST{(constant)}
CTDATA
DATFMT(format{separator})
DESCEND
DIM(numeric_constant)
DTAARA{({*VAR:} data_area_name)}
EXPORT{(external_name)}
EXTFLD(field_name)
EXTFMT(code)
EXTNAME(file-name{:format-name}{:*ALL| *INPUT|*OUTPUT|*KEY})
EXTPGM(name)
EXTPROC({*CL|*CWIDEN|*CNOWIDEN| {*JAVA:class-name:}}name)
FROMFILE(file_name)
IMPORT{(external_name)}
INZ{(initial value)}
LEN(length)
LIKE(name)
LIKEDS(data_structure_name)
LIKEFILE(filename)
LIKEREC(intrecname{:*ALL|*INPUT|*OUTPUT |*KEY})
NOOPT
OCCURS(numeric_constant)
OPDESC
OPTIONS(*NOPASS *OMIT *VARSIZE *STRING *TRIM *RIGHTADJ *NULLIND)
OVERLAY(name{:pos | *NEXT})
PACKEVEN
PERRCD(numeric_constant)
PREFIX(prefix{:nbr_of_char_replaced})
PROCPTR
QUALIFIED
RTNPARM
STATIC{(*ALLTHREAD)}
TEMPLATE
TIMFMT(format{separator})
TOFILE(file_name)
VALUE
VARYING{(2 | 4)}
Summary According to Definition Specification Type
Definition Specification Help
Definition Specifications
Definition of Externally Described Data Structure
Externally Described Data Structure Keywords
Definition of Program-Described Data Structure
Program-Described Data Structure Keywords
Definition of Externally Described Data Structure Subfield
Externally Described Data Structure Subfield Keywords
Definition of Program-Described Data Structure Subfield
Program-Described Data Structure Subfield Keywords
Definition of Named Constant
Named Constant Keyword
Definition of Standalone Field
Standalone Field Keywords
Definition of Prototype or Procedure Interface
Prototype and Procedure Interface Keywords
Definition of Prototyped Parameter
Prototyped Parameter Keywords
Definition-Specification Keywords
Chapter 15. Input Specifications
Input Specification Statement
Program Described
Externally Described
Program Described Files
Position 6 (Form Type)
Record Identification Entries
Positions 7-16 (File Name)
Positions 16-18 (Logical Relationship)
Positions 17-18 (Sequence)
Position 19 (Number)
Position 20 (Option)
Positions 21-22 (Record Identifying Indicator, or **)
Positions 23-46 (Record Identification Codes)
Field Description Entries
Position 6 (Form Type)
Positions 7-30 (Reserved)
Positions 31-34 (Data Attributes - External)
Position 35 (Date/Time Separator)
Position 36 (Data Format)
Positions 37-46 (Field Location)
Positions 47-48 (Decimal Positions)
Positions 49-62 (Field Name)
Positions 63-64 (Control Level)
Positions 65-66 (Matching Fields)
Positions 67-68 (Field Record Relation)
Positions 69-74 (Field Indicators - Program Described)
Externally Described Files
Position 6 (Form Type)
Record Identification Entries
Positions 7-16 (Record Name)
Positions 17-20 (Reserved)
Positions 21-22 (Record Identifying Indicator)
Positions 23-80 (Reserved)
Field Description Entries
Positions 7-20 (Reserved)
Positions 21-30 (External Field Name)
Positions 31-48 (Reserved)
Positions 49-62 (Field Name)
Positions 63-64 (Control Level)
Positions 65-66 (Matching Fields)
Positions 67-68 (Reserved)
Positions 69-74 (Field Indicators - Externally Described)
Positions 75-80 (Reserved)
Input Specifications Help
Input Specifications Record Layout
Input Specifications Field Layout
Input Specification Logical Relationship
Chapter 16. Calculation Specifications
Traditional Syntax
Calculation Specification Extended Factor-2 Continuation Line
Position 6 (Form Type)
Positions 7-8 (Control Level)
Positions 9-11 (Indicators)
Positions 12-25 (Factor 1)
Positions 26-35 (Operation and Extender)
Positions 36-49 (Factor 2)
Positions 50-63 (Result Field)
Positions 64-68 (Field Length)
Positions 69-70 (Decimal Positions)
Positions 71-76 (Resulting Indicators)
Extended Factor 2 Syntax
Positions 7-8 (Control Level)
Positions 9-11 (Indicators)
Positions 12-25 (Factor 1)
Positions 26-35 (Operation and Extender)
Positions 36-80 (Extended Factor 2)
Free-Form Syntax
Positions 8-80 (Free-form Operations)
Chapter 17. Output Specifications
Output Specification Statement
Program Described
Externally Described
Program Described Files
Position 6 (Form Type)
Record Identification and Control Entries
Positions 7-16 (File Name)
Positions 16-18 (Program-described Logical Relationship)
Position 17 (Type – Program-Described File)
Positions 18-20 (Record Addition/Deletion)
Position 18 (Fetch Overflow/Release)
Positions 21-29 (File Record ID Indicators)
Positions 30-39 (EXCEPT Name)
Positions 40-51 (Space and Skip)
Positions 40-42 (Space Before)
Positions 43-45 (Space After)
Positions 46-48 (Skip Before)
Positions 49-51 (Skip After)
Field Description and Control Entries
Positions 7-20 (Reserved)
Positions 21-29 (File Field Description Indicators)
Positions 30-43 (Field Name)
Position 44 (Edit Codes)
Edit Code Summary
Position 45 (Blank After)
Positions 47-51 (End Position)
Position 52 (Data Format)
Positions 53-80 (Constant, Edit Word, Data Attributes, Format Name)
Externally Described Files
Position 6 (Form Type)
Record Identification and Control Entries
Positions 7-16 (Record Name)
Positions 16-18 (External Logical Relationship)
Position 17 (Type – Externally Described File)
Position 18 (Release)
Positions 18-20 (Record Addition)
Positions 21-29 (External File Record ID Indicators)
Positions 30-39 (EXCEPT Name)
Field Description and Control Entries
Positions 21-29 (External Field Description Indicators)
Positions 30-43 (Field Name)
Position 45 (Blank After)
Output Specifications Help
Output Specification Record Layout
Output Specification Field Layout
Output Logical Relationship
Chapter 18. Procedure Specifications
Procedure Specification Statement
Procedure Specification Keyword Continuation Line
Procedure Specification Continued Name Line
Position 6 (Form Type)
Positions 7-21 (Name)
Position 24 (Begin/End Procedure)
Positions 44-80 (Keywords)
Procedure-Specification Keywords
EXPORT
SERIALIZE
Procedure Specification Help
Procedure Specifications
Procedure-Specification Keywords
Operations, Expressions, and Functions
Chapter 19. Operations
Operation Codes
Built-in Functions
Arithmetic Operations
Ensuring Accuracy
Performance Considerations
Integer and Unsigned Arithmetic
Arithmetic Operations Examples
Array Operations
Bit Operations
Branching Operations
Call Operations
Prototyped Calls
Operational Descriptors
Parsing Program Names on a Call
Parsing System Built-In Names
Value of *ROUTINE
Compare Operations
Conversion Operations
Data-Area Operations
Date Operations
Unexpected Results
Declarative Operations
Error-Handling Operations
File Operations
Keys for File Operations
Indicator-Setting Operations
Information Operations
Initialization Operations
Memory Management Operations
Message Operation
Move Operations
Moving Character, Graphic, UCS-2, and Numeric Data
Moving Date-Time Data
Move Zone Operations
Result Operations
Size Operations
String Operations
Structured Programming Operations
Subroutine Operations
Coding Subroutines
Test Operations
XML Operations
Operation Codes
Chapter 20. Expressions
General Expression Rules
Expression Operands
Expression Operators
Operation Precedence
Data Types
Data Types Supported by Expression Operands
Format of Numeric Intermediate Results
Precision Rules for Numeric Operations
Using the Default Precision Rules
Precision of Intermediate Results
Example of Default Precision Rules
Using the "Result Decimal Position" Precision Rules
Example of "Result Decimal Position" Precision Rules
Short Circuit Evaluation
Order of Evaluation
Chapter 21. Built-in Functions
%ABS (Absolute Value of Expression)
%ADDR (Get Address of Variable)
%ALLOC (Allocate Storage)
%BITAND (Bitwise AND Operation)
%BITNOT (Invert Bits)
%BITOR (Bitwise OR Operation)
%BITXOR (Bitwise Exclusive-OR Operation)
Examples of Bit Operations
%CHAR (Convert to Character Data)
%CHECK (Check Characters)
%CHECKR (Check Reverse)
%DATE (Convert to Date)
%DAYS (Number of Days)
%DEC (Convert to Packed Decimal Format)
Numeric or character expression
Date, time or timestamp expression
%DECH (Convert to Packed Decimal Format with Half Adjust)
%DECH Examples
%DECPOS (Get Number of Decimal Positions)
%DIFF (Difference Between Two Date, Time, or Timestamp Values)
%DIV (Return Integer Portion of Quotient)
%EDITC (Edit Value Using an Editcode)
%EDITFLT (Convert to Float External Representation)
%EDITW (Edit Value Using an Editword)
%ELEM (Get Number of Elements)
%EOF (Return End or Beginning of File Condition)
%EQUAL (Return Exact Match Condition)
%ERROR (Return Error Condition)
%FIELDS (Fields to update)
%FLOAT (Convert to Floating Format)
%FOUND (Return Found Condition)
%GRAPH (Convert to Graphic Value)
%HANDLER (handlingProcedure : communicationArea )
%HOURS (Number of Hours)
%INT (Convert to Integer Format)
%INTH (Convert to Integer Format with Half Adjust)
%KDS (Search Arguments in Data Structure)
%LEN (Get or Set Length)
%LEN Used for its Value
%LEN Used to Set the Length of Variable-Length Fields
%LEN Used to Get the Maximum Length of Varying-Length Expressions
%LOOKUPxx (Look Up an Array Element)
Sequenced arrays that are not in the correct sequence
%MINUTES (Number of Minutes)
%MONTHS (Number of Months)
%MSECONDS (Number of Microseconds)
%NULLIND (Query or Set Null Indicator)
%OCCUR (Set/Get Occurrence of a Data Structure)
%OPEN (Return File Open Condition)
%PADDR (Get Procedure Address)
%PADDR Used with a Prototype
%PARMS (Return Number of Parameters)
%PARMNUM (Return Parameter Number)
%REALLOC (Reallocate Storage)
%REM (Return Integer Remainder)
%REPLACE (Replace Character String)
%SCAN (Scan for Characters)
%SCANRPL (Scan and Replace Characters)
%SECONDS (Number of Seconds)
%SHTDN (Shut Down)
%SIZE (Get Size in Bytes)
%SQRT (Square Root of Expression)
%STATUS (Return File or Program Status)
%STR (Get or Store Null-Terminated String)
%STR Used to Get Null-Terminated String
%STR Used to Store Null-Terminated String
%SUBARR (Set/Get Portion of an Array)
%SUBDT (Extract a Portion of a Date, Time, or Timestamp)
%SUBST (Get Substring)
%SUBST Used for its Value
%SUBST Used as the Result of an Assignment
%THIS (Return Class Instance for Native Method)
%TIME (Convert to Time)
%TIMESTAMP (Convert to Timestamp)
%TLOOKUPxx (Look Up a Table Element)
%TRIM (Trim Characters at Edges)
%TRIML (Trim Leading Characters)
%TRIMR (Trim Trailing Characters)
%UCS2 (Convert to UCS-2 Value)
%UNS (Convert to Unsigned Format)
%UNSH (Convert to Unsigned Format with Half Adjust)
%XFOOT (Sum Array Expression Elements)
%XLATE (Translate)
%XML (xmlDocument {:options})
%YEARS (Number of Years)
Chapter 22. Operation Codes
ACQ (Acquire)
ADD (Add)
ADDDUR (Add Duration)
ALLOC (Allocate Storage)
ANDxx (And)
BEGSR (Beginning of Subroutine)
BITOFF (Set Bits Off)
BITON (Set Bits On)
CABxx (Compare and Branch)
CALL (Call a Program)
CALLB (Call a Bound Procedure)
CALLP (Call a Prototyped Procedure or Program)
CASxx (Conditionally Invoke Subroutine)
CAT (Concatenate Two Strings)
CHAIN (Random Retrieval from a File)
CHECK (Check Characters)
CHECKR (Check Reverse)
CLEAR (Clear)
Clearing Variables
Clearing Record Formats
CLEAR Examples
CLOSE (Close Files)
COMMIT (Commit)
COMP (Compare)
DEALLOC (Free Storage)
DEFINE (Field Definition)
*LIKE DEFINE
*DTAARA DEFINE
DELETE (Delete Record)
DIV (Divide)
DO (Do)
DOU (Do Until)
DOUxx (Do Until)
DOW (Do While)
DOWxx (Do While)
DSPLY (Display Message)
DUMP (Program Dump)
ELSE (Else)
ELSEIF (Else If)
ENDyy (End a Structured Group)
ENDSR (End of Subroutine)
EVAL (Evaluate expression)
EVALR (Evaluate expression, right adjust)
EVAL-CORR (Assign corresponding subfields)
Examples of the EVAL-CORR operation
EXCEPT (Calculation Time Output)
EXFMT (Write/Then Read Format)
EXSR (Invoke Subroutine)
EXTRCT (Extract Date/Time/Timestamp)
FEOD (Force End of Data)
FOR (For)
FORCE (Force a Certain File to Be Read Next Cycle)
GOTO (Go To)
IF (If)
IFxx (If)
IN (Retrieve a Data Area)
ITER (Iterate)
KFLD (Define Parts of a Key)
KLIST (Define a Composite Key)
LEAVE (Leave a Do/For Group)
LEAVESR (Leave a Subroutine)
LOOKUP (Look Up a Table or Array Element)
MHHZO (Move High to High Zone)
MHLZO (Move High to Low Zone)
MLHZO (Move Low to High Zone)
MLLZO (Move Low to Low Zone)
MONITOR (Begin a Monitor Group)
MOVE (Move)
MOVEA (Move Array)
Character, graphic, and UCS-2 MOVEA Operations
Numeric MOVEA Operations
General MOVEA Operations
MOVEL (Move Left)
MULT (Multiply)
MVR (Move Remainder)
NEXT (Next)
OCCUR (Set/Get Occurrence of a Data Structure)
ON-ERROR (On Error)
OPEN (Open File for Processing)
ORxx (Or)
OTHER (Otherwise Select)
OUT (Write a Data Area)
PARM (Identify Parameters)
PLIST (Identify a Parameter List)
POST (Post)
READ (Read a Record)
READC (Read Next Changed Record)
READE (Read Equal Key)
READP (Read Prior Record)
READPE (Read Prior Equal)
REALLOC (Reallocate Storage with New Length)
REL (Release)
RESET (Reset)
Resetting Variables
Resetting Record Formats
Additional Considerations
RESET Examples
RETURN (Return to Caller)
ROLBK (Roll Back)
SCAN (Scan String)
SELECT (Begin a Select Group)
SETGT (Set Greater Than)
SETLL (Set Lower Limit)
SETOFF (Set Indicator Off)
SETON (Set Indicator On)
SHTDN (Shut Down)
SORTA (Sort an Array)
SQRT (Square Root)
SUB (Subtract)
SUBDUR (Subtract Duration)
Subtract a duration
Calculate a duration
Possible error situations
SUBDUR Examples
SUBST (Substring)
TAG (Tag)
TEST (Test Date/Time/Timestamp)
TESTB (Test Bit)
TESTN (Test Numeric)
TESTZ (Test Zone)
TIME (Retrieve Time and Date)
UNLOCK (Unlock a Data Area or Release a Record)
Unlocking data areas
Releasing record locks
UPDATE (Modify Existing Record)
WHEN (When True Then Select)
WHENxx (When True Then Select)
WRITE (Create New Records)
XFOOT (Summing the Elements of an Array)
XLATE (Translate)
XML-INTO (Parse an XML Document into a Variable)
%XML options for the XML-INTO operation code
Expected format of XML data
Rules for transferring XML data to RPG variables
Examples of the XML-INTO operation
XML-SAX (Parse an XML Document)
%XML options for the XML-SAX operation code
XML-SAX event-handling procedure
XML events
Examples of the XML-SAX operation
Z-ADD (Zero and Add)
Z-SUB (Zero and Subtract)
Operation Codes
Operation Codes
Extended-Factor 2 Operation Codes
Chapter 23. The Structured Query Language
DB2 UDB for iSeries Syntax
CODE/400 Help
Positions 81-100 (Comments)
Reserved
Prompt window
Push buttons
Push buttons
Full Line
Status Line
Appendixes
Appendix A. RPG IV Restrictions
Appendix B. EBCDIC Collating Sequence
Bibliography
Notices
Programming Interface Information
Trademarks
Index


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