Calling AS/400 (AS400) RPG Programs
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Calling AS/400 (AS400) RPG Programs

  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
    Wallisellen (ZH), Switzerland
    Posts
    17,359

    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
    Wallisellen (ZH), Switzerland
    Posts
    17,359

    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

Posting Permissions

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


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center