Categories: 01a - RPG (EN)

RPG IV free cheatsheet

The RPG “cheatsheet”

Many programming languages have one or more versions of the so-called “cheatsheet”. A document of a few pages, often only one that summarizes in a synthetic form the most important syntactic rules of the language. A sort of cheat sheet to keep handy as a reminder and brief reference guide to be consulted quickly while writing the code.

A quick way to remember for example data types and basic rules for defining variables, the syntax of cyclic or control structures, and so on.

Of course I know the concepts of programming and have written that particular code constructs before, but … at this very moment, I have a slip and don’t remember exactly the syntax. I may vaguely know that there is a function to manipulate a date field, but I don’t remember the exact name. Sure, I could go looking in the manual for the reference RPG or “googling” right away. But if I had a RPG cheat sheet that in a couple of schematic pages contains everything that in most cases I need when developing a program?

And – even better – if this were it interactive? What if from the name of the function, from the opcode you could click and immediately open the IBM manual page with the complete syntax? Or with another click to open a piece of code on GitHub with some example lines? Wouldn’t that be great?

I have searched and have not found it. Maybe it exists and it would be useful to share the information in the comments of this article if anyone is aware of such a document.
There is a document – now somewhat dated (2009) – by Bob Cozzi available at this link . But something more was needed.
So I thought it might be useful to produce a RPG IV free cheatsheet , because RPG is no less than other so-called “modern” languages. The RPG must also have its own cheat sheet.
I don’t know if the attempt I propose has achieved its purpose. I dubbed it RPG IV free cheatsheet v. 1.0 , because surely it can be improved and will follow the v. 1.1, 1.2 … both to complete any missing content and to improve conciseness, graphics and examples. The aim is to have a really useful document to keep there at your fingertips (or better by mouse) on your desktop.

RPG IV free cheatsheet is downloadable from this link .

Related Posts
DB2 for i SQL – String Manipulation – POSSTR-LOCATE-LOCATE_IN_STRING (EN)

Introduction Often, in our applications, we need to work with text strings, and DB2 SQL can come in very useful Read more

DB2 for i – FAQ & Howtos (EN)

DB2 Database and SQL ... maybe the most important things on IBM i platform: here's a collection of FAQs, tips Read more

IBM i 7.4 Announcement (En)

Comes directly with the Easter egg this IBM announcement for the news of the IBM i 7.4 version, iNext version Read more

Generated Always Columns (EN)

Introduction "Generated Always Column": are columns, table fields, filled by DB2 engine: something like columns with a default value but Read more

Recent Posts

Managing Locked Display Files on IBM i: An Effective Solution

We are pleased to receive and share this "tip & trick" from Patrick Rizzi, which introduces a technique that allows…

2 weeks ago

Monitoring QSYSOPR Messages: SQL to Retrieve Messages and Replies

I take inspiration from a response by Michael Mayer on the Midrange.com mailing lists to someone who asked how to…

2 weeks ago

Why ERP is the Key to Success for Modern Businesses

Businesses are increasingly seeking tools to enhance efficiency, collaboration, and resource management. Enterprise Resource Planning (ERP) systems provide a comprehensive…

2 months ago

ACS Access Client Solution 1.1.9.5

Early April saw the release of the "Spring Version" of ACS Access Client Solution, version 1.1.9.5 Interesting new features especially…

7 months ago

Tim Rowe and Scott Forstie for CEC 2024 – Milan

If the packed agenda of sessions at Common Europe Congress 2024, June 3-6 Milan, wasn't enough for you, here's another…

7 months ago

Code for IBM i 2.10.0 – Debug IBM i App with Visual Studio Code

Debugging functions with Visual Studio Code have been available for some time but this new version 2.10.0 simplifies the handling…

7 months ago