Index
If you’re working on RPG modernization projects, this extension by Bob Cozzi (Cozzi Research) might save you a lot of time and manual effort.
The extension, available on the Visual Studio Code Marketplace, allows you to convert fixed-format RPG IV code to free-format RPG directly inside VS Code.
đź”— Download from VS Code Marketplace
The RPG IV to RPG Free Format Conversion extension lets you highlight a block of fixed-format RPG code – or even an entire program – and simply choose the command “Convert RPG IV to Free Format.”
According to the documentation, it supports:
In short: it’s a simple and practical tool for developers who are still maintaining legacy RPG applications but want to start moving toward the modern free-format style.
After testing it, here are the key takeaways:
✅ Speed – you can instantly convert sections of code without rewriting everything manually.
✅ Practicality – perfect when working on multiple RPG programs during a modernization project, allowing incremental updates instead of full rewrites.
✅ Compatibility – works well with mixed codebases that contain both legacy and free-format sections.
✅ Editing improvements – the included smart-editing features also make maintaining old fixed-format code more pleasant.
While very handy, this isn’t a complete refactoring tool. Some important considerations:
So – it’s a great accelerator, but not a “one-click modernization” solution.
Some practical tips for getting the most out of the extension:
rpgiv2free.removeFREEDirective, etc.) to customize conversion output to your internal standards.Bob Cozzi’s RPG IV to Free Format extension is a solid and practical tool that can accelerate the modernization of RPG applications on IBM i.
It simplifies one of the most tedious parts of the modernization process – syntax conversion – while leaving the developer in full control of the logic.
It’s not meant to replace a full modernization framework or code-refactoring suite, but it’s an excellent companion tool to have in your toolkit.
For anyone maintaining legacy RPG code, this is definitely worth trying — especially if you’re working in VS Code and want a lighter, more modern development experience.
🔗 Download on Visual Studio Marketplace – Cozzi Research RPG IV to Free Format Converter
Hello everyone, I’d like to highlight another excellent contribution by Massimo Duca, part of his ongoing IBM i & SQL…
Intrigued by some recent posts from Cristian Larsen on LinkedIn (New Release – Display File DDS Edit v 0.10.1), I…
Hello everyone, Today I’d like to draw your attention to a major new announcement from IBM: Project Bob — a…
I want to share with you a particularly useful article by Massimo Duca in the IBM i & SQL Tips…
Hello everyone, I’d like to highlight a very useful article by Marco Riva on Markonetools, where he clearly explains how…
Following a recent discussion on IBM TechXchange, I’d like to share a very useful guide by Anna Niederschulte about configuring…
View Comments
Buongiorno,
non ho idea se sia il posto corretto per fare questa domanda, comunque,
ho iniziato a sviluppare con visual code in rpg ma, mi trovo in questa situazione,
su as il pgm si compila mentre su visual code mi esce il seguente msg, non ho idea
cosa ci sia che non vada bene.
Avrei anche un'altra domanda in visual code è possibili sviluppare solo in free corretto?
Running Action: Create Program (CRTPGM) (16:39:40)
Command did not run.
* Il processo del terminale è stato terminato. Codice di uscita: 1.
* Terminale verrĂ riutilizzato dalle attivitĂ , premere un tasto qualsiasi per chiuderlo.
Grazie e saluti