CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2012
    Posts
    2

    Calling AS/400 (AS400) RPG Programs

    How to call AS400 RPG using ADO in VC++ 6.0? Please give sample code.
    For example
    Object AS400 TYPE Attribute
    BIL411 *PGM CL

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,395

    Re: Calling AS/400 (AS400) RPG Programs

    You just have to set the correct connection string for your database. See
    http://as400blog.blogspot.com/2009/0...n-strings.html
    http://www.connectionstrings.com/as-400
    Victor Nijegorodov

  3. #3
    Join Date
    Apr 2012
    Posts
    2

    Re: Calling AS/400 (AS400) RPG Programs

    "Provider=IBMDA400;Data Source=191.120.56.3;User Id=SSAFTP;Password=SSAFTP;Default Collection=TESTF;"
    How to write a VC++ ADO to call the RPG in AS400?

  4. #4
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,395

    Re: Calling AS/400 (AS400) RPG Programs

    Have a look at ADO samples in VC++ 6.0:
    INFO: Using ActiveX Data Objects (ADO) via #import in VC++
    Sample: ADOVC1 Simple ADO/VC++ Application
    ADO at a glance
    And maybe others...
    And, BTW, there is no difference in using ADO in VC++6 and VC2010
    Last edited by VictorN; May 8th, 2012 at 03:58 AM.
    Victor Nijegorodov

  5. #5

    Re: Calling AS/400 (AS400) RPG Programs

    The CALL operation passes control to the program specified in factor 2. Factor 2 must contain a character entry specifying the name of the program to be called.
    All you Need to Know about the AS400/iSeries Systems read here - As400/iSeries
    Last edited by VictorN; February 2nd, 2023 at 12:24 PM. Reason: web link was removed

  6. #6
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,395

    Re: Calling AS/400 (AS400) RPG Programs

    Very "useful" response after 11 (eleven!) years!
    Or did you post it just for the adds?
    Victor Nijegorodov

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured