MC Press Online

Sunday, Jun 25th

Last updateFri, 23 Jun 2017 1pm

You are here: Home ARTICLES Programming RPG

Programming / RPG

Practical RPG: Say Goodbye to Indicators!

Joe Pluta

The indicator is perhaps the most ignominious throwback to the original days of RPG, but the good news is that, with a little work, we can get rid of them.

Written by Joe Pluta

The indicator data type isn't terrible in and of itself. This concept is known in other languages as a Boolean, a variable that can contain one of two values: true or false.

Read more ...

Rational Developer for i Alternatives

Brian May

What do you do when you can’t scrape together funding for Rational Developer for i? There are options.

Written by Brian May

In case you haven’t noticed, since December my articles have focused on improving your shop and yourself. We have discussed investing in yourself, learning new programming languages, and updating your RPG skills. This article will continue that theme and discuss alternative options for IBM i source code editing.

Read more ...

Where Is RPG Going?

David Shirey

With the recent release of Technology Refresh 2 for 7.3, it seems only fair to take a moment and wonder just where RPG is going. Care to join me?

Written by Dave Shirey 

In January, Steve Will posted a blog on IBM Systems magazine about what’s coming up in the future for the IBM i. And certainly Steve would be the one to know. The post was insightful and packed with information. But it did trigger some thoughts in my mind, perhaps more about what wasn’t said than about what was.

Read more ...

RPG Academy: Debug Done Right - Encrypting Your Debugging Views

Rafael Victoria-Pereira

Good news for RPG shops everywhere: IBM gave us a way to protect our code from prying eyes, while keeping all the functionality of the debug views! The code is there, but it’s hidden.

Written by Rafael Victoria-Pereira

As you might have guessed, anyone with access to STRDBG, the command that replaces STRISDB, will also have access to your source code! This gets especially sticky if you run a shop that designs and sells software; you need to secure your source code and can’t let your customers peek inside your programs. Fortunately, IBM included a new parameter in CRTRPGMOD and CRTBNDRPG, which allows you to encrypt your debug views. In other words, now you can ship debuggable code and know that your code is not visible to your customers.

Read more ...

Practical RPG: Converting to Free-Form RPG, Part 2

Joe Pluta

I'm not one to get rid of something that isn't broken, but I'm not sorry to see KLISTs go away.

Written by Joe Pluta

Given the limitations of columnar RPG, the KLIST was a clever way to allow a programmer to specify a variable number of fields to access a keyed file, but at a price of a lot of lines of code for even simple jobs. Thankfully, free-format RPG has given us a way to do away with those many lines of code.

Read more ...

RPG Academy: Debug Done Right - Choosing the Right Debug View

Rafael Victoria-Pereira

Let’s finish the debug views discussion started in the previous TechTip and learn how to choose the right debug view for you.

Written by Rafael Victória-Pereira

In the previous TechTip, I discussed the *STMT*SOURCE, and *COPY debug view keywords. Let’s continue that discussion now. The next keyword on our list, in terms of the debug information provided (and the object size), is *LIST, shown in Figure 1.

Read more ...

Practical RPG: Techniques for Procedures

Joe Pluta

The procedure is one of the most powerful additions to RPG, and this article shows you some ways to leverage that power.

Written by Joe Pluta

Procedures are the Swiss army knife of application architecture on the IBM midrange platform. They provide everything from simple organization of single programs to large-scale inter-language communication across entire business applications. In order to provide all these functions, procedures necessarily have a lot of options that apply to a lot of different situations. Today, we're going to try to standardize a few of those options.

Read more ...

RPG Academy: Debug Done Right - Introducing the ILE Debugger

Rafael Victoria-Pereira

Have you met the “new” ILE Debugger? Forget ISDB. The future of debug is here.

Written by Rafael Victória-Pereira

It’s really hard to write a complete and complex piece of code without a bug or two, so you’re probably no stranger to the Interactive Source Debugger (ISDB) that has served RPG programmers since V3R1. Now that you’re moving into the brave new world of ILE, it’s also time to upgrade your debugging skills. In this subseries, you’ll learn what you need to know to turn your time-consuming pains with ISDB into something more pleasant and efficient with ILE debugger.

Read more ...