Category Archives for "RPG"

Mar 20

What is AS400 modernization?

I’ve been involved in some heavy RPG modernization projects recently. Ranging from application replacements, to middleware webservice integrations to light code dusting…. I enjoy it all, just a little too much! Forget Alcoholics Anonymous, I should attend a software modernization addicts meetings where AA = AS400 Anonymous “Yes my name is Nick Litten and I […]

More Waffle
Jun 13

Funky IBM i Email Validation Program using SQL Regex

Following on from my previous blog (basic email validation) I decided that it would much nicer to (a) have the regex stored in a data area so that we can easily play with it to try different validation scenarios and (b) lets have a shot at a much stricter validation because there is an official […]

More Waffle
Jun 13

Simple email validation SQL RPG ILE program

There are lots of code snippets, example programs and long waffling discussions in internet land filled with pointy headed AS400, iSeries and IBM i programmer chaps (and chappettes) arguing about the best way to “validate an email address in RPG”. I know because I’ve read nearly all of them, as well as tried all the […]

More Waffle
Apr 15

Set off all RPG Indicators in a program

RPG INDICATORS are switches Just like car indicators (or ‘blinkers’ as my American cousins call them) they can be switched *ON or *OFF in a program to indicate the state of a certain piece of logic. In the IBM RPG language, it used to logically flick the switch of a numeric indicator 01-99 to “indicate” […]

More Waffle
Feb 27

DSPLY Sucks. QUILNGTX Rocks.

AKA – writing a new DSPLY opcode that shows more than 52 characters Using the DSPLY opcode to quickly debug a program has long been a staple of us RPG keyboard whackers. The DSPLY operation lets us “display the data in a variable” onto the screen. Everyone uses this quick and dirty technique and everyone […]

More Waffle
Jan 29

Free RPG Editor – ILEDITOR could be called RDi Lite ;)

I’ve been waiting for a simple free-format RPG editor for the longest time. Opensource ILEditor delivers. It’s free, open source, actively maintained and growing in support. It’s quick and simple to use, and I can already see that as it’s popularity grows new functions will be easy to add. #nice The Author is Liam Allen […]

More Waffle
Jan 19

Programming standards for debugging RPG Webservices

debugging rpg webservices header

Debugging RPG Webservices can be a pain in the proverbial; finding the IBM i background jobs that are running the REST Service, starting job service mode to get at the program variables and then discovering that the program was not compiled with DBGVIEW(*SOURCE) so you cant see the variables anyway. #aaaargh Debugging IBM i Webservices […]

More Waffle
Jan 02

+Happy New Year 2018

+Happy New Year 2018. One of my new years resolutions was to write cleaner code, and in the spirit of out with the old and in with the new… I already use the RPG COPYRIGHT statement and the CL COPYRIGHT STATEMENT to store the copyright message and (more importantly to me) the Version or Release number […]

More Waffle
Nov 30

Use RPG to find the day of the week

I wanted a handy little RPG code snippet to return the day name for a date. My requirement was to  feed in a date like “Nov 30 2017” and it to tell me that its ‘Thursday’. Google to the rescue, I found a nice little article by RAFAEL VICTORIA-PEREIRA (Thankyou Sir!) which has a code sample […]

More Waffle
1 2 3 15