Tag Archives for " #RPGLE "

Jul 12

Write to joblog messages from RPGLE /FREE – a QMHSNDPM code example

AS400 , IBM i , iSeries , Programming , RPG

RPG CODE EXAMPLE – “Write to joblog” in RPG4 /FREE Write to joblog lets us send messages from inside a running RPG program. It’s simple using one of IBM’s API’s – QMHSNDPM RPGLE Code Example // SNDMSGLOG1.RPGLE // Simple Program to send message to joblog using QMHSNDPM // Author: nick@nicklitten.com ctl-opt dftactgrp(*no) actgrp(‘NICKLITTEN’) option(*nodebugio:*srcstmt:*nounref) alwnull(*inputonly) […]

Continue reading
Jun 30

How to use named indicators in RPG

IBM i , Programming , 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 […]

Continue reading
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 […]

Continue reading
1 2 3