So, we all know that downloading big, fat files from the internet can be a big, fat pain in the big, fat arse. Luckily a free tool called “Free Download Manager” takes that pain away. Even if you enjoy a fast internet connection, being disconnected near the end of a big download can make you

Read More

Here’s one to change a 6,0 numeric date in MMDDYY form to 7,0 numeric date in CYYMMDD form. INTERAL_DATE is the 7,0 CYYMMDD date. EXTERNAL_DATE is the 6,0 MMDDYY date.

...
Read More

The RPG Logic Cycle  The RPG LOGIC CYCLE is the backbone of the old RPG programming language. It’s use has faded in recent years but it should still be known and understood by every modern RPG language Developer 😉 So, regardless of whether you want to code modern or *cough* old style…. Let’s see what

Read More

What is a load all subfile? A load all subfile is one in which we generally specify the subfile size as 9999 in the record format itself. However, you may define the subfile size to be less than 9999 in the record format and still load all your subfile at a time. In that situation

Read More

Expandable subfiles in RPGLE An expandable subfile is one in which ideally one page of records are loaded at a time. Subsequent pages are added to the subfile as per the user demand. In the expandable subfile the subfile size must be at least one greater than the page size. The ILE RPG program to

Read More

A copybook is a technique that us RPG PROGRAMMERS use to suck in piece of re-useable code without having to type it every time into lots of programs. A typical use of a copybook might be something like this scenario: Every program within an application uses the *LDA (Local Data Area) to store specific pieces

Read More

What are RPG COPYBOOKS anyway? Copybooks are a very simple way of reproducing the same code into many programs: a copybook is a source member containing a section of code that can be inserted/copied into any other source member at compilation time. The main idea behind RPG Copybooks is re-usability. Think of a copybook as

Read More

When IBM introduced RPG IV (RPGLE) back in the mid 90’s, most of the RPG III opcodes were converted into built in functions. This makes for more readable code and efficient programming. The built in functions each do a particular function just like any opcode would have done. Since the built in functions are provided

Read More

Conditional selection in RPGLE In RPGLE we have the following conditional opcodes available: The If-EndIf block The If – Else- EndIf block The If – ElseIf – Elseif – EndIf block The Select Block Let’s look at them one by one. The If-EndIf in RPGLE If we want some RPGLE Statement(s) to be executed conditionaly.

Read More

RPG and the AS/400 platform have a long history. When the System/3 was introduced in the 1970s, RPG was first released , the language evolved and RPG II use of the logic cycle was many programmers first experience of pulling hair out while staring at a green screen. RPG III was released with the System/38,

Read More