Call as400 program from VB.NET?

  • Thread starter Thread starter Scott Johnson
  • Start date Start date
S

Scott Johnson

Hi

Does anyone know how to execute a program on an AS400 from Visual Basic? I
have no problem inserting data into the tables (files) on the as400, but I
need to execute a program on there to process the data. (I can't use
triggers either)

The command I need to execute on the as400 is
CALL PGM(RNRB18) PARM(01 01)

Any help is greatly appreciated! Thanks!
--Scott
 
Scott,
I don't have a clean example handy, however you can treat the program, as a
stored procedure and "simply" call it. (with the same syntax as calling the
stored procedure).

You need to be on Client Access V5R2 to be fully supported from .NET.

http://www-1.ibm.com/servers/eserver/iseries/access/oledb/index.html

http://www-912.ibm.com/n_dir/nas4ap...6be4003c8957?OpenDocument&Highlight=2,ii13341

The above links are from June 3rd, not sure if there are more current
versions with better support...

Hope this helps
Jay
 
Back
Top