Here is a link to RPG on-line resources:
http://www.as400pro.com/LinksiSTraining.htm
I think one of the better tutorials is by ibm. Here is the order info:
For a hands-on learning experience, try out Experience RPG, an interactive tutorial created by the developers of RPG IV. There's an optional workbook too. You can order it from your IBM representative through the system library subscription service (SLSS) or order it directly. The order number for the tutorial and workbook is SK2T-2770. For the workbook alone, it's SC09-1938.
For info on RPG and CGI try this tutorial:
http://195.183.8.2/cgidev2/start
This link should bring up a list of RPG books:
http://www.mc-store.com/mc-store/rpgprogramming.html