No Source Showing

1,780 pts.
Tags:
AS/400
RPG
RPGLE
V5R4
V5R4M0
When I compile my RPGLE source I do it with the *source for dubugging. I just noticed this was happening. Now when I try to do a display object descrition i do not get where the source was compiled from. ANy Ideas why? I need this ASAP. Thanks Source file . . . . . . . . . . . . : Library . . . . . . . . . . . . . : Member . . . . . . . . . . . . . . . : Attribute . . . . . . . . . . . . . : RPGLE User-defined attribute . . . . . . . : Freed . . . . . . . . . . . . . . . : NO Size . . . . . . . . . . . . . . . . : 1789952 Creation date/time . . . . . . . . . : 03/27/09 14:11:59 Source file date/time . . . . . . . : System level . . . . . . . . . . . . : V5R4M0 Compiler . . . . . . . . . . . . . . : CRTPGM V5R4M0
ASKED: March 27, 2009  6:28 PM
UPDATED: April 3, 2009  1:29 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

Hi Ron

I don’t think the two issues are related.
It’s the LE thingy… If you are compiling an RPGLE source it compiles to a module.
The program object wasn’t compiled the module was.

To see the source memeber you need to do a DSPPGM enter to module list and display the
module.

Phil

////////////////////////
Ron
Are those objects ILE type *PGM.
Phil
///////////////////////
Ohh — on my development box – “production pgm” no source id
on my production box – source id .. turnover transfer
Going to take a better mind then mine ..
Phil

————————————–

Use DSPPGM to gather a list of the modules comprising the program

use DSPOBJD for each module in turn to find the source used.

the relevant API’s allow you to automate all this if you need to .

You should also consider the question of ‘shared source’ if you are using /COPY and /INCLUDE, especially so if they are nested.

Yorkshireman

Discuss This Question: 15  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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • RonKoontz
    i can see where it works on some other objects we have. They are from our vendor comoiling them. Some of them are currect within last week. So there has to be away for it to display.
    1,780 pointsBadges:
    report
  • RonKoontz
    Here is a screen shot minus the source and library names Object . . . . . . . . . . . . . . . : DPCHGALP Library . . . . . . . . . . . . . : library Library ASP device . . . . . . . . . : *SYSBAS Library ASP group . . . . . . . . . : *SYSBAS Type . . . . . . . . . . . . . . . . : *PGM Source file . . . . . . . . . . . . : correct source Library . . . . . . . . . . . . . : correct library Member . . . . . . . . . . . . . . . : DPCHGALP Attribute . . . . . . . . . . . . . : RPGLE User-defined attribute . . . . . . . : Freed . . . . . . . . . . . . . . . : NO Size . . . . . . . . . . . . . . . . : 360448
    1,780 pointsBadges:
    report
  • Gilly400
    Hi Ron, How do you compile your RPGLE - do you use CRTBNDRPG or CRTRPGMOD and CRTPGM ? I think if you use CRTBNDRPG the source will show up, but if you use CRTRPGMOD and CRTPGM you have to look at the modules to find the source. Regards, Martin Gilbert.
    23,730 pointsBadges:
    report
  • RonKoontz
    I used crtbndrpg. The crtrpg one works for RPG 3 source. I need it for the RPGLE.. There ahs to be a setting somewhere. Is this happening for anyone else? Thanks Ron
    1,780 pointsBadges:
    report
  • Gilly400
    Hi Ron, I've just tried the same thing with a couple of my programs and I also don't see any source mentioned. But I noticed that in the help text it says :- Help Source File - Help The name of the source file that was used to create the object; blank if no source file was used. For ILE *PGM and *SRVPGM objects, the source file and member are blank. The source file information is stored with the *MODULE object. So it looks like you have to use DSPPGM to get the source info for an ILE pgm. Regards, Martin Gilbert.
    23,730 pointsBadges:
    report
  • RonKoontz
    I saw that also.......but I see some source coming from our vendor that was compiled by them on there system showing source. So there must be away. And I can't get any answers from them. I got an email stating they feal threatened by my question. Not sure how that is threatning. lol. I might be beating a dead horse here but there just seems to be away to do it. It would be great to find the answers. Thanks
    1,780 pointsBadges:
    report
  • Gilly400
    Hi Ron, I've now tried several different ways of creating RPGLE's to see whether I could get the source reference in the object. I've tried with CRTBNDRPG, CRTRPGMOD & CRTPGM - but none of them seem to give the source reference in the object description. Maybe your supplier is using some sort of program generator which somehow updates the object with the source details. Do the program objects from your supplier show the same system level and compiler as your own objects? Regards, Martin Gilbert.
    23,730 pointsBadges:
    report
  • CLKelly
    Ron, I think it has to do with using a product such as Turnover (SoftLanding) to promote the programs from development to production. Like Phil I also can see the library/source for the rpgle programs, but only at 2 of the Turnover stages. (We use a 3 stage testing with a 4th promotion to the production box.) I therefore expect that it's based on settings within the Turnover parameters.
    120 pointsBadges:
    report
  • Gilly400
    Hi, This gets even more confusing - we use turnover as well (across several different systems) and the RPGLE objects here don't show source. Maybe our Turnover is setup differently. Regards, Martin Gilbert.
    23,730 pointsBadges:
    report
  • Yorkshireman
    Has anyone checked which OS level these findings are at. ? As others have said, an ILE program is created from a number of other items. Which would you like a reference to ? i.e - the compiled and bound object comes from. .. (say) 14 different /COPY source members references 10 procedures in different service programs another 8 objects culled from the binding directory and so on. stating that it came from the 'temporary' source assembled in Qtemp by the compiler isn't much help either. Your original question said that the source it used is now carried within the compiled object - so the source you need for debugging has been preserved. Why do you want the information in the first place? R
    5,520 pointsBadges:
    report
  • RVP400
    Hi Ron, try this: CRTBNDRPG (...) DBGVIEW(*ALL) or, if you have *MODULE and *PGM/*SRVPGM: CRTRPGMOD (...) OPTION(*NODEBUGIO) DBGVIEW(*ALL)
    270 pointsBadges:
    report
  • Gilly400
    Hi RVP400, That still doesn't put the source reference in the object description (at least not when I try it). @Yorkshireman - my guess would be that you could use this to check whether you have objects which you don't have any source for. That's going to be difficult if your objects don't tell you where they originate from. Regards, Martin Gilbert.
    23,730 pointsBadges:
    report
  • RonKoontz
    The main reason is to show where the object was compiled from so I don't have to search for it. We have multiple versions. One from the vendor and a few that we have created/modified. We do not have a bought package to do this so I created a search program to search for the objects in ?. Then it shows a list of all the objects. There I can use option 8 press f4 change from *full to *Service and it will show me where that object got compiled from. Also it can tell me then where this object's source is, just in case the programmer compiled it from the wrong source. I could use the module but this makes it so much faster and easier. So that is why I want to see it.
    1,780 pointsBadges:
    report
  • graybeard52
    It all comes back to what Phil said. RPGLE programs are NOT compiled from a source file, even if you use CRTBNDRPG. In all cases, RPGLE are compiled from modules, and the modules are comiled from a source file. If you use CRTBNDRPG, all it does is create a module, crate a program with the one module, delete the module. You have to look at the source for the module(s) - not the source for the program object. There could be several modules and several source files in one program. For OPM programs written in RPG-III this is not the case.
    3,115 pointsBadges:
    report
  • RonKoontz
    graybeard that makes sense I agree. You would think IBM would have put logic in the compile program to look for that. If it has multiple porgrams then don;t put the source. Or just put module in the source type. If it was a single program then put the source in there. I will try to request it sometime. If the software turnover can do it IBM should be able to do it. I wonder if there is away to add the source to it after that fact..like turnover is doing.....Hmmm....
    1,780 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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

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

Following