Home > AS/400 Tips > > Migrating from RPG to EGL on IBM i
iSeries 400 Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 


Migrating from RPG to EGL on IBM i


Heidi Schmidt
06.26.2009
Rating: -4.50- (out of 5)


iSeries news and advice
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


The IBM Rational Migration Extension for IBM i (RMEi) migrates existing RPG programs to EGL on all IBM platforms. With SOA, EGL closes the gap between procedural and object-oriented languages, allowing developers to focus on making business-ready modern programs without having to learn Java.

Some ask, "How future-proof is the RPG programming language? Is it worth doing further development on it?" There has been a lot of discussion and speculation revolving around these questions over the past few years. Even though further development is still being made to RPG, Java and other object-oriented programming languages are on the rise. Despite this, RPG still has as many fans as it always has because in contrast to Java or .NET, it is geared toward programming business applications.

Nonetheless, the market has been moving in another direction, and it looked like numerous stable, tried and tested RPG applications were going to be quickly replaced by new developments. But appearances can be deceiving: the result of such migration projects in the past was often disillusioning, and many ambitious projects were prematurely canned. There's a simple reason: a paradigm gap between the procedural and object-oriented worlds makes migration a delicate matter for both applications and programmers alike. Despite the enthusiasm the open source community radiates, it is clear that native Java is not the business language of the future. At the same time, it's undisputable that RPG is anything but elegant when it comes to developing something like a Web 2.0 application.

Enter, IBM Rational, with the EGL business language (enterprise generation language). EGL is a latest-generation programming language that takes both client and server-side needs into consideration when developing business apps. Modern front-ends based on JSF and Ajax technology can be created, as well ...


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google



RELATED CONTENT
Web Development
Implementing a browser interface in COBOL: Creating your graphic Web page
Implementing a browser interface in COBOL: Getting started
IBM i shop boosts online sales with RPG-based Web platform
Groovy programming on IBM i
Running PHP open source applications: NOBODY needs authority
Zend Web software teams up with IBM System i
The best technologies and tools for System i programmers in 2009
Seven IBM i project lessons learned in 2008
AS/400 lessons from the past, present, and future: A holiday tale
Application modernization strategies for System i

RPG iSeries programming
Enhancing RPG with external SQL stored procedures
Introduction to SQLRPGLE on IBM i: Making a report
Making the most of RPG data handling on IBM i
IBM i shop boosts online sales with RPG-based Web platform
Allow access to data from a stored procedure result set using COBOL or RPG
EGL Rich UI on IBM i: Do you Dojo?
Programming for the Web on the IBM i, what is possible
A taste of COMMON: ILE, IBM releases, Web applications and new products
Documenting nested program structures on the AS/400
How to: Sort arrays using RPGIV

iSeries application development tools
TAATOOL: Useful tools for programmers on IBM i
EGL Rich UI on IBM i: Do you Dojo?
Running PHP open source applications: NOBODY needs authority
Zend Web software teams up with IBM System i
The best technologies and tools for System i programmers in 2009
AS/400 lessons from the past, present, and future: A holiday tale
Documenting nested program structures on the AS/400
Learn the i: iSeries DevCon coming up in Orlando
Application modernization in the i world
System i virtualization prevents T-Mobile busy signal
iSeries application development tools Research

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
WebSphere Development Studio Client (WDSC)  (Search400.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


as classic batch programs with text-user interfaces like 5250. And, Java programs can be generated directly from within EGL and native i programs.

EGL is not object-oriented — it's a procedural programming language in which modern SOA aspects are implicitly integrated. Thus, it seems that a bridge that was previously missing has now been built between the traditional and object-oriented worlds.

But how can tried and tested RPG applications that have worked for years, and that may be the backbone of a business be safely and efficiently migrated to EGL? This where the IBM Rational Migration Extension for i (RMEi) fits in as a potential solution. With RMEi, existing RPG programs can be migrated to EGL. The advantage to switching to EGL is that it closes the gap between the procedural and object-oriented worlds. This had been too much of a strain on most application developers in the past, and it usually led to results that were difficult to service. Modernizing the user interface might have been a good start, but just screen scraping increases the complexity without providing any improvement of the functionality.

EGL: Procedural and object-oriented
EGL is easy for programmers to learn and is highly productive, making it much easier on RPG developers who might otherwise attempt direct migration from RPG to Java. Additionally, RPG developers don't need additional know-how in the area of complex Java and OO technologies.

EGL is based on Eclipse, making it a modern development interface. Because it is at least 25% more efficient than native Java developments, it boosts developer productivity. EGL has adopted many tried and tested concepts from RPG and combines them with the most modern standards for user interfaces, services, architecture and platform-independence. Everything is integrated in Eclipse and can be mastered by RPG programmers within two to four weeks. RPG programmers can then finally do things that only their Java and .NET colleagues were able to in the past, and do it on the IBM i.

Either native code or Java can be generated from EGL. Native code is optimal for high performance jobs in IBM i such as batch applications or interactive applications with a very high number of users. Java on the other hand is completely platform-independent. The decision for Java or COBOL can be made ad hoc at any given time – there's no need to make any prior commitment to one specific technology. And, migration to EGL can extend the lifecycle of an application by 10 years.

Because RMEi supports step-by-step modernization, extensive applications can be split up into smaller bits that are more easily manageable. EGL offers the added value of also being able to consolidate other programming languages like Natural, VAGen, Informix 4GL and COBOL.

[IMAGE]
Click on image for larger version
The EGL development environment

[IMAGE]
Click on image for larger version
Typical EGL language constructs

Migrating to EGL
It makes sense to migrate to EGL when the debate occurs at a company regarding replacing proprietary developments with standard software. It would also make sense to consider migration when RPG can no longer meet new demands, and Java or .NET is needed. Another consideration is user convenience – EGL may be a good choice when many users need to continually switch back and forth between a GUI and green screen. Lastly, a sign it might be good to switch is when program customizations and extensions can no longer be executed in real-time and development becomes a mission critical bottleneck.

From RPG to EGL with the IBM Solution Roadmap for IBM i
Developers represent an enormous amount of value: they hold the knowledge about the company and its actual procedures. Therefore, AS/400 users need a solution for migration that takes both the application and know-how and background of the developers into consideration. Apart from the existing application itself, this knowledge also has to remain usable in the modernized application. RMEi provides "migration in different-sized steps," which is optimally supported by different, combinable scenarios:

  • RPG and EGL can be integrated via database and program calls, making it easy to establish a connection between old and new worlds.
  • Web API technology allows integration at the UI level so that end-users experience an integrated workflow.
  • Direct code migration from RPG to EGL means that relevant areas of applications will lead you directly to the "new world" without rewriting everything.

[IMAGE]
Click on image for larger version
Calling and migrating RPG batches

[IMAGE]
Click on image for larger version
Calling, wrapping or migrating RPG services

[IMAGE]
Click on image for larger version
Integration at UI level via Web API technology or step-by-step migration

With EGL and RMEi, IBM has created a platform that travels the trails of migration sensibly and economically. Because RMEi supports step-by-step modernization, extensive applications can be split up into smaller bits that are more easily manageable. The extent of knowledge about individual languages is reduced, and all IBM platforms are supported.

ABOUT THE AUTHOR: Heidi Schmidt is sales manager at PKS Software GmbH in Ravensburg Germany.

Rate this Tip
To rate tips, you must be a member of Search400.com.
Register now to start rating these tips. Log in if you are already a member.




DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



iSeries Security - Security Tools, Physical Security and System Security
HomeNewsTopicsITKnowledge ExchangeTipsBlogsAsk the ExpertsMultimediaWhite PapersProducts
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts