MC Press Online

Wednesday, Jan 18th

Last updateTue, 17 Jan 2017 5pm

Programming / General

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 ...

TechTip: Edit Files in the IFS 2

Editing files in the IFS has been a hot topic since COMMON Spring 2016. I wanted to share how I currently do it.

Written by Aaron Bartell

With PASE becoming more and more popular via open-source languages, it makes sense that there are more and more ways to edit code in the IFS. For example, you could use the dinosaur EDTF 5250 command, which is fairly rudimentary but can do the job in a pinch (hey, I still use it sometimes). A next step up is the Joe editor, which can be used from an SSH session and actually works decentlyyet another editor I use in a pinch. I've also used RPGNextGen.com's editor for IFS files, and that has worked, though it lacked syntax coloring. And of course I'd be remiss if I didn't mention RDi and its ability to easily navigate and edit IFS files. But as we all know, RDi comes at a premium and still doesn't run on Mac (which is what I use).

Read more ...

TechTip: Edit Files in the IFS

Written by Aaron Bartell

Editing files in the IFS has been a hot topic since COMMON Spring 2016. I wanted to share how I currently do it.

With PASE becoming more and more popular via open-source languages, it makes sense that there are more and more ways to edit code in the IFS. For example, you could use the dinosaur EDTF 5250 command, which is fairly rudimentary but can do the job in a pinch (hey, I still use it sometimes). A next step up is the Joe editor, which can be used from an SSH session and actually works decentlyyet another editor I use in a pinch. I've also used RPGNextGen.com's editor for IFS files, and that has worked, though it lacked syntax coloring. And of course I'd be remiss if I didn't mention RDi and its ability to easily navigate and edit IFS files. But as we all know, RDi comes at a premium and still doesn't run on Mac (which is what I use).

Read more ...