Calling API program in RPG

2900 pts.
Tags:
API
RPG
Hi all,
We are about to celebrate silver jubilee of our RPG code, although I am with it since last one year. My question is, in one of our code file there is a call to a program with several parameters. In comments it is written "API call". Where I can find this API. I have tried a lot but couldn't find code file. Is it possible that there is only compiled version of this API. But I searched all objects also with no luck. Normally I find all called RPG or RPGLE programs within system but this API I couldn't find. Any idea?
0

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question: 9  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • pdraebel
    If you do a call be it API or Program the Object would have to exist. better said you would have to be authorised to see it. If not ...
    7,545 pointsBadges:
    report
  • philpl1jb

    Start here with the API finder .. this is the v7r1 version:

    http://www-01.ibm.com/support/knowledgecenter/ssw_ibm_i_71/apifinder/finder.htm

    API's are provided by IBM .. you will not have source for these objects.

    54,090 pointsBadges:
    report
  • hunshabbir7
    We have V6R1. This is not an API provided by IBM. This one updates some of our application files (physical). Actually this API is returning error in return parameter that's why I wanted to check it out. Anyhow I also think there could be some authority related issue. I should inquire about it.
    2,900 pointsBadges:
    report
  • philpl1jb

    Is this RPGLE ??

    You can have calls to programs and/or calls to modules within programs.  These programs and/or modules can be in RPG, Cobol, java C.  You can also invoke commands.  In your program a 'D' spec can identify a local name for an object.  Does any of this help?  Without an example it's hard to go further.


    54,090 pointsBadges:
    report
  • philpl1jb

    Display the program object that you're investigating.

    You might find the thing you're looking for is bound to the object.

    54,090 pointsBadges:
    report
  • hunshabbir7
    Thnx philpl1jb when I applied command DSPPGMREF it displayed all programs and files associated with code file. There in Object Reference section my desired program name is written with its parameters and but in *LIBL. Now how can I search it in library list. Whenever I apply command WRKOBJ it requires specific library name. How an object can be searched in a library list. I have not much knowledge of AS400. 
    2,900 pointsBadges:
    report
  • pdraebel
    In iSeries the library list is like the Path in other OSes. If you do not know the library list the program is running in you can search *ALL libraries in the system.
    7,545 pointsBadges:
    report
  • philpl1jb

    I use the DSPOBJD (display object description)

    You know the object name and the object type, Sounds like it is  *PGM or perhaps *SRVPGM .. the type was probably displayed in the DSPPGMREF

    For library you can use *LIBL .. although a more complete search can be made using *ALLUSR


    54,090 pointsBadges:
    report
  • fasthorses89

    When searching for an object with wrkobj  and I do not know which library it is contained in - I use as a parm - *ALLUSR. This will search only user libraries and not those beginning with Q.

    75 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: