Tag Archives for " #code "

RPG Evolution, Modernization and Refactoring – Step 5 of 4 – RPG FREE FORMAT 2017

Convert it to RPG FREE FORMAT — RPG Evolution 2017 style That’s right — this is step five of four. Much like RPG evolution, the modern day free-form RPG code is way more advanced than earlier neanderthal column based RPG. The original code blog was way back in 2009, but RPG has quietly been improving all […]

Continue reading

Dirty RPG programmers need to write Clean RPG Code

This morning I was revisiting a program that I wrote last year and looking at my code thinking “Why the hell did I write it like that? #Ugly”. RPG code evolves and lots of code evolution starts in one direction and then branches off, drunkenly in another direction. This means that code can evolve to […]

Continue reading

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

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

Write to joblog messages from RPGLE /FREE – easy code example using Qp0zLprintf

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 – Qp0zLprintf I’ve used this little technique for ever. Simple define a procedure calling the API (in this example I call it “writejoblog”) and then in […]

Continue reading

RPG example: store webservice reply XML or JSON in IFS

As an RPG Programmer you are probably writing a ton of code to talk to remote webservices out there in internet land. If you are just leaning webservice programming – here is a simple RPG CODE EXAMPLE which talks to a remote webservice (using the open source HTTP API) and stores the reply from the webserice […]

Continue reading

Write to joblog messages from RPGLE – easy code example

RPG CODE EXAMPLE – “Write to joblog” Write to joblog lets us send messages from inside a running RPG program. It’s simple using one of IBM’s API’s – Qp0zLprintf I’ve used this little technique for ever. Simple define a procedure calling the API (in this example I call it “writejoblog”) and then in your mainline code […]

Continue reading

How to add the Turnover V100 Perspective to WDSC7

OK. So we already agree that using WDSC for IBM i software editing, for free, is pretty cool. But, adding Turnover V100 to it, so you can do everything from one place is even cooler. Once we have added the Turnover perspective to our existing WDSC7 setup then we can flick between perspectives to edit/compile […]

Continue reading

Example RPGLE web service program [SOAP]

Here is a quick little example RPGLE web service – it’s written in RPG, the SQLRPGLE flavor and simply reads a file (the System/21 Stockroom master file — INP20) and returns a multi-occurrence data structure (array) of the stockrooms that the user is authorized to use. #hopeithelpssomebody WEBGETSTR – get all stockrooms for a company […]

Continue reading

How to speed up IBM WDSC or RDi for faster RPG editing

WDSC7 is the coolest (free) editor for RPG/CL programmers on the IBM i operating system. We know that right? But it’s still annoyingly clunky to use at times, Unless you free it up to use some more memory and let it run free… like a gazelle… even if its a little bit of a parky […]

Continue reading