• The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
Menu
  • The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
  • REPL Tool Gives RPG Developers Immediate Feedback

    April 20, 2022 Alex Woodie

    If you’ve ever wanted to quickly know what a small snippet of RPG code does but do not want to take the time to compile a test program and go through the debugging process, then you might be interested in rpgle-repl, a new open source Read-Evaluate-Print-Loop (REPL) utility that was recently shared with the IBM i community.

    Tom Sharp, a senior developer at a financial software provider in the UK, says he created rpgle-repl after receiving numerous requests from his colleagues about what particular pieces of RPG code actually did.

    “The first place to check would always be the IBM Redbooks (especially if it was a section with examples!), then a search for articles and forums with similar questions on sites such as IT Jungle and Code400 for a more detailed walkthrough,” Sharp tells IT Jungle.

    If these resources didn’t provide an answer to his specific query, then he would ping his colleagues via his company’s Slack. Lastly, he would write a skeleton program to run the snippet in question, he says.

    Now he has something better. Instead of taking the time to write a skeleton program and then compiling and debugging it to see how it impacts the values of local variables, he created rpgle-repl, which he thinks is a better way.

    “This was something I created for our development team after realizing that our internal chat was full of questions like ‘What exactly do all these built-in functions do? How does this weird legacy code respond to these inputs? And is this the right free format equivalent to this old fixed format code I found?’” Sharp wrote in a post to Ryver, an online forum for discussions about open source IBM i software.

    In his Ryver post, Sharp describes rpgle-repl as “a lightweight wrapper to compile and run a program containing on-screen code, with some crafty parsing to print out the values at runtime.”

    The rpgle-repl offering, which can be downloaded from Sharp’s GitHub repository, speeds up the development process by allowing developers to quickly see what a snippet of code is doing. And not only does it automatically compile snippets of code, Sharp said, but it also dynamically records changed variables and displays the results on screen.

    The new rpgle-repl tool functions as a lightweight wrapper to compile and run an RPG program in an online manner. (Image source: Tom Sharp)

    Sharp says rpgle-repl lets him quickly see what his colleagues are up to, and whether what they’re doing is working or not. And since the snippets created by users are automatically saved according to their session ID, rpgle-repl allows users to share their snippets with others.

    The feedback among Sharp’s colleagues has been very positive, he says.

    “I think our most common use case is users double-checking the right combination of keywords to turn a date into a UK format date string,” he says. “My colleagues have also really helped shape usability questions on saving snippets and navigating the screen, and I’m always really excited to see how people are using it — especially when they start using it in ways I hadn’t even considered! There’s a real feeling of joy in seeing that people have been able to use rpgle-repl to check in less than a minute something that would have previous taken five minutes to look up.”

    The new tool also received a warm reception on Ryver. “Wow, that’s quite amazing,” wrote Kevin Adler, an IBM engineer based in Rochester, Minnesota. Others noted the potential of rpgle-repl to function as a training mechanism for new programmers, particularly with the ability the share snippets.

    Sharp said rpgle-repl has settled down as a stable product. He is soliciting feedback, and is open to requests for additional features. “My slow-moving roadmap has supporting nested data structures, and resolving a variable name length limit up next,” he said.

    For more information or to download rpgle-repl, see github.com/tom-writes-code/rpgle-repl.

    RELATED STORY

    Want to Talk IBM i OSS? Head Up the Ryver

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Tags: Tags: IBM i, Read-Evaluate-Print-Loop, REPL, RPG, rpgle-repl

    Sponsored by
    WorksRight Software

    Do you need area code information?
    Do you need ZIP Code information?
    Do you need ZIP+4 information?
    Do you need city name information?
    Do you need county information?
    Do you need a nearest dealer locator system?

    We can HELP! We have affordable AS/400 software and data to do all of the above. Whether you need a simple city name retrieval system or a sophisticated CASS postal coding system, we have it for you!

    The ZIP/CITY system is based on 5-digit ZIP Codes. You can retrieve city names, state names, county names, area codes, time zones, latitude, longitude, and more just by knowing the ZIP Code. We supply information on all the latest area code changes. A nearest dealer locator function is also included. ZIP/CITY includes software, data, monthly updates, and unlimited support. The cost is $495 per year.

    PER/ZIP4 is a sophisticated CASS certified postal coding system for assigning ZIP Codes, ZIP+4, carrier route, and delivery point codes. PER/ZIP4 also provides county names and FIPS codes. PER/ZIP4 can be used interactively, in batch, and with callable programs. PER/ZIP4 includes software, data, monthly updates, and unlimited support. The cost is $3,900 for the first year, and $1,950 for renewal.

    Just call us and we’ll arrange for 30 days FREE use of either ZIP/CITY or PER/ZIP4.

    WorksRight Software, Inc.
    Phone: 601-856-8337
    Fax: 601-856-9432
    Email: software@worksright.com
    Website: www.worksright.com

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Infor CM3 to Provide On-Prem Alternative to Cloudy M3 ALL400s Survey Paints a Picture of IBM i Community

    3 thoughts on “REPL Tool Gives RPG Developers Immediate Feedback”

    • paulhark@aol.com says:
      April 20, 2022 at 11:51 am

      Great idea!!!

      This has long been accomplished, and more, with the Real-Time Program Audit (RTPA) for IBM i RPG, COBOL and CL programs.
      see http://www.realtimeprogramaudit.com

      Real-Time Program Audit Overview Multilingual Demonstration English and German

      Real-Time Program Audit Overview Multilingual Demonstration English and German – YouTube

      Free one-year RTPA for IBM i evaluation downloads may be requested at http://www.realtimeprogramaudit.com

      ISV Toolmaker gmbh at http://www.toolmaker.de has a German (multilanguage) version of RTPA available as product directaudit

      Reply
    • Íñigo says:
      April 21, 2022 at 2:31 am

      The link to the repository is wrong.
      The correct one should be: https://github.com/SharpRepository/SharpRepository

      Reply
      • Íñigo says:
        April 21, 2022 at 2:32 am

        Sorry, wrong link (better check before publish) 😉

        Reply

    Leave a Reply Cancel reply

TFH Volume: 32 Issue: 27

This Issue Sponsored By

  • ARCAD Software
  • UCG TECHNOLOGIES
  • iTech Solutions
  • WorksRight Software
  • Krengeltech

Table of Contents

  • ALL400s Survey Paints a Picture of IBM i Community
  • REPL Tool Gives RPG Developers Immediate Feedback
  • Infor CM3 to Provide On-Prem Alternative to Cloudy M3
  • Four Hundred Monitor, April 20
  • IBM i PTF Guide, Volume 24, Number 16

Content archive

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

Recent Posts

  • Meet The Next Gen Of IBMers Helping To Build IBM i
  • Looks Like IBM Is Building A Linux-Like PASE For IBM i After All
  • Will Independent IBM i Clouds Survive PowerVS?
  • Now, IBM Is Jacking Up Hardware Maintenance Prices
  • IBM i PTF Guide, Volume 27, Number 24
  • Big Blue Raises IBM i License Transfer Fees, Other Prices
  • Keep The IBM i Youth Movement Going With More Training, Better Tools
  • Remain Begins Migrating DevOps Tools To VS Code
  • IBM Readies LTO-10 Tape Drives And Libraries
  • IBM i PTF Guide, Volume 27, Number 23

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