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

Posted on 2007-09-29
Last Modified: 2011-09-20
Is there a simple way to call an AS400 (RPG or CL) program from a java web application( runnning on websphere)?
Question by:royalcyber
    1 Comment
    LVL 14

    Accepted Solution

    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


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Suggested Solutions

    Title # Comments Views Activity
    Open windows file share from client access 18 781
    Iseries Object Security 5 47
    iSeries - Add Users to a Group 1 130
    iSeries, AS/400 GUI 9 74
    Create and license users in Office 365 in bulk based on a CSV file. A step-by-step guide with PowerShell script examples.
    These days socially coordinated efforts have turned into a critical requirement for enterprises.
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now