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

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

Cryptography isnt the art of keeping dead bodies in a crypt I must admit to being a little baffled by cryptography, data encryption and all that SSL nonsense… so this was very interesting to read: Cryptography and the AS/400 Question: I need some help. I have AS/400 F20 in central site and about 30 terminals and

Read More

IBM AS400

The IBM AS/400 is a midrange system which has proven itself as the premier choice for businesses requiring a computer system capable of handling diverse business requirements ranging from Data Warehousing through to e-Commerce.

...
Read More

System Security

img_lock.gif (2375 bytes)AS/400 security features are second to none, it is no exaggeration to say that the AS/400 is one of the most secure platforms available today. Security is integrated into AS/400 architecture and protects your e-business from hackers and viruses. AS/400e is a recognized leader in security.

...
Read More

Notepad++ is a free (as in “free speech” and also as in “free beer”) source code editor and Notepad replacement that supports several languages. Running in the MS Windows environment, its use is governed by GPL License. So, you find yourself wanting to quickly open a text document to paste/edit some text and dont want

Read More