RPG Advanced

SDA and RDA is now “RDS” or “RDPi”?, A.K.A. Eclipse

By greg | Posted in RPG Advanced
SDA and RDA is now “RDS” or “RDPi”?, A.K.A. Eclipse

April 2010 IBM Rational Developer for i (renamed in 2008 from WDSc), has been withdrawn from market and is replaced by the Rational Developer for Power Systems Software – RPG and COBOL Development Tools for IBM i. The latest release of Rational Developer for Power includes all of the features of Rational Developer for i (RDi...
Read more »

IBM Bringing MySQL to the iSeries, to DB2

By Ken | Posted in RPG Advanced
IBM Bringing MySQL to the iSeries, to DB2

What a Lifelong DB2 Fanatic Sees in MySQL Published: February 3, 2010 by Susan Gantner In my mind, you can't beat our database. It's not only integrated into the operating system, it's also incredibly flexible. You can use SQL to create and access data just like databases on other systems but you can also use the...
Read more »

Passing Variable-Length Parameters to Subprocedures

By Ken | Posted in RPG Advanced

In RPG, there is a subtle but important difference between the VARYING keyword that is used to assign a variable-length attribute to a character field and the OPTIONS(*VARSIZE) keyword that is used to permit a variable of any length to be passed as a parameter to a subprocedure or program. Often these two different...
Read more »

Activation Groups

By Ken | Posted in RPG Advanced

Activation Groups Creating RPG programs out of modules, is a two-step process:  This includes  CRTRPGMOD (Create RPG Module) and then CRTPGM (Create Program).   For single-module programs, these steps can be ...
Read more »

Binding – Linking; Directories

By Ken | Posted in RPG Advanced

Binding ( or Linking ) "service programs" (*SRVPGM). The CRTPGM command is used to combine one or more *MODULEs into a *PGM, while CRTSRVPGM is used to combine one or more *MODULEs into a *SRVPGM. Both of these commands, are part of the "binder" or linker of OS/400. ...
Read more »

SubProcedures

By Ken | Posted in RPG Advanced

SubProcedures can return a value like a function, and they support recursion. A program with a subprocedure will not run in the default activation group, so include an H-spec to force it to run in a named activation group. ex: QILE H dftactgrp(*no) actgrp('QILE') F*-------- := -...
Read more »

RPG IV Free-format MOVEA

By Ken | Posted in RPG Advanced

The MOVEA (move with array) operation code may not be supported in Free Format, but that doesn't stop Bob Cozzi, or us, from making it work anyway - in his Jan 12th, "Tuesday Tip" Cozzi takes a page from his upcoming book on free-format programming and illustrates two alternatives to MOVEA in free-format RPG...
Read more »

RPG-ILE ref. code

By Ken | Posted in RPG Advanced

At one time, I took an rpg program that did something that is not done very often and saved it as a sample for my reference and, sometimes when i would write some routine that was rare enough to be forgotten, i would save that little piece of code in it so that...
Read more »

one more nail

By greg | Posted in RPG Advanced

All too often programmers get lazy and don't think of the consequences. They insert some kind of "if X then exit", failing to see that they have just put one more nail in the coffin of a dying program which, if it is only one of many, could lead to the replacement of all...
Read more »