• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1184
  • Last Modified:

Is there a simple way to call an AS400 (RPG or CL) program from a java web application( runnning on websphere)?

Is there a simple way to call an AS400 (RPG or CL) program from a java web application( runnning on websphere)?
0
royalcyber
Asked:
royalcyber
1 Solution
 
daveslaterCommented:
If you can connect via adodb then you can weasiyl call a program. I have not done it in java but it works well in VB

This calls a prigram that updates the parms

Dim MyConnection As New ADODB.Connection
Dim MyProgram As New ADODB.Command
Set MyProgram.ActiveConnection = MyConnection
  MyProgram.CommandText = "{{call slaterd/pgm2(?,?)}}"
  MyProgram.Prepared = True
  MyProgram.Parameters.Append MyProgram.CreateParameter("Parm1", adChar, adParamInputOutput, 50)

MyProgram.Parameters.Append MyProgram.CreateParameter("Parm2", adDecimal, adParamInputOutput, 0)
  MyProgram.Parameters(1).Precision = 8
  MyProgram.Parameters(1).NumericScale = 0


MyProgram.Execute Rcds, Parms, -1


Dave
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now