+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12

Thread: DSPPGM doesn't show Source File??

  1. #1
    Guest.Visitor Guest

    Default DSPPGM doesn't show Source File??

    I just wrote a couple of utilities in RPGLE and discovered that the DSPPGM command, when run against these RPGLE programs, does not show the source code compiled from information. The Source code file, library, & member information is not displayed. Is there any way to have this information displayed?? Thanks, Martin

  2. #2

    Default DSPPGM doesn't show Source File??

    When I do a DSPPGM, "Display 3 of 7" gives the option "5=Display description". This option shows the source file. HTH, Joe

  3. #3

    Default DSPPGM doesn't show Source File??

    The source member from which the object was compiled can be found in the DSPOBJD command. Use the *SERVICE parameter. Dave

  4. #4

    Default DSPPGM doesn't show Source File??

    Actually, DSPOBJD does not show the source file for ILE programs. I do not know why! The only way I have ever been able to see the source file is to use the DSPPGM command. (At least this is true on my system!)

  5. #5

    Default DSPPGM doesn't show Source File??

    I have not had this problem. I first do a DSPOBJD on the object without parameters. On the next screen there are two options "5" and "8". I use the "8" option to get the service description of the object. This shows me the source member. Dave

  6. #6
    Guest.Visitor Guest

    Default DSPPGM doesn't show Source File??

    Dave, have you done this with ILE programs? In general, ILE programs don't have a single source file - they have one source file per module. That's why the information is only available from the list of modules in DSPPGM. Barbara Morris

  7. #7
    Guest.Visitor Guest

    Default DSPPGM doesn't show Source File??

    I also do not see the program source library/file/member when doing DSPOBJD on a RPG/LE program.

  8. #8
    M.Martinez Guest

    Default DSPPGM doesn't show Source File??

    Martin, I recieved the same surprise a while back. If you use the Display Module (DSPMOD) on the module, then you'll get the answer - provided that the *MODULE is still around. ILE creates a module from the source code, then it uses the module to create a program. (Source -> Module(s) -> Program) OPM by contrast, converts the source into a program. (Source -> Program) That's one of the reasons that the DSPPGM command doesn't work out exactly like someone with an OPM background(such as myself), would expect. If you just use the DSPMOD command instead, that should take care of it.

  9. #9
    M.Martinez Guest

    Default DSPPGM doesn't show Source File??

    Martin, Did you use the CRTBNDxxx ("xxx" meaning RPG, CBL or CL)command to create those ILE programs. The reason I ask is that I'm not sure where the *MODULE object goes when these commands are used. If you use the CRTxxxMOD command, and then you use the CRTPGM command, then you'll be able to use the DSPMOD command. To anyone who would know - How does one use the DSPMOD command, when the program was created using a CRTBNDxxx command? Is there a way? Thanks in advance.

  10. #10
    Guest.Visitor Guest

    Default DSPPGM doesn't show Source File??

    Mario, the temporary module is deleted as part of the CRTBNDxxx command, so you can't use DSPMOD. You can see some of the module information (like the source file) using the module information part of DSPPGM (page 3). Other information is available with the QBNLPGMI API. Barbara Morris

+ Reply to Thread
Page 1 of 2 1 2 LastLast

Similar Threads

  1. show image in VBScript
    By kgregory@benbridge.com in forum Visual Basic
    Replies: 1
    Last Post: 04-12-2005, 08:15 AM
  2. dsppgm for ile programs
    By B.Morris in forum General
    Replies: 4
    Last Post: 08-29-2003, 11:27 AM
  3. Show alarms in SQL results
    By Guest.Visitor in forum Programming
    Replies: 7
    Last Post: 10-29-2001, 10:34 PM
  4. Let's have a show of hands...
    By Guest.Visitor in forum Analysis
    Replies: 59
    Last Post: 06-08-2000, 08:00 AM
  5. DSPOBJD did not show source of the objec
    By Guest.Visitor in forum Programming
    Replies: 0
    Last Post: 01-01-1995, 02:00 AM

Posting Permissions

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