This tutorial teaches you how to use the IBM VisualAge RPG and Cooperative Development Environment for AS/400 (VisualAge RPG and CODE/400) program to build a Customer Inquiry application.

VisualAge RPG and CODE/400 is a development environment that you can use to create client/server applications on a programmable workstation. You can also use it to create and maintain server applications.

IBM VisualAge RPG and CODE/400 consists of two features:

Who Should use this Tutorial

This tutorial is intended for RPG application developers or analysts who are interested in developing applications cooperatively using a programmable workstation. It is also of interest to you if you want to create client/server applications with graphical user interfaces.

You should have a general knowledge of the Application System/400 (AS/400) system. You should have experience in using applicable AS/400 menus and displays, or control language (CL) commands. Experience with a programmable workstation and either Windows 95, Windows 98 or Windows NT operating system is also suggested.

About the Sample Application

You will create a host application using CODE/400 and a client application that accesses AS/400 data using the VisualAge RPG visual development environment.

The Customer Inquiry application is an AS/400 ILE RPG/400 program. The application accesses an AS/400 database customer information file. You can select, display or print detailed information about a specific customer.

The first screen of the application is the Customer Inquiry screen. At this screen you can enter a customer number or press F4 on the Customer number field to select a customer number from a list.

Customer Inquiry Screen

If you choose F4 to select a customer from a list, the Select Customer screen appears. This screen uses a subfile to list the customer numbers and names.

Select Customer Screen

From the Select Customer screen you can select which customer you wish to display or print. The Customer Detail screen appears.

Customer Detail Screen

The host application you create will look the same as the host application shown here. The client application you create will run in the client environment accessing AS/400 data. Here is what the finished client application looks like.

Customer Inquiry Window

Customer Information Window

Select Customer Window