• The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
Menu
  • The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
  • Guru: When RNF0722 Won’t Let Your Legendary RPG Program Compile

    October 12, 2026 Gregory Simmons

    Some RPG programs have been around for decades. They started small enough. Then another calculation was added here, another subroutine there, a /COPY member or two, and years of enhancements, fixes, and changing business requirements.

    Eventually, some of them became colossal. And let’s face it, we all have “legacy” or, as some would argue, “legendary” programs that are older than a lot of our new hires.

    We all know these programs. They’re the ones everybody agrees should be broken apart someday, but they’re also important production programs that still need to be maintained today. And sometimes “today” presents a very immediate problem:

    RNF0722 - The debug listing view is too big.
    

    When you encounter RNF0722, the RPG compiler isn’t necessarily telling you that there is too much executable logic. The problem is specifically the debug listing view the compiler is attempting to create.

    If you’re maintaining one of these aging giants, there is a long-standing RPG preprocessor option that might buy you some breathing room:

    PPGENOPT(*RMVCOMMENT)
    

    So what does *RMVCOMMENT do? *RMVCOMMENT is an option of the PPGENOPT parameter on the RPG create commands. It tells the RPG preprocessor to remove comments, blank lines, and most compiler directives from the source it generates.

    The important point is that it doesn’t remove anything from the source you maintain.

    Your comments stay exactly where they are. Developers still see them when they’re working with the source. The preprocessor simply removes material that isn’t needed from the source it generates for the compiler.

    Consider what can accumulate in a program that has been maintained for 20, 30, or even more years:

    • Modification histories
    • Large blocks of documentation
    • Comments explaining business rules
    • Commented-out code
    • Decorative comment separators
    • Blank lines
    • Comments brought in through /COPY members

    Those comments may be extremely valuable when you’re trying to understand a decades-old program. You don’t want to delete them just to make the program compile.

    With *RMVCOMMENT, you don’t have to.

    Putting *RMVCOMMENT To The Test

    I tried this with a particularly large RPG program. First, I compiled exactly the same source normally. Then I compiled it again using PPGENOPT(*RMVCOMMENT).

    Here were the resulting program sizes:

    Compile	                Program size
    Without *RMVCOMMENT	39,944,192 bytes
    With *RMVCOMMENT	38,596,608 bytes
    Reduction	        1,347,584 bytes (3.37%)
    

    A 3.37 percent reduction may not sound enormous for an ordinary program, but we are not talking about an ordinary program. We are talking about one that’s already large enough to encounter RNF0722. When you are bumping into a compiler limit, a few percent can suddenly become very interesting. And in this case, that reduction required no changes to the application logic and no removal of comments from the maintained source.

    How Do You Use It?

    The option is available on both CRTBNDRPG and CRTRPGMOD.

    For CRTBNDRPG:

    CRTBNDRPG PGM(MYLIB/BIGPROGRAM) SRCFILE(MYLIB/QRPGLESRC) SRCMBR(BIGPROGRAM)
               PPGENOPT(*RMVCOMMENT)
    
    For CRTRPGMOD:
    CRTRPGMOD MODULE(MYLIB/BIGMODULE) SRCFILE(MYLIB/QRPGLESRC) SRCMBR(BIGMODULE)
              PPGENOPT(*RMVCOMMENT)
    

    There is one important limitation: PPGENOPT(*RMVCOMMENT) is not available on CRTSQLRPGI.

    That’s worth keeping in mind because many large RPG programs contain embedded SQL and are compiled using CRTSQLRPGI.

    So, here is the obvious question: Should we start using *RMVCOMMENT everywhere? Probably not. Yes, my test resulted in a 3.37 percent smaller program object. If you have hundreds of large RPG programs, reductions like that could add up.

    But I wouldn’t recommend turning on *RMVCOMMENT throughout an application just to reclaim some disk space. IBM i storage probably isn’t the reason you’re reading an article about a nearly 40-million-byte RPG program.

    The interesting use case is much more specific. If you’re maintaining one of these colossal RPG programs and encounter RNF0722, PPGENOPT(*RMVCOMMENT) may give the compiler the breathing room it needs to successfully create the program.

    That’s when this easily overlooked option becomes worth remembering.

     A Lifeline, Not A Cure

    Of course, there’s an elephant in the room. If an RPG program has grown large enough to encounter RNF0722, PPGENOPT(*RMVCOMMENT) shouldn’t be viewed as the ultimate solution. It’s a way to buy some breathing room.

    The long-term solution is to reduce the size and responsibilities of these colossal programs through procedure-driven RPG, gradually moving business logic into focused procedures and, where appropriate, into separate modules and service programs.

    I have covered this approach in other articles, so I won’t go into detail here. If you’re ready to start breaking apart one of these aging giants, those articles outline a practical, incremental path rather than a risky all-at-once rewrite.

    But architectural improvements take time, and sometimes today’s requirement is considerably simpler: You need to compile the program. That’s where PPGENOPT(*RMVCOMMENT) can help. Use *RMVCOMMENT to keep the program compiling. Then use procedure-driven RPG to make sure you don’t need it forever.

    Until next time, happy coding.

    Gregory Simmons is a Project Manager with PC Richard & Son. He started on the IBM i platform in 1994, graduated with a degree in Computer Information Systems in 1997 and has been working on the OS/400 and IBM i platform ever since. He has been a registered instructor with the IBM Academic Initiative since 2007, an IBM Champion and holds a COMMON Application Developer certification. When he’s not trying to figure out how to speed up legacy programs, he enjoys speaking at technical conferences, running, backpacking, hunting, and fishing.

    RELATED STORIES

    Guru: Two More Small But Handy RPG Enhancements: LIKE(*EXT) And %LOOKUPNE

    Guru: Beyond Three-Part Naming – Running SQL Across Remote IBM i Systems

    Guru: Finding Data In The Forest – Exploring Three-Part Naming In SQL

    Guru: SQL Sequences In RPG Let Db2 Handle The Counting

    Guru: IBM i Job Log Detective Brings Structure To Job Log Analysis In VS Code

    Guru: Managing The Lifecycle Of Your Service Programs – Updates Without Chaos

    Guru: Are Binding Directories A Shortcut Or A Source Of Chaos?

    Guru: Service Programs And Activation Groups – Design Decisions That Matter

    Guru: Binder Source Is Your Service Program’s Owner’s Manual

    Guru: Access Client Solutions 1.1.9.11 – Security First, With Continued Investment In SQL Tooling

    Guru: Taming The CRTSRVPGM Command – Options That Can Save Your Sanity

    Guru: CRTSRVPGM Parameters That Can Save or Sink You

    Guru: A First Look at Bob, The IBM i Assistant That’s Closer Than You Think

    Bob More Than Just A Code Assistant, IBM i Chief Architect Will Says

    IBM Pulls The Curtain Back A Smidge On Project Bob

    Big Blue Converges IBM i RPG And System Z COBOL Code Assistants Into “Project Bob”

    Guru: When Attention Turns To You – Writing Your Own ATTN Program

    Guru: WCA4i And Granite – Because You’ve Got Bigger Things To Build

    Guru: When Procedure Driven RPG Really Works

    Guru: Unlocking The Power Of %CONCAT And %CONCATARR In RPG

    Guru: AI Pair Programming In RPG With Continue

    Guru: AI Pair Programming In RPG With GitHub Copilot

    Guru: RPG Receives Enumerator Operator

    Guru: RPG Select Operation Gets Some Sweet Upgrades

    Guru: Growing A More Productive Team With Procedure Driven RPG

    Guru: With Procedure Driven RPG, Be Precise With Options(*Exact)

    Guru: Testing URLs With HTTP_GET_VERBOSE

    Guru: Fooling Around With SQL And RPG

    Guru: Procedure Driven RPG And Adopting The Pillars Of Object-Oriented Programming

    Guru: Getting Started With The Code 4 i Extension Within VS Code

    Guru: Procedure Driven RPG Means Keeping Your Variables Local

    Guru: Procedure Driven RPG With Linear-Main Programs

    Guru: Speeding Up RPG By Reducing I/O Operations, Part 2

    Guru: Speeding Up RPG By Reducing I/O Operations, Part 1

    Guru: Watch Out For This Pitfall When Working With Integer Columns

    Share this:

    • Share on Reddit (Opens in new window) Reddit
    • Share on Facebook (Opens in new window) Facebook
    • Share on LinkedIn (Opens in new window) LinkedIn
    • Share on X (Opens in new window) X
    • Email a link to a friend (Opens in new window) Email

    Tags: Tags: 400guru, FHG, Four Hundred Guru, IBM i, RNF0722, RPG

    Sponsored by
    i-Rays

    i‑Rays learns how your IBM i behaves; not just how it performs. Detect deviations hours before incidents form and eliminate alert fatigue with true behavioral observability.

    Traditional monitoring tells you when something breaks. i‑Rays tells you why it’s about to break. By baselining behavioral patterns across jobs, subsystems, and queues, i‑Rays highlights the most likely root cause long before users feel the impact. It’s proactive, noise‑free, and built for mission‑critical IBM i environments.

    Request a Demo

    Share this:

    • Share on Reddit (Opens in new window) Reddit
    • Share on Facebook (Opens in new window) Facebook
    • Share on LinkedIn (Opens in new window) LinkedIn
    • Share on X (Opens in new window) X
    • Email a link to a friend (Opens in new window) Email

    A Read-Only MCP Server For Db2 for i IBM Wheels And Deals To Sell Power Systems, Storage, and Software

    3 thoughts on “Guru: When RNF0722 Won’t Let Your Legendary RPG Program Compile”

    • Dan says:
      October 12, 2026 at 12:54 pm

      Comments? What are those?

      Reply
    • wimjongman says:
      October 16, 2026 at 7:42 am

      Thanks! A great tip.

      Reply
    • ema tissani says:
      October 16, 2026 at 12:03 pm

      39,944,192 ? wow!!! I thought mine was bigger…

      Reply

    Leave a ReplyCancel reply

TFH Volume: 36 Issue: 35

This Issue Sponsored By

  • Maxava
  • FalconStor
  • i-Rays
  • Raz-Lee Security
  • WorksRight Software
  • FalconStor

Table of Contents

  • IBM Goes GA With Power Autonomous Operations
  • IBM Wheels And Deals To Sell Power Systems, Storage, and Software
  • Guru: When RNF0722 Won’t Let Your Legendary RPG Program Compile
  • A Read-Only MCP Server For Db2 for i
  • IBM i PTF Guide, Volume 28, Number 35
  • Please Take The IBM i Marketplace Survey So We Know What You Know

Content archive

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

Recent Posts

  • Guru: RPG’s New %INFO BIF. Is It Time to Retire the SDS?
  • Big Blue Backs Off On Power Memory Redundancy As Memory Prices Soar
  • IBM i PTF Guide, Volume 28, Number 42
  • IBM i Delivers New Development Tooling With 2026 Fall Tech Refreshes
  • Big Blue Says AI Is Not Behind The Big Uptick In IBM i Security Alerts
  • Guru: Web Service With Pagination
  • The GenAI Revolution And Product Shortages Send IT Budgets Skyward
  • IBM i PTF Guide, Volume 28, Number 40
  • IBM i PTF Guide, Volume 28, Number 41
  • Bob Code Assistant Gets Better Understanding Of IBM i Applications

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