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: System/36-Compatible RPG II User's Guide and Reference
Document Number: SC09-1162-02
Build Date: 09/18/92 15:39:57 Build Version: 1.2
Document Path: /home/webapps/epubs/htdocs/book/qbkaa802.boo

CONTENTS Table of Contents


Summarize

NOTICES       Notices 

COVER         Book Cover 

EDITION       Edition Notice 
FRONT_1       Special Notices 

PREFACE        About This Manual 
PREFACE.1     Who Should Use This Manual 
PREFACE.2     What You Should Know 
  PREFACE.2.1   Material You Should Have 
    PREFACE.2.1.1 RPG Coding and Debugging Materials 
    PREFACE.2.1.2 System Coding Sheets 
  PREFACE.2.2   Naming Conventions 
  PREFACE.2.3   Coding Conventions 
  PREFACE.2.4   How To Use the RPG II Coding Examples 
PREFACE.3     How This Manual is Organized 
PREFACE.4     How This Manual Has Changed 
PREFACE.5     Related Online Information 
  PREFACE.5.1   Help for Displays 
  PREFACE.5.2   Index Search 
  PREFACE.5.3   Online Education 
  PREFACE.5.4   Question-and-Answer Function 
  PREFACE.5.5   Help for Control Language Commands 
PREFACE.6     Related Printed Information 

CONTENTS      Table of Contents 

1.0           Part 1. User's Guide 

1.1           Chapter 1.  An Introduction to RPG II and the AS/400 System 
1.1.1         OS/400 and the Control Language 
    1.1.1.1       The AS/400 Operating System 
    1.1.1.2       The AS/400 Control Language 
1.1.2         Accessing RPG II from OS/400 
1.1.3         Your Choice of Two Environments: AS/400 System or the System/36 Environment 
  1.1.3.1       The System/36 Environment 
  1.1.3.2       Using the System/36 RPG II Procedures 
1.1.4         Files Used by RPG II 
1.1.5         RPG Program Cycle 
1.1.6         Designing Your RPG II Program 
  1.1.6.1       Steps in Designing Your Program 
    1.1.6.1.1     Designing the Output 
    1.1.6.1.2     Designing the Processing 
    1.1.6.1.3     Designing the Input 
1.1.7         Structured Programming in RPG II 
  1.1.7.1       Sequential Operation 
  1.1.7.2       Conditional Branching 
  1.1.7.3       Repeating an Operation 
    1.1.7.3.1     Do While 
    1.1.7.3.2     Do Until 
    1.1.7.3.3     Do 
  1.1.7.4       Summary of Structured Programming Operation Codes 
1.1.8         The RPG Screen Design Aid Utility (RPGSDA) 

1.2           Chapter 2.  Entering RPG II Specifications 
1.2.1         The RPG II Specifications 
  1.2.1.1       Control Specification 
  1.2.1.2       File Description Specifications 
  1.2.1.3       Extension Specifications 
  1.2.1.4       Line Counter Specifications 
  1.2.1.5       Telecommunications Specifications 
  1.2.1.6       Input Specifications 
  1.2.1.7       Calculation Specifications 
  1.2.1.8       Output Specifications 
1.2.2         Entering Your Program into the System 
1.2.3         Using SEU to Enter or Change an RPG II Source Program 
  1.2.3.1       The RPG II Syntax Checker 
  1.2.3.2       Using the RPGSEU Display 

1.3           Chapter 3.  Compiling an RPG II Program 
1.3.1         Using CRTS36RPG to Compile an RPG II Source Program in the AS/400 system 
  1.3.1.1       Using the CRTS36RPG Command 
    1.3.1.1.1     Elements of the CRTS36RPG Command Line 
    1.3.1.1.2     Entering Only Certain Parameter Values 
    1.3.1.1.3     Entering Only the Parameter Values 
  1.3.1.2       Completing the First CRTS36RPG Display 
  1.3.1.3       Completing the Second CRTS36RPG Display 
1.3.2         Using RPGC to Compile an RPG II Source Program in the System/36 Environment 
  1.3.2.1       Calling RPGC 
  1.3.2.2       Using the First RPGC Display 
  1.3.2.3       Using the Second RPGC Display 
1.3.3         Using the SEU Split Display to Correct Errors 
1.3.4         Printing an RPG Cross-Reference Listing (RPGX Procedure) in System/36 Environment 
  1.3.4.1       Cross-Reference Listing 
    1.3.4.1.1     Sample Cross-Reference Listing 
1.3.5         Interpreting a Compiler Listing 

1.4           Chapter 4.  Testing and Debugging an RPG Program 
1.4.1         Using, Displaying, and Printing Messages 
  1.4.1.1       Using Messages 
  1.4.1.2       Displaying and Printing Messages 
1.4.2         Running an RPG Program 
  1.4.2.1       Example of OCL Statements Used to Run a Program 
  1.4.2.2       RPG Halt Messages 
1.4.3         Using Breakpoints 
    1.4.3.1       Example of Using Breakpoints 
  1.4.3.2       Considerations for Using Breakpoints 
1.4.4         Using a Trace 
    1.4.4.1       Example of Using a Trace 
  1.4.4.2       Considerations When Using a Trace 
1.4.5         Using an RPG Formatted Dump 
1.4.6         Using the DEBUG Operation Code 
  1.4.6.1       Records Written by the DEBUG Operation 
1.4.7         Debugging a Program That Uses a WORKSTN File 

1.5           Chapter 5.  The Detailed RPG II Program Cycle 

1.6           Chapter 6.  Using a DISK File 
1.6.1         SEQUENTIAL FILES 
1.6.2         Creating a Sequential File 
  1.6.2.1       Example of Creating a Sequential File 
1.6.3         Reading a Sequential File 
  1.6.3.1       Reading Consecutively 
  1.6.3.2       Reading Randomly by Relative Record Number 
  1.6.3.3       Reading Randomly by Relative Record Number and/or Consecutively 
  1.6.3.4       Reading Randomly by Address Output (Addrout) File 
1.6.4         Updating a Sequential File 
  1.6.4.1       Deleting Records from a Sequential File 
  1.6.4.2       Updating Consecutively 
    1.6.4.2.1     Example of Updating and Deleting Records 
  1.6.4.3       Updating Randomly by Relative Record Number 
  1.6.4.4       Updating Randomly by Relative Record Number and/or Consecutively 
  1.6.4.5       Updating Randomly by Address Output (Addrout) File 
1.6.5         Adding Records to a Sequential File 
  1.6.5.1       Adding Records at the End of a File 
    1.6.5.1.1     Example of Adding Records at the End of a File 
  1.6.5.2       Adding Records between Records in a File 
    1.6.5.2.1     Example of Adding Records between Records in a File 
1.6.6         DIRECT FILES 
1.6.7         Creating a Direct File That Does Not Allow Deletions 
    1.6.7.1       Example of Creating a Direct File That Does Not Allow Deletions 
1.6.8         Creating a Direct File That Allows Deletions 
    1.6.8.1       Example of Creating a Direct File That Allows Deletions 
1.6.9         Reading a Direct File 
  1.6.9.1       Reading Consecutively 
    1.6.9.1.1     Example of Reading Consecutively 
  1.6.9.2       Reading Randomly by Relative Record Number 
    1.6.9.2.1     Example of Reading Randomly by Relative Record Number 
  1.6.9.3       Reading Randomly by Relative Record Number and/or Consecutively 
  1.6.9.4       Reading Randomly by Address Output (Addrout) File 
1.6.10        Updating a Direct File 
  1.6.10.1      Deleting Records from a Direct File 
  1.6.10.2      Updating Consecutively 
  1.6.10.3      Updating Randomly by Relative Record Number 
    1.6.10.3.1    Example of Updating Randomly by Relative Record Number 
  1.6.10.4      Updating Randomly by Relative Record Number and/or Consecutively 
  1.6.10.5      Updating Randomly by Address Output (Addrout) File 
1.6.11        Adding Records to a Direct File 
1.6.12        INDEXED FILES 
1.6.13        Creating an Indexed File 
    1.6.13.1      Example of Creating an Indexed File 
  1.6.13.2      Creating an Alternative Index File for an Indexed File 
    1.6.13.2.1    Example of Creating an Alternative Index File 
    1.6.13.2.2    Example of Using an Alternative Index File with Only One Field as its Key 
  1.6.13.3      Using an Alternative Index File with Noncontiguous Fields as its Key 
1.6.14        Reading an Indexed File 
  1.6.14.1      Reading Sequentially by Key Field 
  1.6.14.2      Reading Sequentially within Key-Field Limits 
    1.6.14.2.1    Using a Limits Record 
    1.6.14.2.2    Using the SETLL Operation 
  1.6.14.3      Reading Randomly by Key Field 
  1.6.14.4      Reading Randomly and/or Sequentially by Key Field 
    1.6.14.4.1    Example of Reading an Indexed File Randomly and Sequentially by Key Field 
  1.6.14.5      Reading Randomly by Address Output (Addrout) File 
1.6.15        Updating an Indexed File 
  1.6.15.1      Deleting Records from an Indexed File 
  1.6.15.2      Updating Sequentially by Key Field 
  1.6.15.3      Updating Sequentially within Key-Field Limits 
  1.6.15.4      Updating Randomly by Key Field 
    1.6.15.4.1    Example of Updating an Indexed File Randomly by Key Field 
  1.6.15.5      Updating Randomly and/or Sequentially by Key Field 
  1.6.15.6      Updating Randomly by Address Output (Addrout) File 
1.6.16        Adding Records to an Indexed File 
  1.6.16.1      Adding Records Randomly by Key Field 
    1.6.16.1.1    Example of Adding Records Randomly by Key Field 
  1.6.16.2      Adding Records Sequentially by Key Field 
    1.6.16.2.1    Example of Adding Records Sequentially by Key Field 

1.7           Chapter 7.  Using a WORKSTN File 
1.7.1         EXAMPLE OF USING A WORKSTN FILE 
1.7.2         The Displays 
1.7.3         Coding the RPG Specifications 
  1.7.3.1       File Description Specifications 
  1.7.3.2       Input Specifications 
  1.7.3.3       Calculation Specifications 
  1.7.3.4       Output Specifications 
1.7.4         Ending the Program 
1.7.5         STEPS IN USING A WORKSTN FILE 
1.7.6         Creating the Display Formats 
1.7.7         Coding the RPG Specifications 
  1.7.7.1       File Description Specifications 
  1.7.7.2       Continuation-Line Options 
    1.7.7.2.1     NUM 
    1.7.7.2.2     SAVDS 
    1.7.7.2.3     IND 
    1.7.7.2.4     SLN 
    1.7.7.2.5     FMTS 
    1.7.7.2.6     ID 
    1.7.7.2.7     INFSR 
    1.7.7.2.8     INFDS 
    1.7.7.2.9     CFILE 
  1.7.7.3       Input Specifications 
  1.7.7.4       Output Specifications 
1.7.8         Common Processing Variations 
1.7.9         Using Function Keys 
1.7.10        Handling Exceptions and Errors 
  1.7.10.1      Coding the INFDS Data Structure 
    1.7.10.1.1    File Description Specifications 
    1.7.10.1.2    Input Specifications 
  1.7.10.2      Coding the INFSR Subroutine 
    1.7.10.2.1    File Description Specifications 
    1.7.10.2.2    Calculation Specifications 
1.7.11        Reading Data From a Display Shown by a Previous Program 
1.7.12        Using One or More Devices 
1.7.13        Using a SRT Program 
1.7.14        Using a MRT Program 
  1.7.14.1      File Description Specifications 
  1.7.14.2      Calculation Specifications 
    1.7.14.2.1    NEXT Operation 
    1.7.14.2.2    REL Operation 
  1.7.14.3      Output Specifications 
1.7.15        Acquiring One or More Devices by the Program 
  1.7.15.1      ACQ Operation 
1.7.16        Requesting the Program by One or More Display Stations/Remote Systems 
  1.7.16.1      Setting and Restoring External Indicators (SUBR20) 
  1.7.16.2      Reading and Writing the Local Data Area for a Display Station (SUBR21) 
1.7.17        Specifying and Compiling a MRT Program 
  1.7.17.1      Compiling the Program 
  1.7.17.2      Specifying a MRT 
1.7.18        Updating Disk Files in a MRT Program 
  1.7.18.1      Possible Errors 
  1.7.18.2      Avoiding These Errors 
1.7.19        Reaching End of File for a MRT Program 
  1.7.19.1      Primary File 
  1.7.19.2      Demand File 
1.7.20        ADVANCED TOPICS 
1.7.21        Processing the Duplicate Character Value 
1.7.22        Using Message Identification Codes 
1.7.23        Overriding Fields in a Display Format 
1.7.24        Using the POST Operation on Display Stations 
1.7.25        How WORKSTN Files Are Processed 
1.7.26        User-Defined Communication Formats 
  1.7.26.1      Example of Using User-Defined Communication Formats 
1.7.27        SAMPLE PROGRAMS 
1.7.28        AR230R (Inquiring into an Accounts Receivable File) 
1.7.29        AR330R (Maintaining a Customer Master File) 
1.7.30        AR935R (Requesting a Printout of Accounts Receivable) 
1.7.31        OE140R (Entering Orders from Customers) 

1.8           Chapter 8.  Using a PRINTER File 
1.8.1         File Description Specifications 
1.8.2         Line Counter Specifications 
1.8.3         Output Specifications 
  1.8.3.1       File- and Record-Identification Entries 
  1.8.3.2       Field-Description Entries 
  1.8.3.3       AND and OR Lines 
1.8.4         Handling Overflow 
  1.8.4.1       Automatic Overflow 
  1.8.4.2       Overflow Indicators 
    1.8.4.2.1     Coding Overflow Indicators 
  1.8.4.3       Fetch Overflow Routine 
1.8.5         Spacing and Skipping 
1.8.6         Sample Program 

1.9           Chapter 9.  Using a SPECIAL File 
1.9.1         File Description Specifications 
  1.9.1.1       Continuation Line 
1.9.2         Restrictions for SPECIAL Files 
1.9.3         Using a Subroutine for Input and Output 
  1.9.3.1       Using IBM's Subroutine, SUBR01 
  1.9.3.2       Using Your Own Subroutine 

1.10          Chapter 10.  Using a CONSOLE, KEYBORD, or CRT File 
1.10.1        Using a CONSOLE File 
  1.10.1.1      File Description Specifications 
  1.10.1.2      Input Specifications 
    1.10.1.2.1    File and Record Specifications 
    1.10.1.2.2    Field Specifications 
  1.10.1.3      Creating Display Formats for CONSOLE Files 
    1.10.1.3.1    Using the RPGR Procedure 
  1.10.1.4      Creating Display Formats for CONSOLE Files with CRTS36RPGR 
  1.10.1.5      Using Displays 
    1.10.1.5.1    Display Formats 
    1.10.1.5.2    Prompt Format 
  1.10.1.6      Changing the Display Format 
  1.10.1.7      Erasing the CONSOLE File Buffer 
  1.10.1.8      Using a CONSOLE File with KEYBORD and CRT Files 
1.10.2        Using a KEYBORD File 
  1.10.2.1      File Description Specifications 
  1.10.2.2      Calculation Specifications for a KEY Operation 
  1.10.2.3      Using a KEY Operation 
  1.10.2.4      Bypassing a KEY Operation 
  1.10.2.5      Using a Message Member 
  1.10.2.6      Calculation Specifications for a SET Operation 
  1.10.2.7      Allowing Function Keys To Be Pressed 
  1.10.2.8      Using the SET and KEY Operations Together 
1.10.3        Using a CRT File 
  1.10.3.1      File Description Specifications 
  1.10.3.2      Output Specifications 
    1.10.3.2.1    File- and Record-Identification Entries 
    1.10.3.2.2    Field-Description Entries 
  1.10.3.3      Displaying Data 

1.11          Chapter 11.  Using a BSCA File 
1.11.1        Defining a BSCA File 
  1.11.1.1      File Description Specifications 
  1.11.1.2      Telecommunications Specifications 
1.11.2        Programming Considerations 
  1.11.2.1      First RPG Program Cycle 
  1.11.2.2      Removing Strings of Embedded Blanks 
  1.11.2.3      Removing Trailing Blanks 
  1.11.2.4      ASCII-EBCDIC Character Translation 
  1.11.2.5      Control Breaks 
  1.11.2.6      Reclaim Resources 
  1.11.2.7      RPG Diagnostics 
  1.11.2.8      Configuring Your System for BSC 
    1.11.2.8.1    Translating T-SPEC Entries To AS/400 Configuration 
1.11.3        Descriptions of BSC Functions 
  1.11.3.1      Receive-Only Function 
  1.11.3.2      Send-Only Function 
  1.11.3.3      Send-and-Receive Function 
    1.11.3.3.1    Send a File, Then Receive a File 
    1.11.3.3.2    Receive a File, Then Send a File 
    1.11.3.3.3    Send Records Interspersed with Receive Records 
1.11.4        Systems That Use BSC 
1.11.5        Device-Dependent Considerations 
  1.11.5.1      IBM 3740 Data Entry System 
    1.11.5.1.1    Restrictions 
    1.11.5.1.2    Single-File Support 
    1.11.5.1.3    Multiple-File Support 
    1.11.5.1.4    Blocked Records 
    1.11.5.1.5    RPG Specifications 
    1.11.5.1.6    File Description Specifications 
    1.11.5.1.7    Telecommunications Specifications 
    1.11.5.1.8    Output Specifications 
  1.11.5.2      IBM 3750 (World Trade Only) 
1.11.6        Sample Programs 
  1.11.6.1      Send Only 
  1.11.6.2      AS/400 System to 3740 
  1.11.6.3      Send Interspersed with Receive 

1.12          Chapter 12.  Primary/Secondary/Multifile Processing 
  1.12.1        Multifile Processing with No Match Fields 
  1.12.2        Multifile Processing with Match Fields 
1.12.3        Coding Matching Records 
  1.12.3.1      File Description Specifications 
  1.12.3.2      Input Specifications 
  1.12.3.3      Rules for Coding Match Fields 
1.12.4        Processing Matching Records 

1.13          Chapter 13.  Using Indicators 
1.13.1        INDICATORS DEFINED ON RPG SPECIFICATIONS 
1.13.2        Overflow Indicators 
1.13.3        Record-Identifying Indicators 
  1.13.3.1      AND Relationship 
  1.13.3.2      OR Relationship 
  1.13.3.3      Example of Using Record-Identifying Indicators 
1.13.4        Control-Level Indicators 
  1.13.4.1      Assigning Control-Level Indicators 
  1.13.4.2      Split Control Fields 
1.13.5        Field Indicators 
1.13.6        Resulting Indicators 
1.13.7        Indicators Not Defined on the RPG Specifications 
1.13.8        External Indicators 
1.13.9        Internal Indicators 
  1.13.9.1      First-Page Indicator 
  1.13.9.2      Last-Record Indicator 
  1.13.9.3      Matching-Record Indicator 
1.13.10       CONDITIONING INDICATORS 
1.13.11       File-Conditioning Indicators 
1.13.12       Field-Record-Relation Indicators 
  1.13.12.1     Assigning Field-Record-Relation Indicators 
1.13.13       Level-Zero Indicator 
1.13.14       Function-Key Indicators 
1.13.15       Halt Indicators 
1.13.16       Indicators Conditioning Calculations 
  1.13.16.1     Using Indicators in AN/OR Lines on the Calculation Specifications 
  1.13.16.2     Using Indicators in an AND Relationship on the Calculation Specifications 
1.13.17       Indicators Conditioning Output 
  1.13.17.1     Using Indicators in an AND/OR Relationship on the Output Specifications 

1.14          Chapter 14.  Using Arrays and Tables 
  1.14.1        When Arrays and Tables Can Be Loaded 
  1.14.2        How Arrays and Tables Can Be Processed 
1.14.3        Kinds of Arrays and Tables 
1.14.4        Creating Input Records for Arrays or Tables 
1.14.5        Defining Arrays and Tables 
1.14.6        Loading Arrays and Tables 
  1.14.6.1      Loading Compile-Time Arrays and Tables 
  1.14.6.2      Loading Prerun-Time Arrays and Tables 
  1.14.6.3      Loading Run-Time Arrays 
    1.14.6.3.1    Array Information in One Record 
    1.14.6.3.2    Array Information in More than One Record 
1.14.7        Using an Array Name and Index 
1.14.8        Searching Arrays and Tables 
  1.14.8.1      Searching an Array 
  1.14.8.2      Searching One Table 
  1.14.8.3      Searching Related Tables 
1.14.9        Specifying Arrays 
1.14.10       Changing the Contents of Arrays and Tables 
  1.14.10.1     Changing the Contents Temporarily 
  1.14.10.2     Changing the Contents Permanently 
1.14.11       Adding Entries to Arrays and Tables 
1.14.12       Writing Arrays and Tables 
1.14.13       Editing Arrays 
1.14.14       Examples of Using Arrays 
1.14.15       Example of Using Tables 
  1.14.15.1     File Description Specifications 
  1.14.15.2     Extension Specifications 
  1.14.15.3     Input Specifications 
  1.14.15.4     Calculation Specifications 

1.15          Chapter 15.  Using Data Structures 
1.15.1        Coding a Data Structure 
  1.15.1.1      Data Structure Statement 
  1.15.1.2      Subfields 
  1.15.1.3      Rules for Coding Data Structures 
1.15.2        Examples of Data Structures 
  1.15.2.1      Example 1. Defining One Area of Storage in More than One Way 
  1.15.2.2      Example 2. Defining Subfields within a Field 
  1.15.2.3      Example 3. Reorganizing Fields in an Input Record 
1.15.3        Special Data Structures 
  1.15.3.1      SAVDS Data Structure 
  1.15.3.2      Local Data Area for a Display Station 
  1.15.3.3      File Information Data Structure 

1.16          Chapter 16.  Editing Numeric Fields 
1.16.1        Edit Codes 
  1.16.1.1      Examples of Using the Currency Symbol with an Edit Code 
  1.16.1.2      Example of Using Asterisks with an Edit Code 
1.16.2        Edit Words 
  1.16.2.1      Editing Considerations 
    1.16.2.1.1    Blanks (b) 
    1.16.2.1.2    Constants 
    1.16.2.1.3    The First Zero (0) 
    1.16.2.1.4    The First Asterisk (*) 
    1.16.2.1.5    The Minus Sign (-) and the Character "CR" 
    1.16.2.1.6    Currency Symbols 
    1.16.2.1.7    The Ampersand (&) 
  1.16.2.2      Examples of Edit Words 
    1.16.2.2.1    Example 1 - Suppressing decimal point and leading zeros 
    1.16.2.2.2    Example 2 - Forcing the decimal point 
    1.16.2.2.3    Example 3 - Forcing leading zeros 
    1.16.2.2.4    Example 4 - Printing a leading zero in the leftmost position of output field 
    1.16.2.2.5    Example 5 - Indicating a negative value 
    1.16.2.2.6    Example 6 - Inserting commas 
    1.16.2.2.7    Example 7 - Inserting a floating currency symbol 
    1.16.2.2.8    Example 8 - Inserting a fixed currency symbol 
    1.16.2.2.9    Example 9 - Replacing leading blanks/constant by asterisks 
    1.16.2.2.10   Example 10 - Leading blank/constant replaced in first position only 
    1.16.2.2.11   Example 11 - Adding text to negative numbers 
    1.16.2.2.12   Example 12 - Adding text to all numbers 
    1.16.2.2.13   Example 13 - Using an edit word to print a check 
    1.16.2.2.14   Example 14 - Using an edit word to print dates 
    1.16.2.2.15   Example 15 - Using an edit word to print a telephone number 
    1.16.2.2.16   Example 16 - Second occurrences of special characters are treated as constants 
    1.16.2.2.17   Example 17 - Defining a single occurrence of an asterisk or zero as a constant 
    1.16.2.2.18   Example 18 - Defining a single occurrence of CR as a constant 
  1.16.2.3      Creating Edit Words 

1.17          Chapter 17.  Changing the Hexadecimal Value of Characters 
1.17.1        Changing the Collating Sequence 
  1.17.1.1      Coding the Changes 
    1.17.1.1.1    Coding the Control Specification 
    1.17.1.1.2    Coding the Translation Table and Alternate Collating Sequence Coding Sheet 
    1.17.1.1.3    Coding the Records That Change the Collating Sequence 
  1.17.1.2      Example of a Record That Changes the Collating Sequence 
1.17.2        Translating a File 
  1.17.2.1      Coding the Translation 
    1.17.2.1.1    Coding the Control Specification 
    1.17.2.1.2    Coding the Translation Table and Alternate Collating Sequence Coding Sheet 
    1.17.2.1.3    Coding the Records That Translate a File 
  1.17.2.2      Example of File Translation 

2.0           Part 2.  Reference 

2.1           Chapter 18.  Control Specification 
2.1.1         Columns 1-2 (Page) 
2.1.2         Columns 3-5 (Line) 
2.1.3         Column 6 (Form Type) 
2.1.4         Column 7 (Comments) 
2.1.5         Columns 7-9 
2.1.6         Columns 7-12 (/EJECT) 
2.1.7         Columns 7-12 (/TITLE) 
2.1.8         Columns 7-14 (/SPACE) 
2.1.9         Column 10 
2.1.10        Column 11 
2.1.11        Columns 12-14 
2.1.12        Column 15 (Debug) 
2.1.13        Columns 16-17 
2.1.14        Column 18 (Currency Symbol) 
2.1.15        Columns 19-20 (Date Option) 
  2.1.15.1      Column 19 (Date Format) 
  2.1.15.2      Column 20 (Date Edit) 
2.1.16        Column 21 (Inverted Print) 
2.1.17        Columns 22-25 
2.1.18        Column 26 (Alternate Collating Sequence) 
2.1.19        Columns 27-36 
2.1.20        Column 37 (Inquiry) 
  2.1.20.1      File Sharing 
  2.1.20.2      Inline Inquiry Subroutine (SUBR95) 
2.1.21        Columns 38-40 
2.1.22        Column 41 (1P Forms Position) 
2.1.23        Column 42 
2.1.24        Column 43 (File Translation) 
2.1.25        Column 44 
2.1.26        Column 45 (Nonprint Characters) 
2.1.27        Columns 46-56 
2.1.28        Column 57 (Transparent Literal) 
2.1.29        Columns 58-74 
2.1.30        Columns 75-80 (Program Identification) 

2.2           Chapter 19.  File Description Specifications 
2.2.1         File Description Charts 
  2.2.1.1       How to Use the Charts 
2.2.2         Columns 1-2 (Page) 
2.2.3         Columns 3-5 (Line) 
2.2.4         Column 6 (Form Type) 
2.2.5         Column 7 (Comments) 
2.2.6         Columns 7-12 (/EJECT) 
2.2.7         Columns 7-12 (/TITLE) 
2.2.8         Columns 7-14 (/SPACE) 
2.2.9         Columns 7-14 (Filename) 
2.2.10        Column 15 (File Type) 
  2.2.10.1      Input Files 
  2.2.10.2      Output Files 
  2.2.10.3      Update Files 
  2.2.10.4      Combined Files 
2.2.11        Column 16 (File Designation) 
  2.2.11.1      Primary Files 
  2.2.11.2      Secondary Files 
  2.2.11.3      Full-Procedural Files 
  2.2.11.4      Chained Files 
  2.2.11.5      Record Address Files 
  2.2.11.6      Array or Table Files 
  2.2.11.7      Demand Files 
2.2.12        Column 17 (End Of File) 
2.2.13        Column 18 (Sequence) 
2.2.14        Column 19 (File Format) 
2.2.15        Columns 20-23 
2.2.16        Columns 24-27 (Record Length) 
2.2.17        Column 28 (Mode of Processing) 
2.2.18        Columns 29-30 (Length of Key Field or Record Address Field) 
2.2.19        Column 31 (Record Address Type) 
2.2.20        Column 32 (File Organization) 
2.2.21        Columns 33-34 (Overflow Indicator) 
2.2.22        Columns 35-38 (Key Field Starting Location) 
2.2.23        Column 39 (Extension Code) 
2.2.24        Columns 40-46 (Device) 
  2.2.24.1      Device Types 
    2.2.24.1.1    DISK 
    2.2.24.1.2    WORKSTN 
    2.2.24.1.3    PRINTER 
    2.2.24.1.4    SPECIAL 
    2.2.24.1.5    CONSOLE 
    2.2.24.1.6    KEYBORD 
    2.2.24.1.7    CRT 
    2.2.24.1.8    BSCA 
2.2.25        Columns 47-52 
2.2.26        Column 53 (Continuation Lines-K) 
2.2.27        Columns 54-59 
  2.2.27.1      Name of Label Exit 
  2.2.27.2      Continuation-Line Option for DISK File 
  2.2.27.3      Continuation-Line Options for WORKSTN File 
  2.2.27.4      Continuation-Line Option for SPECIAL Device 
2.2.28        Columns 60-65 (Storage Index) 
2.2.29        Column 66 (File Addition) 
2.2.30        Columns 67-70 
2.2.31        Columns 71-72 (File Condition) 
2.2.32        Columns 73-74 
2.2.33        Columns 75-80 (Program Identification) 

2.3           Chapter 20.  Extension Specifications 
2.3.1         Columns 1-2 (Page) 
2.3.2         Columns 3-5 (Line) 
2.3.3         Column 6 (Form Type) 
2.3.4         Column 7 (Comments) 
2.3.5         Columns 7-10 
2.3.6         Columns 7-12 (/EJECT) 
2.3.7         Columns 7-12 (/TITLE) 
2.3.8         Columns 7-14 (/SPACE) 
2.3.9         Columns 11-18 (From Filename) 
2.3.10        Columns 19-26 (To Filename) 
2.3.11        Columns 27-32 (Array or Table Name) 
  2.3.11.1      Array Name 
  2.3.11.2      Table Name 
2.3.12        Columns 33-35 (Number of Entries per Record) 
2.3.13        Columns 36-39 (Number of Entries per Table or Array) 
2.3.14        Columns 40-42 (Length of Entry) 
2.3.15        Column 43 (Packed or Binary Field) 
2.3.16        Column 44 (Decimal Positions) 
2.3.17        Column 45 (Sequence) 
2.3.18        Columns 46-57 
2.3.19        Columns 58-74 (Comments) 
2.3.20        Columns 75-80 (Program Identification) 

2.4           Chapter 21.  Line Counter Specifications 
2.4.1         Columns 1-2 (Page) 
2.4.2         Columns 3-5 (Line) 
2.4.3         Column 6 (Form Type) 
2.4.4         Column 7 (Comments) 
2.4.5         Column 7-12 (/EJECT) 
2.4.6         Columns 7-12 (/TITLE) 
2.4.7         Columns 7-14 (/SPACE) 
2.4.8         Columns 7-14 (Filename) 
2.4.9         Columns 15-17 (Line Number-Number of Lines per Page) 
2.4.10        Columns 18-19 (Form Length) 
2.4.11        Columns 20-22 (Line Number-Overflow Line) 
2.4.12        Columns 23-24 (Overflow Line) 
2.4.13        Columns 25-74 
2.4.14        Columns 75-80 (Program Identification) 

2.5           Chapter 22.  Telecommunications Specifications 
2.5.1         Columns 1-2 (Page) 
2.5.2         Columns 3-5 (Line) 
2.5.3         Column 6 (Form Type) 
2.5.4         Column 7 (Comments) 
2.5.5         Columns 7-12 (/EJECT) 
2.5.6         Columns 7-12 (/TITLE) 
2.5.7         Columns 7-14 (/SPACE) 
2.5.8         Columns 7-14 (File name) 
2.5.9         ***Column 15 (Configuration) 
2.5.10        Column 16 (Type of Station) 
2.5.11        ***Column 17 (Type of Control) 
2.5.12        ***Column 18 (Type of Code). 
2.5.13        ***Column 19 (Transparency) 
2.5.14        ***Column 20 (Switched) 
2.5.15        Columns 21-31 
2.5.16        ***Column 32 (Location of Identification-This Station) 
2.5.17        ***Columns 33-39 (Identification-This Station) 
2.5.18        ***Column 40 (Location of Identification-Remote Station) 
2.5.19        ***Columns 41-47 (Identification-Remote Station) 
2.5.20        Columns 48-51 
2.5.21        ***Column 52 (ITB) 
2.5.22        Columns 53-54 (Permanent-Error Indicator) 
2.5.23        ***Columns 55-57 (Wait Time) 
2.5.24        Columns 58-59 (Record-Available Indicator) 
2.5.25        Column 60 (Last File) 
2.5.26        ***Columns 61-62 (Polling Characters) 
2.5.27        Columns 63-64 (Addressing Characters) 
2.5.28        Columns 65-74 
2.5.29        Columns 75-80 (Program Identification) 

2.6           Chapter 23.  Input Specifications 
2.6.1         File and Record-Type Identification Entries 
2.6.2         Columns 1-2 (Page) 
2.6.3         Columns 3-5 (Line) 
2.6.4         Column 6 (Form Type) 
2.6.5         Column 7 (Comments) 
2.6.6         Columns 7-12 (/EJECT) 
2.6.7         Columns 7-12 (/TITLE) 
2.6.8         Columns 7-14 (/SPACE) 
2.6.9         Columns 7-14 (Filename) 
2.6.10        Columns 14-16 
2.6.11        Columns 15-16 (Sequence) 
  2.6.11.1      Assigning Sequence Numbers 
2.6.12        Column 17 (Number) 
2.6.13        Column 18 (Option) 
2.6.14        Columns 19-20 (Record-Identifying Indicator, **, DS) 
  2.6.14.1      Look-Ahead 
2.6.15        Columns 21-41 (Record Identification Codes) 
  2.6.15.1      Position (Columns 21-24, 28-31, and 35-38) 
  2.6.15.2      Not (N) (Columns 25, 32, and 39) 
  2.6.15.3      C/Z/D (Columns 26, 33, and 40) 
  2.6.15.4      Character (Columns 27, 34, and 41) 
    2.6.15.4.1    Character Grouping by Zone or Digit 
  2.6.15.5      AND Relationship 
  2.6.15.6      OR Relationship 
2.6.16        Column 42 
2.6.17        Field Description Entries 
2.6.18        Column 43 (Packed-Decimal or Binary Field) 
  2.6.18.1      Zoned-Decimal Format (Blank) 
  2.6.18.2      Packed-Decimal Format (P) 
  2.6.18.3      Binary Format (B) 
2.6.19        Columns 44-51 (Field Location) 
2.6.20        Column 52 (Decimal Positions) 
2.6.21        Columns 53-58 (Field Name) 
  2.6.21.1      Field Names 
    2.6.21.1.1    Field Names in OR Relationship 
  2.6.21.2      Special Words (PAGE, PAGE1-PAGE7) 
2.6.22        Columns 59-60 (Control Level) 
2.6.23        Columns 61-62 (Matching Fields) 
  2.6.23.1      Match Fields 
  2.6.23.2      Sequence Checking 
2.6.24        Columns 63-64 (Field Record Relation) 
2.6.25        Columns 65-70 (Field Indicators) 
2.6.26        Columns 71-74 
2.6.27        Columns 75-80 (Program Identification) 

2.7           Chapter 24.  Calculation Specifications 
2.7.1         Columns 1-2 (Page) 
2.7.2         Columns 3-5 (Lines) 
2.7.3         Column 6 (Form Type) 
2.7.4         Column 7 (Comments) 
2.7.5         Columns 7-8 (Control Level) 
  2.7.5.1       Subroutine Lines (SR) 
  2.7.5.2       AN/OR Lines 
2.7.6         Columns 7-12 (/EJECT) 
2.7.7         Columns 7-12 (/TITLE) 
2.7.8         Columns 7-14 (/SPACE) 
2.7.9         Columns 9-17 (Indicators) 
  2.7.9.1       Relationship between Columns 7-8 and Columns 9-17 
2.7.10        Columns 18-27 (Factor 1) 
  2.7.10.1      Literals 
    2.7.10.1.1    Alphameric Literals 
    2.7.10.1.2    Numeric Literals 
    2.7.10.1.3    Figurative Constants 
2.7.11        Columns 28-32 (Operation) 
2.7.12        Columns 33-42 (Factor 2) 
2.7.13        Columns 43-48 (Result Field) 
  2.7.13.1      Erase 
  2.7.13.2      Field Name, Table Name, Array Name, Array Element, or Data Structure 
2.7.14        Columns 49-51 (Field Length) 
2.7.15        Column 52 (Decimal Positions) 
2.7.16        Column 53 (Half-Adjust) 
2.7.17        Columns 54-59 (Resulting Indicators) 
  2.7.17.1      Test Results 
2.7.18        Columns 60-74 (Comments) 
2.7.19        Columns 75-80 (Program Identification) 

2.8           Chapter 25.  Output Specifications 
2.8.1         Columns 1-2 (Page) 
2.8.2         Columns 3-5 (Line) 
2.8.3         Column 6 (Form Type) 
2.8.4         Column 7 (Comments) 
2.8.5         Columns 7-12 (/EJECT) 
2.8.6         Columns 7-12 (/TITLE) 
2.8.7         Columns 7-14 (/SPACE) 
2.8.8         Columns 7-14 (Filename) 
2.8.9         Columns 14-16 (AND/OR) 
2.8.10        Column 15 (Type) 
  2.8.10.1      Heading Records (H) 
  2.8.10.2      Detail Records (D) 
  2.8.10.3      Total Records (T) 
  2.8.10.4      Exception Records (E) 
2.8.11        Columns 16-18 (ADD/DEL) 
  2.8.11.1      ADD 
  2.8.11.2      DEL 
2.8.12        Column 16 (Fetch Overflow or Release) 
  2.8.12.1      Fetch Overflow 
  2.8.12.2      Release 
2.8.13        Columns 17-22 (Spacing and Skipping) 
  2.8.13.1      Column 17 (Space Before) 
  2.8.13.2      Column 18 (Space After) 
  2.8.13.3      Columns 19-20 (Skip Before) 
  2.8.13.4      Columns 21-22 (Skip After) 
2.8.14        Columns 23-31 (Output Indicators) 
2.8.15        Columns 32-37 (Field Name) 
  2.8.15.1      Field Names 
    2.8.15.1.1    Rules for Field Names 
  2.8.15.2      Special Words 
    2.8.15.2.1    Page Numbering (PAGE, PAGE1-PAGE7) 
    2.8.15.2.2    Repeating Output Fields (*PLACE) 
    2.8.15.2.3    Date Fields (UDATE, UMONTH, UDAY, UYEAR) 
    2.8.15.2.4    EXCPT Names 
2.8.16        Column 38 (Edit Codes) 
2.8.17        Column 39 (Blank After) 
2.8.18        Columns 40-43 (End Position in Output Record) 
2.8.19        Column 44 (Packed-Decimal or Binary Field) 
2.8.20        Columns 45-70 (Constant or Edit Word) 
  2.8.20.1      Constants 
  2.8.20.2      Format Name 
  2.8.20.3      Edit Words 
2.8.21        Columns 71-74 
2.8.22        Columns 75-80 (Program Identification) 

2.9           Chapter 26.  The Auto Report Feature 
  2.9.1         The Auto Report Source Program 
  2.9.2         Compiling the Auto Report Source Program 
  2.9.3         Format of Created Specifications 
  2.9.4         Order of Created Specifications 
    2.9.4.1       Calculation Specifications 
    2.9.4.2       Output Specifications 
    2.9.4.3       Comment Statements 
    2.9.4.4       Restriction 
2.9.5         Auto Report Option Specifications (U) 
    2.9.5.1       Column 6 (Form Type) 
    2.9.5.2       Column 7 (Source) 
    2.9.5.3       Columns 8-24 (Source Member Reference) 
    2.9.5.4       Columns 25-26 
    2.9.5.5       Column 27 (Date Suppress) 
    2.9.5.6       Column 28 (*Suppress) 
    2.9.5.7       Column 29 
    2.9.5.8       Column 30 (List Options) 
    2.9.5.9       Columns 31-74 
2.9.6         Auto Report /COPY Statement Specifications 
  2.9.6.1       Changing Copied Specifications 
    2.9.6.1.1     Changing File Description Specifications 
    2.9.6.1.2     Changing Input Field Specifications 
2.9.7         Auto Report Page-Heading Specifications 
  2.9.7.1       Record-Description Specifications 
    2.9.7.1.1     Columns 7-14 (Filename) 
    2.9.7.1.2     Column 15 (Type) 
    2.9.7.1.3     Column 16 
    2.9.7.1.4     Columns 17-22 (Spacing and Skipping) 
    2.9.7.1.5     Columns 23-31 (Output Indicators) 
    2.9.7.1.6     Columns 32-37 (*AUTO) 
    2.9.7.1.7     Columns 38-70 
  2.9.7.2       Field-Description Specifications 
    2.9.7.2.1     Columns 7-31 
    2.9.7.2.2     Columns 32-37 (Field Name) 
    2.9.7.2.3     Column 38 (Edit Codes) 
    2.9.7.2.4     Column 39 (Blank After) 
    2.9.7.2.5     Columns 40-44 
    2.9.7.2.6     Columns 45-70 (Constant or Edit Word) 
2.9.8         Auto Report Output Specifications 
  2.9.8.1       Record-Description Specifications 
    2.9.8.1.1     Columns 7-14 (Filename) 
    2.9.8.1.2     Column 15 (Type) 
    2.9.8.1.3     Column 16 (Fetch Overflow) 
    2.9.8.1.4     Columns 17-22 (Spacing and Skipping) 
    2.9.8.1.5     Columns 23-31 (Output Indicators) 
    2.9.8.1.6     Columns 32-37 (*AUTO) 
    2.9.8.1.7     Columns 38-70 
  2.9.8.2       Field Description (Blank or B in Column 39) 
    2.9.8.2.1     Columns 7-22 
    2.9.8.2.2     Columns 23-31 (Output Indicators) 
    2.9.8.2.3     Columns 32-37 (Field Name) 
    2.9.8.2.4     Column 38 (Edit Codes) 
    2.9.8.2.5     Column 39 (Blank After) 
    2.9.8.2.6     Columns 40-43 (End Position in Output Record) 
    2.9.8.2.7     Column 44 
    2.9.8.2.8     Columns 45-70 (Constant) 
  2.9.8.3       Field Description (A in Column 39) 
    2.9.8.3.1     Created Total Fields 
    2.9.8.3.2     Considerations 
    2.9.8.3.3     Columns 7-22 
    2.9.8.3.4     Columns 23-31 (Output Indicators) 
    2.9.8.3.5     Columns 32-37 (Field Name) 
    2.9.8.3.6     Column 38 (Edit Codes) 
    2.9.8.3.7     Column 39 
    2.9.8.3.8     Columns 40-43 (End Position in Output Record) 
    2.9.8.3.9     Column 44 
    2.9.8.3.10    Columns 45-70 (Constant) 
  2.9.8.4       Field Description (C in Column 39) 
    2.9.8.4.1     Columns 7-38 
    2.9.8.4.2     Column 39 
    2.9.8.4.3     Columns 40-44 
    2.9.8.4.4     Columns 45-70 (Constant) 
  2.9.8.5       Field Description (1-9 or R in Column 39) 
    2.9.8.5.1     Columns 7-31 
    2.9.8.5.2     Columns 32-37 (Field Name) 
    2.9.8.5.3     Column 38 (Edit Code) 
    2.9.8.5.4     Column 39 
    2.9.8.5.5     Columns 40-43 (End Position in Output Record) 
    2.9.8.5.6     Column 44 
    2.9.8.5.7     Columns 45-70 (Constant or Edit Word) 
  2.9.8.6       Group Printing 
    2.9.8.6.1     Specifications 
    2.9.8.6.2     Examples 
2.9.9         Report Format 
  2.9.9.1       Spacing and Skipping 
  2.9.9.2       Placement of Headings and Fields 
    2.9.9.2.1     Page Headings 
    2.9.9.2.2     Reformatting *AUTO Page Headings 
    2.9.9.2.3     Body of the Report 
    2.9.9.2.4     Overflow of the D/T-*AUTO Print Lines 
2.9.10        Created Specifications 
  2.9.10.1      Created Calculation Specifications 
  2.9.10.2      Created Output Specifications 
2.9.11        Programming Aids 
2.9.12        Using CRTS36RPT to Compile an Auto Report Source Program on an AS/400 System 
  2.9.12.1      Completing the First CRTS36RPT Display 
  2.9.12.2      Completing the Second CRTS36RPT Display 
  2.9.12.3      Completing the Third CRTS36RPT Display 
  2.9.12.4      The CRTS36RPT Command 
2.9.13        Using AUTOC to Compile an Auto Report Source Program in the System/36 Environment 
  2.9.13.1      Calling AUTOC 
  2.9.13.2      Using the First AUTOC Display 
  2.9.13.3      Using the Second AUTOC Display 
2.9.14        Examples of Using Auto Report 
  2.9.14.1      Example 1-Sales Report using *AUTO 
  2.9.14.2      Example 2-Sales Report with Three Levels of Totals 
  2.9.14.3      Example 3-Sales Report with Group Heading 
  2.9.14.4      Example 4-Sales Report with Cross-Column Totals 
  2.9.14.5      Example 5-Copy Function for Specifications of Sales Report 
  2.9.14.6      Example 6-Override Copied Input Specifications 
  2.9.14.7      Example 7-Cash Receipts Register 
    2.9.14.7.1    Control Specification 
    2.9.14.7.2    /COPY Statements 
    2.9.14.7.3    Calculation Specifications 
    2.9.14.7.4    *AUTO Specifications 

2.10          Chapter 27.  Operation Codes 
2.10.1        Arithmetic Operations 
2.10.2        Move Operations 
2.10.3        Move Zone Operations 
2.10.4        Compare and Testing Operations 
2.10.5        Structured Programming Operations 
2.10.6        Bit Operations 
2.10.7        SETON and SETOF Operations 
2.10.8        Branching within RPG 
2.10.9        Subroutine Operations 
2.10.10       Calling External Subroutines or Programs 
2.10.11       WORKSTN Operations 
2.10.12       Programmed Control of Input and Output 
2.10.13       OPERATION CODES 
2.10.14       ACQ (Acquire) 
2.10.15       ADD (Add) 
2.10.16       BEGSR (Begin Subroutine) 
2.10.17       BITOF (Set Bit Off) 
2.10.18       BITON (Set Bit On) 
2.10.19       CALL (Call a Program) 
2.10.20       CASxx (Case) 
2.10.21       CHAIN (Chain) 
  2.10.21.1     Random Processing 
2.10.22       COMP (Compare) 
2.10.23       DEBUG (Debug) 
  2.10.23.1     Records Written for DEBUG 
2.10.24       *LIKE DEFN (Field Definition) 
2.10.25       DIV (Divide) 
2.10.26       DO (Do) 
2.10.27       DOUxx (Do Until) 
2.10.28       DOWxx (Do While) 
2.10.29       ELSE (Else Do) 
2.10.30       END (End) 
2.10.31       ENDSR (End Subroutine) 
2.10.32       EXCPT (Exception Output) 
2.10.33       EXIT (Exit to an External Subroutine) 
2.10.34       EXSR (Execute Subroutine) 
  2.10.34.1     Coding Subroutines 
2.10.35       FORCE (Force) 
2.10.36       FREE (Deactivate a Program) 
2.10.37       GOTO (Branch To) 
2.10.38       IFxx (If/Then) 
2.10.39       KEY (Key) 
2.10.40       LOKUP (Lookup) 
  2.10.40.1     Array LOKUP 
  2.10.40.2     Table LOKUP 
2.10.41       MHHZO (Move High to High Zone) 
2.10.42       MHLZO (Move High to Low Zone) 
2.10.43       MLHZO (Move Low to High Zone) 
2.10.44       MLLZO (Move Low to Low Zone) 
2.10.45       MOVE (Move) 
2.10.46       MOVEA (Move Array) 
2.10.47       MOVEL (Move Left) 
2.10.48       MULT (Multiply) 
2.10.49       MVR (Move Remainder) 
2.10.50       NEXT (Next) 
2.10.51       PARM (Identify Parameters) 
2.10.52       PLIST (Identify a Parameter List) 
    2.10.52.1     Rules for Specifying PLIST 
2.10.53       POST (Post) 
2.10.54       READ (Read) 
2.10.55       READE (Read Equal Key) 
2.10.56       READP (Read Prior Record) 
2.10.57       REL (Release) 
2.10.58       RETRN (Return to Caller) 
2.10.59       RLABL (RPG Label) 
  2.10.59.1     Message-Retrieving Subroutine (SUBR23) 
2.10.60       SET (Set) 
2.10.61       SETLL (Set Lower Limits Operation) 
2.10.62       SETOF (Set Off) 
2.10.63       SETON (Set On) 
2.10.64       SHTDN (Shutdown) 
2.10.65       SORTA (Sort an Array) 
2.10.66       SQRT (Square Root) 
2.10.67       SUB (Subtract) 
2.10.68       TAG (Tag) 
2.10.69       TESTB (Test Bit) 
    2.10.69.1     Columns 54-55: 
    2.10.69.2     Columns 56-57: 
    2.10.69.3     Columns 58-59: 
2.10.70       TESTZ (Test Zone) 
2.10.71       TIME (Time of Day) 
2.10.72       XFOOT (Summing the Elements of an Array) 
2.10.73       Z-ADD (Zero and Add) 
2.10.74       Z-SUB (Zero and Subtract) 

2.11          Chapter 28.  Using Double-Byte Data 
2.11.1        Specifying Double-byte Data 
  2.11.1.1      Double-byte Literals and Constants 
  2.11.1.2      Double-byte Fields, Tables, and Arrays 
  2.11.1.3      Double-byte Comments 
2.11.2        Processing Considerations 
2.11.3        Moving Double-byte Data and Deleting Control Characters (SUBR40) 
2.11.4        Moving Double-byte Data and Adding Control Characters (SUBR41) 
2.11.5        Double-byte Device Support 
2.11.6        Messages 

A.0           Appendix A.  Differences between System/36 RPG II and AS/400 System/36-Compatible RPG II 
  A.1           Changes in Capacity 
  A.2           RPGC and AUTOC Procedures 
  A.3           Control Specification 
  A.4           Operation Codes 
  A.5           SUBR22 
  A.6           Program Name 
  A.7           Multiple Field Definition 
  A.8           SETLL 
  A.9           "Y" Edit Code 
  A.10          EXCPT Operation Conditioned By Printer Overflow Indicators 
  A.11          DUP Key With Numeric Fields 

B.0           Appendix B.  Glossary of Abbreviations 

GLOSSARY      Glossary of Terms 

INDEX         Index 


Previous Topic Next Topic Copyright IBM Corp. 1988, 1990

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