Regarding debug, you can use the STRDBG command to for source debugging of either OPM (such as RPG III) or ILE (RPG IV) programs. All you have to do is to make sure your programs are compiled with either the *LSTDBG or *SRCDBG options for OPM, and *LIST, *SOURCE (or *ALL) in the debug view for ILE.
Example for OPM RPG / RPG III:
CRTRPGPGM PGM(MYLIB/MYPROGRAM) OPTION(*LSTDBG) [or OPTION(*SRCDBG) ]
For RPG IV:
CRTBNDRPG PGM(MYLIB/MYPROGRAM) DBGVIEW(*LIST) [or DBGVIEW(*SOURCE) ]
List is preferable, because it doesn’t require having the source member available when debugging the object, such as if you have the program object on a different machine than where it was originally compiled.
Then, when you start debug, if you want to debug an RPG III program, just specify that you want to debug an OPM program:
STRDBG PGM(MYLIB/MYPROGRAM) OPMSRC(*YES)
This will give you the source view debugging capability. If you want to debug an ILE program, you won’t need the OPMSRC option, although it will still work either way.
I still use SEU sometimes as it’s still a workhorse, but overall, the new editors like WDSC with RSE blow it away in functionality and useability.
In my view, this is why it’s important to stay current with technology and avoid getting stuck for too long in one’s comfort zone. Since IBM hasn’t officially sold an AS/400 since 2000, I’ve been referring to the system formerly known as AS/400 by its more current names — iSeries, System i, and now with the Power Systems hardware consolidation, it’s really just an operating system, IBM i. So how about just “The i”, for short.
I think the sucess of the i has also become one of its drawbacks now — it has supported old code and coding methods for compatibility, but that results in many of its biggest advocates and companies which use it not moving forward. Now there are many people who don’t know how great of a system it is, and think it’s a “legacy” system. That misperception has become one of my biggest gripes. I sure hope it doesn’t end up as a deprecated system, because it’s far from obsolete.
As far as where to start on upgrading your knowledge, there are so many ways to go, and I’m sure others here will have some good suggestions. There are many web sites from which I’ve gotten great tips and insight, as well as books. A book I read about 10 years ago which got me started was RPG IV Primer – I don’t remember the author, but you could probably find via a search. Bob Cozzi has some good books too. And there are many, many others, of course.
Some good websites are:
Again, there are many many more, and I think others here can give some good tips as well.
Here in south africa we use strdbg a lot. It is a learning curve. You can type in things like this. break 9999 (line no) when xxx(field) is = ‘XXXX’and this will stop on that line when the codition is met. to find the valve type eval xxxx (field) and to chanhe type eval xxx = ÝYY”