Ibm I Articles

Tom Snyder
Here are some articles that I have written that I hope you will find useful. The articles are a mix of multiple languages, including but not limited to RPG, Java, C#, C++ and PHP. You can find the articles published on MCPressOnline.com and some that are exclusive to this site. Enjoy!

Online AS/400 Accounts

I've recently been looking for an online IBM i account with the following desired options:

  • V7R1
  • Best price
  • Most storage

Here is what the Google gave me:

Articles: 

Use Git to Document and Manage Any Source Code with Version Control

Feature Article - Developer Article

Provide versioning and rollback capabilities to your source code with the resolution of individual code modifications.

tom_snyder.jpgBy Tom Snyder

Programmers in any language have supported multiple versions of source code during development, the simplest case being that you can keep a copy of the current production code while you work on a new version that contains your current development changes. But what if you wanted to document each change and have the ability to selectively reset any changes while supporting multiple developers working on the same source code? Git can help with this.


Read More >>
 
 
Articles: 

Update Your Data with Peace of Mind Using Commitment Control

Feature Article - Developer Article

Learn how to use commitment control in your RPG programs to ensure a complete transaction and how to roll back the changes when unable to complete.

I'm usually talking about powerful IBM i resources that can do great things with minimal work. Commands such as those need to be treated with respect and tested well to ensure that you'll get the expected results. In this article, I'll be taking a step back to talk about some safety measures that you could take to protect the integrity of your data by using commitment control within your code.


Read More >>
 
 
Articles: 

Get the Day of the Week, Full Text Date Values, and More Within RPG Using SQL

Feature Article - Developer Article

Create useful date-centric service programs with embedded SQL.

Welcome to 2012! All of our year-end processes are complete, and it's the beginning of a new year with a clean slate. 2011 was a very clean year date-wise because it ended on a Saturday. Typically, there is always special handling with the last week of the year for one reason or the other, which makes working with data a prevalent topic. For this article, I wanted to share a few handy little SQL functions that I've put into service programs to extend the existing RPG date resources. And this is all done with very minimal code in a reliable way that is highly reusable.


Read More >>
 
 
Articles: 

Using Binding Directories with Your Service Programs

Feature Article - Developer Article

Make compiling easier for service programs with the use of binding directories.

With the end of the year comes time to close out my series of articles on service programs. In previous articles, I discussed how to create a service program, followed by discussing the benefits and cautions of using the binding language with your service programs. In this article, I'll discuss how to create binding directories and why you would want to use them.


Read More >>
Articles: 

2WolvesOut.com is now Code-Gorilla.com

2Wolvesout.com is now Code-Gorilla.com

I am happy to announce that I have changed my website domain from 2WolvesOut.com to Code-Gorilla.com!

I have redirected the 2WolvesOut domain to Code-Gorilla, so you will have access to all of the same great information that you've had before and I plan on adding lots of new content.

Articles: 

Using Binding Language with Your Service Programs

Feature Article - Developer Article

Do you know how to recompile your service programs without having to recompile all programs using the service program?

I have to admit that the binding language was a late discovery for me, and I've struggled for quite awhile working around it. But I've found the binding language to solve the problem of having to recompile your service programs without having to recompile all the programs that are using it. Without the binding language, service programs are very similar to modules due to the need to recompile the programs every time they change. This article will show you how to overcome this problem with the use of the binding language.


Read More >>
Articles: 

How to Create, Compile, and Use Service Programs

Feature Article - Developer Article

Did you know you can create service programs from commonly used procedures?

I am a big advocate of encapsulation and modular programming to build solid code from reusable components. One of the capabilities that ILE gives us to promote these programming ideals is the service program. In this article, I'll walk through the steps of taking a commonly used procedure and putting it into a service program to be easily shared with other programs.


Read More >>
Articles: 

Interactive iconv using QShell

To convert an EBCDIC file on the IFS to ASCII interactively:
iconv -f 37 -t 819 fromFile.txt > toFile.txt

Articles: 

Optimize Your RPG Code to Run Faster Using Static Variables

Feature Article - Developer Article

Take advantage of global, static, and non-static variable attributes within subroutines and procedures.

IBM has always been good at giving us all the tools that we need in one box and ensuring that they run on the box reliably and efficiently. Since RPG has evolved into the ILE environment, we have been given more capabilities in the realm of modular coding and encapsulation. With these new capabilities, you have to learn about what you're gaining, what you're losing, and what all the nuances are of the different coding styles. In this article, I intend to describe the scoping and attributes of variables with RPG procedures.


Read More >>
Articles: 

Pages