MC Press Online

Monday, Feb 20th

Last updateSun, 19 Feb 2017 12pm

Programming / General

TechTip: C# for RPGers - Easily Removing Duplicates, Sorting, and Reversing Lists

Rafael Victoria-Pereira

This time around, I’ll show how to perform some operations over lists that typically require some heavy coding.

Written by Rafael Victória-Pereira

Start by opening Visual Studio and locating the IntroducingLists.sln project. I’ll be using it on this TechTip to explain some more interesting methods that can save you a lot of time. Last time around, I stopped after inserting the missing old name of the IBM i. Now let’s re-add a couple of names to see how duplicates can be easily removed with a single line of code.

Read more ...

TechTip: C# for RPGers - More List Methods and a String Surprise

Rafael Victória-Pereira

Let’s continue to explore the List data type methods! I’ll also present a particularly useful string method that you’ll want to port to RPG.

Written by Rafael Victória-Pereira

The last TechTip introduced the List data type and explained a few of its (many) methods. This one will pick up where the last one left off. If you read the previous article, you’ll know that there’s an intruder in the list of IBM i names: “S/38” should be removed. Let’s start there.

Read more ...

TechTip: IFS Containers Part 2, Automation with IBM i Chroot

Automation wins in the end. IFS Containers have automation as a first class citizen.

aaron bartellWritten by Aaron Bartell

In the first article of this series, I discussed what IFS Containers are and how they use the chroot command to implement the container concept. To create the IFS Container, we had to manually create directories and copy files. That wasn't a big deal for the small example we created, but imagine if you needed to create an IFS Container for an entire PASE application that had requirements for hundreds of directories, commands, and libraries. This is where automation becomes a necessity, and more specifically, the IBM i Chroot open-source project.

Read more ...

TechTip: C# for RPGers - More on Arrays and a Different FOR Loop

Let’s continue to explore C# arrays and introduce a different FOR loop. It’s a very useful tool that has no equivalent in RPG.

Written by Rafael Victória-Pereira

In the last TechTip in this C# series, I introduced the array data type and showed how it’s defined and used. Now let’s explore some of its properties and methods, with the help of a different FOR loop: ForEach.

Read more ...

TechTip: Take Open-Source ILE Further - Creating from the IFS

The future of storing ILE source code is closer than you think.

Written by Liam Allan

In this long-awaited article, I'm going to talk about how to store your RPG and CL code on the IFS and what steps you need to take in order to create objects out of that source.

First, you should know that CRTRPGMOD, CRTBNDRPG, and CRTSQLRPGI all have a parameter to specify a stream file for source. Thanks to IBM, this makes compiling RPG programs much easier. But what about CL? There isn’t a stream file parameter on CRTBNDCL, so what options do we have? I’ll come to that in a little while. If you work with other ILE languages, you might be glad to hear that the C, C++, and COBOL “Create” commands also have stream file parameters.

Read more ...

TechTip: IFS Containers

The proliferating adoption of open source on IBM i means there's a lot going on in PASE. How does one keep from stepping on toes? "IFS Containers" to the rescue.

Written by Aaron Bartell

I was talking with a colleague the other day, and he gave me valuable feedback, stating I should do more at the beginning of articles to describe the problem or the usage scenario of the technology before I jump into the geek parts. Of course, that's priceless feedback for me because if people don't understand the "why," then they won't take the time to read. So let me start this article with a slide that describes a common scenario with shops adopting open source on IBM i (Figure 1). BTW, this entire slide deck is available here as are all of my slide decks.

Read more ...

TechTip: C# for RPGers—Introducing Arrays and the FOR Loop

This time around, I’ll start explaining how to create and handle arrays in C#. It has some similarities to RPG, which will allow you to learn new and interesting C# concepts!

Written by Rafael Victória-Pereira

C# arrays are somewhat similar to their RPG counterparts, at least in concept. You’ll see that these similarities will allow you to get a grasp on some new concepts, namely the FOR loop.

Read more ...

Data-Centric Magic

Everybody is talking about data-centric programming these days. But what is it, and what can it do for, and to, you?

david shireyWritten by Dave Shirey  

Every once in a while, we see a flurry of articles about one particular topic. It blazes forth like a flaming Molotov cocktail, gets tossed up in the air for everyone to see, and then seems to explode in a cloud of smoke. It’s 15 minutes over, the topic quietly goes about the rest of its life, sometimes fading into insignificance and other times taking its place in the hallowed pantheon of IBM i concepts.

Read more ...