Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your profile (name, country/region, and company) is displayed to the public and will accompany any content you post. You may update your IBM account at any time.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

developerWorks Community:

  • Close [x]

Calling IBM i programs from EGL using Rational Business Developer

Claus Weiss, Advisory Software Consultant, IBM
Claus Weiss is an advisory software consultant with the Rational Software System i – Ecosystem team at the IBM Canada Toronto Laboratory. He has degrees in industrial engineering and computer science from the University of Hamburg in Germany. He worked as a systems engineer with IBM Germany and joined the IBM Toronto Laboratory in 1984. He was a developer and team leader for System/38 development tools. He has been a member of the Design Control Group for the AS/400 development tools. He has worked as a consultant for IBM iSeries Application Development for the past 10 years, specializing in Visual Tools. Claus is a frequent speaker at COMMON and other iSeries conferences and a six-time winner of COMMON's Speaker Excellence award. He is also the lead author of the book title "Understanding the IBM WebFacing Tool," published by IBM Press, and has co-authored several IBM Redbooks.

Summary:  This tutorial describes how to write Enterprise Generation Language (EGL) code that calls programs (RPG, COBOL, CL, CL Commands, or programs written in any supported language) on your IBM® System i5™ machine. The process for you to call an existing IBM i™ program from EGL has been very much improved in IBM® Rational® Developer for System i™ V7.1 (and later), and is incredibly simple. EGL leverages the IBM i Toolbox for Java™, which in turn utilizes the System i5’s Remote Command Host Server (QZRCSRVSD in the QSYSWRK subsystem).

Date:  19 Aug 2008
Level:  Intermediate PDF:  A4 and Letter (3472 KB | 44 pages)Get Adobe® Reader®

Activity:  290 views

Before you start

Important Note: Walk through this scenario and others online as part of the Enterprise Modernization Sandbox for IBM i

About this tutorial

This tutorial shows you how to do the following:

  • Create EGL application that calls IBM i programs (RPG, COBOL, CL and CL Commands).
  • Learn to use IBM® Rational® Business Developer to build and test EGL application.


This tutorial will guide you through the following steps:

  • EGL and the IBM i runtime environment.
  • Configuring your EGL Web Project to access the IBM® System i5™ server and call a program
  • The actual code to call an IBM i program
  • Debugging both RPG and EGL code


You should be familiar with one of the IBM® Rational® Software Delivery Platform products that Rational Business Developer supports, and have knowledge of IBM® System i™ applications.

System requirements

Operating Systems:

Microsoft® Windows® 2000 SP4, Windows 2003 Enterprise SP1, Windows 2003 Standard SP1, Windows XP Professional SP2, Windows Vista Business, Windows Vista Enterprise, Windows Vista Ultimate


Intel® Pentium® III 800 MHz processor minimum (higher is recommended) 1 GB RAM (1.5 GB RAM recommended)

Minimum: 800 MB of disk space is required for product package installation. Additional disk space is required for the resources that you develop.

1 of 9 | Next


Zone=Rational, Sample IT projects
TutorialTitle=Calling IBM i programs from EGL using Rational Business Developer