The easiest answer to your questions is:
- Look up the manuals for your particular DBMS on AS/400
---
Normally the host of the DBMS supports differenent languages for writing Stored Procedures, and these days codename "Stinger" will support .NET, that means, you will be able to write Stored Procedures and Debug them in any .NET compatible language.
---
In our environment we use DB2 on z/OS and we write Stored Procedures in both COBOL, Java and ASM. With a small C compiler we may use JCL as well.
---
with Regards
Filip Poverud