01a - RPG (EN)

RPG IV free cheatsheet

Last Updated on 7 June 2022 by Roberto De Pedrini

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

About author

IBM i's mentor IBM Champion 2021 for Power Systems

Leave a Reply

Your email address will not be published. Required fields are marked *