What are single page subfiles? A single page subfile is a SCREEN OF DISPLAYED DATA, loaded one page at a time. The displayed data is equal to the maximum number of records that can be displayed at a time. In other words, in a single page subfile, all loaded records are displayed at a time.

Read More

Playing with a RPG Subfile Poking around on the filthiest corners of the IBM i Programmers internet this morning, I stumbled across someone else’s sample subfile template for an RPG program. This is quite an old-style RPG program (it looks like it’s from around 2012) but should still work well today. It looks quite nice,

Read More

I was recording a screencast about modernizing some old RPG400 to ILE RPG this morning and had to knock up this little code example showing the difference between legacy RPG400 code and modern RPG ILE code. Note, this is not an example of good code (it’s crappy old RPG code) but it’s just an example

Read More

I read this article (written by Scott Klement) a few years ago and it was a great intro to the principles of using a webservice to read data on another computer in the cloud. Fast forward to this week, and since I’ve just written a webservice control procedure, I was looking for this document to

Read More

Use the Retrieve Job Attribute (RTVJOBA) command to snaffle the job’s run type from the attributes. Seems pretty obvious right? One little niggle was that the RTVJOBA passes back a char(1) value for the jobtype where ‘0’ means batch and ‘1’ means interactive. But, I want to be able to neatly compare a logical value

Read More

Lets start with a reasonably mixed RPGLE code example which is older style column based RPG400 for its variable definitions but then uplifts to RPGLE /FREE for its body code: Step1 – Run code through the Projex4i Code Moderniser. The Upgrade RPG Source command (UPGRPGSRC) will clean our code, converting it to fully /FREEFORMAT ILE

Read More

Rational Developer for IBM i 9.6 Fixpack 7 is now available! The 9.6.0.7 fixpack contains some nice little enhancements and fixes! One feature really caught my eye- The New extract procedure refactoring feature, used to convert business rules into reusable procedures in RPG sounds a bit saucy. How does ‘Refactor Extract Procedure‘ work? We select

Read More

Now that’s a mouthful! So, I’ve been asked to install the latest July 2019 version of Lansa Axes (v4.2.0) for a client. Axes is a web application, running on your IBM i Server, which will replace old traditional green-screen 5250 terminal screens like this: to this: Remove any previous versions of LANSA AXES GO LICPGM

Read More

Let’s play with RDi and CL! I was happily editing some CLP code in RDi and very pleased with the Rational Developers automatic code reformatting: stretching out my Control Language code to fit the screen neatly. This is a nice enhancement to the code editing experience and blows the trusty old SEU workhorse out of

Read More

so whats the difference between:

 

Chain (keyfields) filename;
If Not %eof( filename );
--- do something ---
EndIF;

 

and Code:

 

Chain (keyfields) filename;
If %Found( filename )
--- do something ---
EndIF;

 

...
Read More