IBM AS/400 manual Contents, RPG Introduction

Models: AS/400

1 489
Download 489 pages 47.95 Kb
Page 5
Image 5
Contents

Contents

 

 

Notices

 

 

. . . . . . . . . . . . . . . . . . . xi. . . .

 

 

Programming Interface Information. . . . . . . . . . . . . . . . . . . .xii

 

 

Trademarks

 

and

Service

Marks. . . . . . . . . . . . . . . . . . . . .xii

 

 

About

This

Guide

 

. . . . . . . . . . . . . . . . . . . . . . . . . . .xv

 

 

Who Should Use This Guide. . . . . . . . . . . . . . . . . . . . . . xv

 

 

Prerequisite and Related Information. . . . . . . . . . . . . . . . . . .xvi

 

 

How

to

Send

Your

Comments. . . . . . . . . . . . . . . . . . . . . xvi

 

What's

New

This

Release?. . . . . . . . . . . . . . . . . . . . . . .xvii

 

Changes

 

to

this

 

Guide Since. . V4R2. . . . . . . . . . . . . . . . .xxi

 

 

 

 

 

 

ILE

RPG Introduction

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

 

 

Chapter

1.

Overview

of

the

RPG

IV

Programming

Language

. . . . . . . .3.

 

 

 

RPG IV Specifications. . . . . . . . . . . . . . . . . . . . . . . . . .3

 

 

Cycle Programming

 

. . . . . . . . . . . . . . . . 4. . . .

 

 

Subprocedure logic . . . . . . . . . . . . . . . .5 . . . .

 

 

Indicators . . . . . . . . . . . . . . . . . . . 5 . . . .

 

 

Operation Codes . . . . . . . . . . . . . . . . . 6 . . . .

 

 

Example

of

an

ILE

RPG

Program. . . . . . . . . . . . . . . . . . . . .6

 

 

Using the OS/400 System. . . . . . . . . . . . . . . . . . . . . . . .12

 

 

Interacting with the .System. . . . . . . . . . . . . . . . . . . . .12

 

 

AS/400 Tools

 

 

. . . . . . . . . . . . . . . . . .13. . . .

 

 

Application

Development

ToolSet

for

AS/400. . . . . . . . . . . . . . 13. . . .

 

 

 

IBM VisualAge

RPG

and

Cooperative Development

Environment for AS/400

14

 

 

Chapter 2. RPG Programming in ILE

 

 

. . . . . . . . . . . . . . . . . .17

 

 

Program Creation

. . .

 

. . . . . . . . . . . . . . 17. . . .

 

 

Program Management

 

 

. . . . . . . . . . . . . . . .19 . . . .

 

 

Program Call

 

 

.

. . . . . . . . . . . . . . . . .19. . . .

 

 

Source Debugging

. . . . .

. .

. . . . .

. . . . 20

 

 

Bindable APIs .

. . . . . . . . . . . . . . . . .20 . . . .

 

Multithreaded Applications. . .

. . . . . . . . . . . 21. . . .

 

 

Chapter

3.

Program

Creation

Strategies

 

. . . . . . . . . . . . . . . . .23. . . .

 

 

 

Strategy 1: OPM-Compatible Application .

. . . . . . . . . .23 . . . .

 

 

Method

 

. . . . . . . . . . . . . . . . . . .23. . . .

 

 

Example

of

OPM-Compatible Program . . . . . . . . . . . . . . . . . 24

 

 

 

Related Information. . . . . . . . . . . . . . . .25 . . . .

 

 

Strategy

2: ILE

Program

Using

CRTBNDRPG. . . . . . . . . . . . . . . 25. . . .

 

 

 

Method

 

. . . . . . . . . . . . . . . . . . .25 . . . .

 

 

Example of ILE Program Using

CRTBNDRPG. . . . . . . . . . . . . .26. . .

 

 

 

Related Information. . . . . . . . . . . . . . . .27 . . . .

 

 

Strategy

3: ILE

Application

Using

CRTRPGMOD. . . . . . . . . . . . . .27. . .

 

 

 

Method

 

. . . . . . . . . . . . . . . . . . .28 . . . .

 

 

Single-Language

ILE

Application

Scenario. . . . . . . . . . . . . . . 28. . . .

 

 

 

Mixed-Language

ILE

Application

Scenario. . . . . . . . . . . . . . . .29. . . .

 

 

 

Advanced

Application

Scenario. . . . . . . . . . . . . . . . . . . . 30

 

 

Related Information. . . .

. .

. . . . .

. . . . .31 . . . .

Copyright IBM Corp. 1994, 1999

iii

Page 5
Image 5
IBM AS/400 manual Contents, RPG Introduction