Tag Archives for " #RPGLE "

Jun 30

How to use named indicators in RPG

Programming , IBM i , RPG

When is an RPG indicator more than just a number? We can use a named data structure to overlay over the top of all the indicators used in the program. Using this technique, we can define a sensible name for the each of the memory spaces associated with the indicators. For example — when the user […]

More Waffle
Apr 22

Example RPGLE Trigger Program

IBM i , Programming , RPG

This morning, an old programming chum of mine was chatting to me about writing a program, that would be called everytime anything was updated in a given file (table) on the system. This action is very simple in the IBM-i world, using a technique called FILE TRIGGERS. What is a Trigger? A trigger is a […]

More Waffle
Feb 28

RPG **FREE is finally fully free form

IBM i , Programming , RPG

Modern ILE RPG now (finally) supports “fully-free” RPG Source code This means, we can write RPG code from column 1 to the end of the line — just like other languages. No more jumping to character 10 to get passed the old reserved (H,F,D,I,C,O) specification column. You must code **FREE in column 1 of the […]

More Waffle
Feb 01

Duplicate a line in RDi with CTRL/D

IBM i , Life , Programming

Duplicate a line in RDi with CTRL/D

Yes – Forget COPY/BEFORE/AFTER and quickly duplicate a line in RDi with CTRL/D. It’s really that simple. If, like me, you grew up with SEU as your terminal based editor choice – you will be used to Copy and Before or After. You might even get a little fancy and use the RePeat code to […]

More Waffle