TechTips / RPG


TechTip: Passing Parameters by Read-Only Reference PDF Print E-mail
Tips & Techniques - RPG
Written by James Buck   
Friday, 22 February 2013 00:00

To improve the flexibility of your RPG coding, and to help protect the integrity of the calling program's data, learn to use read-only reference where appropriate.

jim buckWritten by Bryan Meyers and Jim Buck

Editor's note: This TechTip is an excerpt from the book Programming in RPG IV, 4th Edition.

 

Prototypes provide an effective way to describe the data items to be passed between programs. Prototypes also offer some flexibility in the method the system will use to pass those parameters.

Last Updated on Thursday, 21 February 2013 16:16
Read more...
 
TechTip: Comments: The Good, the Bad, and the Ugly PDF Print E-mail
Tips & Techniques - RPG
Written by James Buck   
Friday, 01 February 2013 00:00

Use these techniques to ensure that you're writing effective and appropriate comments in your RPG code.

jim buckWritten by Bryan Meyers and Jim Buck

Editor's note: This TechTip is an excerpt from the book Programming in RPG IV, 4th Edition.

 

Good programming style can serve a documentary purpose in helping others understand your source code. But use comments judiciously. If you practice good code construction techniques, you'll find that "less is more" when it comes to commenting the source. Too many comments are as bad as too few. Here are some specific commenting guidelines.

Last Updated on Thursday, 31 January 2013 18:16
Read more...
 
User Rating: / 3
PoorBest 
TechTip: More Fun with Dates and Times PDF Print E-mail
Tips & Techniques - RPG
Written by Joe Pluta   
Friday, 04 January 2013 00:00

One trick in date/time arithmetic is learning to create and use durations.

joe plutaWritten by Joe Pluta

In the bad old days of RPG, dates and times were stored as pure numbers, and we had to work pretty hard to do any arithmetic. Time values were tough: when incrementing times, we had to roll the seconds into minutes and minutes into hours when either one hit 60, and then roll the hour at 24. Figuring out the number of seconds between two times was fun as well.

Last Updated on Friday, 04 January 2013 00:00
Read more...
 
User Rating: / 1
PoorBest 
TechTip: The %DIFF BIF PDF Print E-mail
Tips & Techniques - RPG
Written by Joe Pluta   
Wednesday, 12 December 2012 00:00

Date and time math is simple with %DIFF.

joe plutaWritten by Joe Pluta

This TechTip introduces you to the %DIFF BIF, a powerful function that allows you to find the difference between any two compatible date or time variables (including timestamps). This is just one more reason to start using real time and date variables in your programs and your database definitions!

Last Updated on Friday, 04 January 2013 09:34
Read more...
 
TechTip: BLOBs: Don't Run! Embrace Them with RPG! PDF Print E-mail
Tips & Techniques - RPG
Written by Gene Cobb   
Friday, 07 December 2012 00:00

There's no need to be afraid. Learn how to use RPG to load and extract binary data to and from DB2 BLOB columns.

gene cobbWritten by Gene Cobb

While vampires and zombies are all the rage these days, menacing invaders from outer space used to be the fright night monster du jour. Remember The Blob starring Steve McQueen? While this terrifying, bubbly alien may conjure up images of panic-stricken people running frantically through the streets, the database BLOB is actually something that should be…well…embraced!

Last Updated on Friday, 07 December 2012 14:54
Read more...
 
User Rating: / 4
PoorBest 
Cool Things: Read dBASE Files Easily! PDF Print E-mail
Tips & Techniques - RPG
Written by Mike Faust   
Friday, 20 April 2012 00:00

This simple service program makes dBASE file access simple.

mike_faustWritten by Mike Faust

dBASE has been around since the late 1970s/early 1980s. It was the first widely used relational database for PCs. I recently had a need to import data into the System i from the U.S. Census Bureau's Tiger database, which stores address data for all of the United States, including state, county, and city. The Tiger database is made up of multiple dBASE format files, so I needed to create a means by which I could read the data directly from the System i. In this tip, we'll take a look at a simple service program that gives you the ability to do sequential data reads from a dBASE file.

Last Updated on Friday, 20 April 2012 08:07
Read more...
 
User Rating: / 5
PoorBest 
Partner TechTip: Secrets Behind Enhancing RPG Applications PDF Print E-mail
Tips & Techniques - RPG
Written by Steve Kilner   
Monday, 11 July 2011 00:00

After measuring 12,000 projects, a leading researcher reveals his findings.

steve_kilnerWritten by Steve Kilner

Maintenance and enhancement projects for legacy systems are notorious for being budget busters and deadline killers. This article gives a quick overview of how you can significantly improve the success rate of such projects. For more information, you can also watch these short videos: Using Complexity Analysis to Lower Project Costs and Hyper-Navigation of RPG Systems.

Last Updated on Monday, 11 July 2011 00:00
Read more...
 
TechTip: XLATE and Character String Manipulation PDF Print E-mail
Tips & Techniques - RPG
Written by Issak Brender   
Friday, 01 July 2011 00:00

Manipulate and protect data quickly and easily.

issak_brenderWritten by Issak Brender

There are many ways in modern RPG/RPGLE to manipulate data: BIFs, data structures, whole programs. This TechTip demonstrates examples of character string manipulations with XLATE operation code.

Last Updated on Friday, 01 July 2011 00:00
Read more...
 
User Rating: / 6
PoorBest 
<< Start < Prev 1 2 3 4 5 6 7 8 9 10 Next > End >>

Page 1 of 20

WHITE PAPERS

The following White Papers can be found at the MC White Paper Center

 

 


   MC-STORE.COM