RPG Ports from AS/400 to Linux?
Spacemonkey
asks: "So, IBM has finally ported Linux to run on their veritable plethora of hardware. Sounds like a real solid commitment to OSS, right? Well, the devil's in the details, however. After spending several hours searching on the Internet, I could not find one single implementation of the RPG ? environment on Linux. So IBM really wants to run Linux on their machines, but what if you want to run your AS/400 applications within the Linux space instead of OS400?"
"So now come the other questions, fast and furious:
- Is it possible to run the RPG environment within Linux?
- Can it be done on x86 hardware?
- Are there any legal restrictions on doing the port?
- If it has been done, where's the beef?
RPG can be converted into COBOL using a simple Perl script; from there you can use GNU COBOL to compile it. I've done this with our businesses payroll program, now we run it on a cluster of Linux machines, we used to use an AS/400. Now we donated the AS/400 to a local school and couldn't be happier... personally I find Linux easier to use and more reliable than propetary OS400.
Look at Unibol(36/400) or Baby(36/400)...
... you get the idea.
These software packages are "complete" OS envoriments, running under windows or unix.
-or-
Look at Lansa...
Designed in the AS/400 world, look is CLish. But can deploy into client/server -- win/400, win/sql, web/400, web/sql.
Will IBM support RPG under Lunix? My guess is no. RPG and the supported CL would all have to be supported (see above) then why not as/400 cobol, c,
If you are wanting to leave the 400. Look at the above. If you are wanting to mix Linux into a as/400 shop: LPAR and use the best in both worlds.
There's at least one RPG compiler for Linux - see http://www.californiasoftware.com/calsw/rvb_unibol 400.htm
Eraserhead RPG compiles RPG/II and RPG/III code on Linux. I believe that it goes through an intermediatery language (C?) first. RPG/IV could in theory be ported, but given the high use of APIs these would need to be brought across as well. I have never actually used the compiler (all of my code is in RPG/IV) and I can't find the homepage but you can get it from tucows at http://linux.tucows.com/system/preview/7922.html Glad to see so many 400-savvy people hang out here!