ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Dspobjd

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Dspobjd

    How do i get the Object description of an object in a cobol program.
    I need to retrive the object type and send it to display file.
    There are a number of objects for which i have to do this.I am using a subfile.

    OBJECT NAME OBJECT LIBRARY OBJECT TYPE
    ANAME BLIBRARY _________
    ......... ................ ....................
    .....more
    Once i enter the object name and the object library i should retrieve the object type for each of the objects.If i use QCMDEXC then how would i retrieve the data to the Program fields
    Thanks
    Sudarshan

  • #2
    Re: Dspobjd

    try using the QUSROBJD API...it's a fairly simple API to use and is much better for HLL programming than DSPOBJD...
    I'm not anti-social, I just don't like people -Tommy Holden

    Comment


    • #3
      Re: Dspobjd

      Tom is right. Here is a link to the QUSROBJD API description.
      Here is another link that shows an example in COBOL.
      Last edited by Mercury; January 3, 2008, 04:38 AM. Reason: New link
      Philippe

      Comment


      • #4
        Re: Dspobjd

        Thanks for the replies.

        I was able to run the piece of code involving the API......but i was not able to retrieve the information . What are the variables that i should get after executing this API.
        Thanks
        Sudarshan

        Comment


        • #5
          Re: Dspobjd

          Actually you cant retrieve directly the object type using this API.
          Use the Create User Space (QUSCRTUS) API first and then the List Objects (QUSLOBJ) API. This API places a list of specified objects in the specified user space.
          You can then use the QUSROBJD API if you need more specific information on the object.
          Last edited by Mercury; January 4, 2008, 08:00 AM.
          Philippe

          Comment

          Working...
          X