fhs
Volume 17, Number 23 -- June 10, 2008

ASNA Brings RPG to .NET Migration Software to Latest Windows IDE

Published: June 10, 2008

by Dan Burger

IBM iSeries and System i shops have been migrating RPG code to the Microsoft .NET environment for years. It's not happening because it makes no sense. For a lot of organizations, it's the right thing to do. Making it quicker and easier is why ASNA, the application development tool maker with more than 25 years experience in the AS/400 market, develops a product called Monarch. ASNA has just released a new version of Monarch, Version 4.0, with plenty of enhancements worth noting.

Monarch 4.0 supports Microsoft's .NET Framework 3.5 and Visual Studio 2008, which were released earlier this year. Monarch 3.1, the previously current version, supported .NET Framework 2.0 and Visual Studio 2005. Although Windows programmers have been somewhat slow to move to the new framework and development environment, the momentum for change is inevitable. Monarch 4.0 also supports .NET Framework 2.0 and Visual Studio 2005, which is where the bulk of Windows programming is done and where most Windows programmers are comfortable for now.

On the RPG side, Monarch 4.0 brings a few more conveniences to the software party. The first is a capability to automatically recompile old RPG code that makes use of the RPG cycle. This is code that likely dates back to System 34 and System 36 days. In most cases it was converted to RPG II during the early AS/400 years. ASNA has run into this with customers often enough to include the automatic conversion in this latest release.

Additional automation has also been included for the conversion of embedded SQL to .NET. This was another area (like the RPG cycle mentioned above) where hand coding was previously required. Now a high percentage (ASNA estimates it at 90 percent) will transfer without any issues. In most cases, the embedded SQL is straightforward code. That doesn't guarantee that variations won't cause recompiling glitches, however.

In terms of migrating DB2/400 data to SQL Server, Monarch 4.0 has a feature that examines DB2/400 database files and provides a migration assessment that details which files will transfer easily and which files will be more difficult and require manipulation when going to SQL Server.

ASNA's middleware product called DataGate provides the capability to communicate with both the DB2/400 and the SQL Server databases.

ASNA officials feel comfortable promising that Monarch can handle RPG to .NET migrations with 95 percent of the recompiling done automatically, but they readily admit that much of this has to do with the style of the original code.

"Things that make it more difficult, for instance, are the use of pointers and user spaces," says ASNA President Eduardo Ross. "They don't come across directly."

In the big picture that has to be considered in application modernization projects, these "hiccups" requiring hand coding are minor. "When you think about an application that has 2 to 4 million lines of code, getting 95 percent of that coming across automatically is a huge return on investment," Ross points out.

The .NET environment, in Ross' view, is worth the migration because it allows applications to do things that are typically complicated on the System i side.

"Integration to the outside world with Microsoft Office or Web services or being able to talk with other applications becomes almost trivial from the programming side," he says. "If you want to consume a Web service on the '400, it gets sticky because you cannot do it within the realm of RPG."

Expectations for 100 percent of RPG code to be recompiled should not be entertained. That's not a knock against ASNA. It's a realistic view regardless of what's being recompiled or the method being used. Ross still insists almost all the program logic is preserved. If there's a problem it's that the syntax may not automatically come through.

"If you have complex business logic, for instance in pricing, sometimes the logic that generates a price for a specific order is very complex--depending on items, customers, and backlogs, all of that is easy to migrate because it is pure business logic," Ross says.

During the migration of the application presentation layer, Ross says, the layout of reports and screens can be preserved.

The migration process begins when the Monarch software is pointed to an application using one or more sets of libraries on the System i. Monarch analyzes the objects it finds in those libraries. It determines the relationship between those objects. For instance, program to program calls are significant. It identifies which programs are using which files and determines whether the program is interactive or not.

Monarch then creates groupings, or sections, of those programs. There could be, for instance, 5,000 programs. In order to do a cohesive migration, it's necessary to effectively groups programs.

The migration occurs when these groupings are brought across and display files are converted into Active Server pages. The person doing the migration then opens the project in Visual Studio and compiles it, resolving unsupported features (pointers and user spaces, for example) when necessary. If the application consists of several thousand programs, they will need to be assembled with Windows-type tools and techniques.

Applications can be enhanced in the Visual Studio IDE by using tools from ASNA's Visual RPG, or from Microsoft's Visual Basic or C #. Each one generates the same type of executables, meaning they can call one another. ASNA's Visual RPG is the best bet for RPG programming tools that make the most sense to RPG programmers.

"There are some decisions and work to be done to get the applications working on the other end," Ross says. "Compared to the alternative, this work is small relative to rewriting an application from scratch."

Ross' willingness to talk about hand work and the realities of what won't happen at the touch of a button is refreshing in an industry where selling unrealistic expectations is the norm.

"When you talk about percentages," Ross says, "you have to decide whether you are talking about percentages of features or percentages of lines of code. Of all the features in RPG, what percentage of these seldom-used features affects the total number of lines of code? What is important is whether the feature affects 20 lines of code out of a million."

The RPG support for print programs that comes in Monarch 4.0 is a good example. Some companies don't use it, and the feature is of no value to them. However, if a company uses print programs and Monarch 4.0 supports it, the recompiling automation of those programs becomes a big deal.

Ross provided the example of a company that had 550 programs (10 percent of the company's applications) that used the RPG cycle. It's possible that removing the cycle from one program by hand would take four hours. That's 2,000 hours total. The automation of recompiling these programs in Monarch 4.0 saves that effort.

"Every percentage point that we gain in terms of automatic compiling represents potentially huge savings compared to the hand work involved for the customer," Ross says.


RELATED STORIES

ALTech Taps ASNA to Migrate Food App from RPG to .NET

iSeries Aviation System Moving to .NET, Thanks to ASNA Monarch

ASNA Preps AVR for Visual Studio 2008

450,000-Line RPG App Converted to .NET in Six Months



                     Post this story to del.icio.us
               Post this story to Digg
    Post this story to Slashdot


Sponsored By
SEAGULL SOFTWARE


Have a taste of System i modernization on us!

Simply pick 5 of your application screens
and
Seagull Software will create
a new GUI or web service for you
at no charge

Click here to get started today!



Editor: Alex Woodie
Contributing Editors: Dan Burger, Joe Hertvik,
Shannon O'Donnell, Timothy Prickett Morgan
Publisher and Advertising Director: Jenny Thomas
Advertising Sales Representative: Kim Reed
Contact the Editors: To contact anyone on the IT Jungle Team
Go to our contacts page and send us a message.

Sponsored Links

COMMON:  Join us at the Focus 2008 workshop conference, October 5 - 8, in San Francisco, California
Profound Logic Software:  Web-enable in less than a day with Genie
Vision Solutions:  System i Management Tips Blog - Free i5/OS Tips Each Week!


 

IT Jungle Store Top Book Picks

Easy Steps to Internet Programming for AS/400, iSeries, and System i: List Price, $49.95
Getting Started with PHP for i5/OS: List Price, $59.95
The System i RPG & RPG IV Tutorial and Lab Exercises: List Price, $59.95
The System i Pocket RPG & RPG IV Guide: List Price, $69.95
The iSeries Pocket Database Guide: List Price, $59.00
The iSeries Pocket Developers' Guide: List Price, $59.00
The iSeries Pocket SQL Guide: List Price, $59.00
The iSeries Pocket Query Guide: List Price, $49.00
The iSeries Pocket WebFacing Primer: List Price, $39.00
Migrating to WebSphere Express for iSeries: List Price, $49.00
iSeries Express Web Implementer's Guide: List Price, $59.00
Getting Started with WebSphere Development Studio for iSeries: List Price, $79.95
Getting Started With WebSphere Development Studio Client for iSeries: List Price, $89.00
Getting Started with WebSphere Express for iSeries: List Price, $49.00
WebFacing Application Design and Development Guide: List Price, $55.00
Can the AS/400 Survive IBM?: List Price, $49.00
The All-Everything Machine: List Price, $29.95
Chip Wars: List Price, $29.95


 
The Four Hundred
The Power Systems M15 and M25 Versus Their Predecessors

Forget About Platforms, Let's Talk About Jobs

Zend Taps System i-PHP Guru, Pushes the i Platform

As I See It: Citizen CEO

Imtech Buys Reseller Real Solutions for U.K. Expansion

The Linux Beacon
Novell Swings to a Tiny Profit on a Tiny Revenue Bump in Q2

U.S. Drags Down Server Sales in Q1, But Weak Dollar Helps

Intel and Itanium Partners Gear Up for Quad-Core Tukwilas

Java Compute Appliances Upgraded by Azul Systems

Server Branding 101: Big Name, Big Game?

Big Iron
U.S. Drags Down Server Sales in Q1, But Weak Dollar Helps

Top Mainframe Stories From Around the Web

Chats, Webinars, Seminars, Shows, and Other Happenings

Four Hundred Guru
Exploring the DB2 for i5/OS Extensions to the PHP Language

Use Parameter Markers in SQL Persistent Stored Modules

Admin Alert: Quick Audits for i5/OS Backups

System i PTF Guide
May 31, 2008: Volume 10, Number 22

May 24, 2008: Volume 10, Number 21

May 17, 2008: Volume 10, Number 20

May 10, 2008: Volume 10, Number 19

May 3, 2008: Volume 10, Number 18

April 26, 2008: Volume 10, Number 17

The Windows Observer
Microsoft Kicks Off TechEd 2008 with Gates and Previews

Dynamics AX 2009 ERP Suite Comes to Market

U.S. Drags Down Server Sales in Q1, But Weak Dollar Helps

Servers, Storage, Laptops and Weak Dollars Buoy Dell in Q1

Server Branding 101: Big Name, Big Game?

The Unix Guardian
AMD Finishes Off Quad Cores with Budapest Opterons

U.S. Drags Down Server Sales in Q1, But Weak Dollar Helps

Looks Like Unisys Is Reselling Sun's X4600 Opteron Boxes

Themis Partners with Sun to Make Sparc T2 Blade Server

Server Branding 101: Big Name, Big Game?

Four Hundred Monitor
Four Hundred Monitor's
Full iSeries Events Calendar

THIS ISSUE SPONSORED BY:

MKS
Bytware
Seagull Software
nuBridges
Twin Data


Printer Friendly Version


TABLE OF CONTENTS
Bank's Approach to Biometric Authentication a 'Valid' One

Programmer Conveniences Added to BCD's WebSmart ILE

ASNA Brings RPG to .NET Migration Software to Latest Windows IDE

Safestone Re-emerges with New Corporate Identity, i OS Security Tools

NetManage and HiT Software Partner for Structured Data

News Briefs and Product Shorts:

Brooks Updates Remote Print Manager with Customized Workflows . . . NGS and Munson Good for Laughs . . . Small Insurance Companies Get On-Demand BI Service . . . IBM Mashup Center to Offer Online Trials . . . Vision Signs Filipino Retailer to HA Contract . . .

Four Hundred Stuff

BACK ISSUES





 
Subscription Information:
You can unsubscribe, change your email address, or sign up for any of IT Jungle's free e-newsletters through our Web site at http://www.itjungle.com/sub/subscribe.html.

Copyright © 1996-2008 Guild Companies, Inc. All Rights Reserved.
Guild Companies, Inc., 50 Park Terrace East, Suite 8F, New York, NY 10034

Privacy Statement