PDA

View Full Version : dsppgm for ile programs



B.Morris
08-22-2002, 10:31 AM
Use the QBNLPGMI API. I think there are some examples of using this API on the web.

ukpi1b
08-23-2002, 02:59 AM
Create two outfiles as shown below. After that manipulate them as you need via SQL or query. You my identify missing soources or objects, compare creation dates,last changed dates,etc. Just check date format in both outfiles.

Guest.Visitor
08-30-2002, 05:54 AM
The DspObjD command (to an outfile or display) does not show the source file/member information, if the target of the command is a *PGM object compiled from ILE source (in any language). It should show that info if the target is a *MODULE object. However, if you're like me, you use the CRTBNDRPG command to create RPGLE programs, which doesn't keep the *MODULE object after the compile is finished (and why should it: you don't need it to run or debug). So, as the message from Barbara says, the QBNLPGMI Api is the best way (maybe the only way)to do what you need. If you like, I have a program that does this, which I created for a file-where-used utility that also displays the source member on demand.

homebrew
08-29-2003, 11:27 AM
I wrote an elaborate package to analyze source code if anyone's interested. I shows instances of multiple source members with the same name across libraries, last update, objects compiled from those members, obj lib, compile date etc ...

sgidden1
08-29-2003, 11:27 AM
I need to compare my source dates with objects. Because the command dspobjd for LE programs does not give me the source file date/time stamp, and the dsppgm can't be put to a file, how can I compare them?