RPG


Reusing a Single File Description on Multiple Files
Programming - RPG
Written by Thomas Snyder   
Wednesday, 17 June 2009 00:00

Dynamically specify files in RPG without the use of embedded SQL.

tom_snyderWritten by Tom Snyder

Do you have physical files with the same file format that are separated into multiple physical files--whether it be for legal reasons, query speed, or storage archiving--which requires you to keep modifying your programs when the new files are created? This article will show you how to continue creating new physical files, without the need for additional program compiling and maintenance.

Last Updated on Wednesday, 17 June 2009 00:00
Read more...
 
Can the Right Tool Really Help Reduce System Maintenance Costs?
Programming - RPG
Written by Chris Smith   
Friday, 12 June 2009 00:00

Modernization is one way to enhance the value of an application, but reducing back-end maintenance expense is a close second.

chris_smithWritten by Chris Smith

The trend toward modernization of RPG legacy systems is in full swing largely because companies realize it makes more sense economically to upgrade the front-ends of these applications than it does to rewrite or replace them. What you don't hear much about, however, is the job of maintaining the back-end of these programs that may have been written 20 years ago.

Last Updated on Thursday, 11 June 2009 11:01
Read more...
 
Practical RPG: Using EVAL-CORR in Business Logic Servers
Programming - RPG
Written by Joe Pluta   
Wednesday, 03 June 2009 00:00

RPG steals a trick from its older brother COBOL to make moving data just a little bit easier.

joe_plutaWritten by Joe Pluta

Practical programming is often about the little things. For example, one of the issues in programming multi-tiered applications is moving data between tiers. In message-based programming, you can and should reduce the number of traveling fields by using a data structure that contains only the fields you need. The problem is that you have to populate those fields with individual MOVE instructions and, with large tables, identifying every field can be tedious and error-prone (especially when the fields have short names). EVAL-CORR gets around that problem.

Last Updated on Tuesday, 02 June 2009 13:09
Read more...
 
Practical RPG: Handling Flat Files with Multiple Record Formats
Programming - RPG
Written by Joe Pluta   
Monday, 04 May 2009 18:00

Sometimes an old technique with a new tweak is the best answer. This article shows you how to externally describe multi-format flat files from partners or legacy systems.

joe_pluta.jpgBy Joe Pluta

It's often the little things that can make a big difference in the world of RPG, and often an older technique can come to the rescue when dealing with the thorny issues of the real world. A perfect example is dealing with flat files having multiple formats. While externally described files can't handle them, a mix of old and new techniques can give you the next best thing.

Last Updated on Thursday, 11 June 2009 16:00
Read more...
 
Use Advanced C Function to Find Distance Between Cities
Programming - RPG
Written by Ron Koontz   
Monday, 04 May 2009 18:00

Bust out your old trig textbooks to write some great code.

ron_koontz.jpgBy Ron Koontz

As programmers, we're often challenged with unusual requests, and we have to find creative ways to solve the problem.

 

Here is one such challenge. Based on the client's legacy code, we need to calculate mileage between two cities. The legacy code has a file, but it's not always populated correctly.

Last Updated on Thursday, 11 June 2009 11:02
Read more...
   
Practical Array Processing: Dynamic Arrays
Programming - RPG
Written by Joe Pluta   
Monday, 30 March 2009 18:00

Another trick with arrays is sizing them. This article shows you how to size your arrays dynamically.

joe_pluta.jpgBy Joe Pluta

In an earlier article, I showed you how to initialize arrays and how to sort them based on a subfield. I did this with fairly small arrays, where you could easily define the values for the array in your D-specs. The next trick is trying load arrays from disk. You don't know how many you will load, and you really don't want to allocate the memory for the entire array.

Last Updated on Thursday, 11 June 2009 16:09
Register to read more...
   
<< Start < Prev 1 2 3 4 5 6 7 8 9 10 Next > End >>

Page 1 of 56

WHITE PAPERS

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

 

 

Special Section: Business Continuity Today

 

___________________________________

 

 

TRIAL SOFTWARE

The following trial software can be found at the MC Press Software Center.

 


   MC-STORE.COM