• The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
Menu
  • The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
  • ASNA Generates First-Class C# from RPG with Encore

    August 2, 2023 Alex Woodie

    ASNA this summer unveiled a new version of Monarch, its flagship offering for migrating RPG applications to .NET Core. The big new deliverable with Monarch 11 is the introduction of Encore RPG, which enables IBM i shops to convert their RPG directly into usable C# source code. The new product will help IBM i shops with aging RPG programmers make the gradual transition to C#, ASNA says.

    ASNA originally launched Monarch way back in 2004 as a mechanism for converting RPG code into a language supported in Microsoft’s .NET Framework (Microsoft replaced the .NET Framework with .NET Core back in 2020). ASNA has always played the Microsoft language angle, going back to its heyday with ASNA Visual RPG (AVR), which is an RPG compiler for Microsoft’s Visual Studio, so Monarch was a natural evolution for the longtime IBM i software provider.

    The original version of ASNA’s Monarch supported two language targets for RPG III or RPG IV code: AVR and C#. AVR in effect provided an RPG-to-RPG experience, with the caveat that the AVR code could be compiled to run on Windows. But the support for C# generation was more of an afterthought than a fully supported language, says ASNA Product Evangelist Roger Pence.

    “The original Monarch for .NET FW [framework] does target both ASNA Visual RPG (AVR) FW and C# FW,” Pence tells IT Jungle via email. “However, C# was bolted onto Monarch FW later and didn’t offer the first-class dev experience that targeting AVR offered.”

    With version 11 of the product, ASNA is refining its generation of C# code, with the idea that customers can cut their ties with RPG permanently and move forward with C# source code that they can compile to run with .NET Core.

    Monarch migrates RPG to .NET.

    That little trick is delivered via the introduction of Encore RPG, which is one part syntax and one part migration software. Encore RPG uses syntax derived from AVR, and gives users two options: create binary AVR code that’s executable in .NET Core, or create C# source code.

    The C# code generated by Encore is “modern, remediated, ready-for-production,” Pence says. That’s in contrast to the C# code generated by the previous version of Monarch. “Monarch .NET could convert an AVR migrated project to C#,” he says, “but it was, well, painful at a later stage,” requiring special tooling and debugging tools to work with.

    When ASNA was creating the first version of Monarch for .NET Core a couple of years ago, it contemplated leaving AVR generation out of the new product entirely. “Given that the biggest driver to migration is RPG programmer fade, we didn’t think an AVR FW target would be considered strategic by any prospect,” Pence says.

    However, as ASNA started testing an early version of Encore in Monarch for .NET Core with customers, the feedback it received surprised company officials, and caused it to change course and keep AVR generation in the new Encore product.

    “We were stunned to hear many prospects say, ‘Because of RPG programmer fade, we need to migrate our RPG estate application to .NET. But . . . we don’t want to migrate to C# initially. We want to migrate to RPG on .NET first and then later to C# Core,’” Pence says.

    The support for AVR and C# gives Monarch customers more flexibility in how they move their RPG applications forward, and who does the forwarding. To that end, Encore supports the IBM i customer that wants to take the stepwise migration to C# from RPG, as well as the IBM i shop that wants to move directly to C#.

    It’s the best of both worlds, Pence says.

    “For many shops, the fading RPG team has three to five years left to work and migrating to RPG is strategic – at least for those remaining years,” he says. “The RPG programmers can help remediate the migrated applications in AVR (which they will intrinsically understand) and, post-migration, work with the C# programming team introducing RPG business logic, bugs, work-arounds, and whatever other communal topics need to be transferred. In three to five years, these shops want to press a button and boom, turn that AVR into C#.”

    Encore may eventually replace AVR in the Monarch product, but it’s not ready to take that role at this point, Pence says. “The biggest difference from AVR FW is that Encore cannot produce Windows applications,” he says. “We currently don’t have plans to package Encore as its own stand-alone product. Its initial focus and purpose now is to facilitate RPG application migrations.”

    On the user interface front, Monarch 11 supports the creation of HTML5 pages, powered by ASP.NET Core and Razor pages. Razor pages are basically the Microsoft .NET Core replacement for the original Web UI/presentation model in .NET Framework, Pence says.

    Monarch 11 is available now. For more information, see www.asna.com.

    RELATED STORIES

    ASNA Dips Its New ‘Wings’ Into OAR Waters

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

    ASNA Launches Monarch for RPG-to-.NET Migration

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Tags: Tags: .NET, ASNA, ASP.NET Core, AVR, C, Encore RPG, HTML5, IBM i, Monarch 11, Monarch for .NET Core, RPG

    Sponsored by
    DRV Tech

    Get More Out of Your IBM i

    With soaring costs, operational data is more critical than ever. IBM shops need faster, easier ways to distribute IBM applications-based data to users more efficiently, no matter where they are.

    The Problem:

    For Users, IBM Data Can Be Difficult to Get To

    IBM Applications generate reports as spooled files, originally designed to be printed. Often those reports are packed together with so much data it makes them difficult to read. Add to that hardcopy is a pain to distribute. User-friendly formats like Excel and PDF are better, offering sorting, searching, and easy portability but getting IBM reports into these formats can be tricky without the right tools.

    The Solution:

    IBM i Reports can easily be converted to easy to read and share formats like Excel and PDF and Delivered by Email

    Converting IBM i, iSeries, and AS400 reports into Excel and PDF is now a lot easier with SpoolFlex software by DRV Tech.  If you or your users are still doing this manually, think how much time is wasted dragging and reformatting to make a report readable. How much time would be saved if they were automatically formatted correctly and delivered to one or multiple recipients.

    SpoolFlex converts spooled files to Excel and PDF, automatically emailing them, and saving copies to network shared folders. SpoolFlex converts complex reports to Excel, removing unwanted headers, splitting large reports out for individual recipients, and delivering to users whether they are at the office or working from home.

    Watch our 2-minute video and see DRV’s powerful SpoolFlex software can solve your file conversion challenges.

    Watch Video

    DRV Tech

    www.drvtech.com

    866.378.3366

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    New GUI, Native SMS Come to Kisco’s iEventMonitor IBM i PTF Guide, Volume 25, Number 32

    One thought on “ASNA Generates First-Class C# from RPG with Encore”

    • ema tissani says:
      August 2, 2023 at 12:27 pm

      Please include an outline of the scope / limits of the migration possibilities (to be informative to the reader…. ok and fine if that is sponsored content… but at least one can have an idea).
      RPG is also a runtime with strong ties to the application server (that exposed a lot of services).
      Say that I have a simple RPG reading from a dataqueue, write a simple log file with attached triggers, that then spool a simple printout barcode to a queue load balanced between 3 physical printers (for fault tolerance). Say 30 lines of code with a basic use of the system.
      How can one migrate such basic PGM? all the IBMi system (that provides a lot of services) is reimplemented in C#?

      IMHO there are two options to the mythical RAD (“Retiring AS400 Dude”) issue:
      – hire and train another 😉 keep the platform engaging (now you have a single problem)
      – convert all to C# (now you have two problems) 😉

      the easiest path? you choose.

      Reply

    Leave a Reply Cancel reply

TFH Volume: 33 Issue: 46

This Issue Sponsored By

  • Rocket Software
  • WorksRight Software
  • Raz-Lee Security
  • ARCAD Software

Table of Contents

  • ASNA Generates First-Class C# from RPG with Encore
  • New GUI, Native SMS Come to Kisco’s iEventMonitor
  • Midsummer Security Indicators: Hot and Gloomy
  • Four Hundred Monitor, August 2

Content archive

  • The Four Hundred
  • Four Hundred Stuff
  • Four Hundred Guru

Recent Posts

  • The Power11 Transistor Count Discrepancies Explained – Sort Of
  • Is Your IBM i HA/DR Actually Tested – Or Just Installed?
  • Big Blue Delivers IBM i Customer Requests In ACS Update
  • New DbToo SDK Hooks RPG And Db2 For i To External Services
  • IBM i PTF Guide, Volume 27, Number 33
  • Tool Aims To Streamline Git Integration For Old School IBM i Devs
  • IBM To Add Full System Replication And FlashCopy To PowerHA
  • Guru: Decoding Base64 ASCII
  • The Price Tweaking Continues For Power Systems
  • IBM i PTF Guide, Volume 27, Numbers 31 And 32

Subscribe

To get news from IT Jungle sent to your inbox every week, subscribe to our newsletter.

Pages

  • About Us
  • Contact
  • Contributors
  • Four Hundred Monitor
  • IBM i PTF Guide
  • Media Kit
  • Subscribe

Search

Copyright © 2025 IT Jungle