Page 1 of 1

PUI *PGM Object vs. DDS *PGM Object

Posted: Mon Nov 12, 2012 5:19 pm
by jimr
Anyone know if there is a way to look at a *PGM object (attribute RPGLE) and determine if was compiled referencing an Open Access Handler (obviously, in this case, HANDLER('PROFOUNDUI(HANDLER)') )? We have not been able to using DSPPGM, DSPPGMREF, DSPOBJ...

Thanks,

Jim

Re: PUI *PGM Object vs. DDS *PGM Object

Posted: Mon Nov 12, 2012 7:58 pm
by Scott Klement
I'm not aware of anything like that.

What are you looking to use this info for? Maybe there's another way...

Re: PUI *PGM Object vs. DDS *PGM Object

Posted: Tue Nov 13, 2012 11:35 am
by jimr
As an ISV we will be delivering both HANDLER based and 5250 based RPGLE programs to customers at multiple versions. We will, of course, keep them separated in different libraries, use change management and all that good stuff but in the unlikely event that we need to examine a set of *PGM RPGLE objects it would be good to know.

I did figure that I can do a DSPPGMREF on an RPGLE program and see the library that the related display file exists in - just thought there might be a better/easier way.

Re: PUI *PGM Object vs. DDS *PGM Object

Posted: Tue Nov 13, 2012 2:55 pm
by Scott Klement
If you don't mind flagging this manually, you might try adding it into the COPYRIGHT for the program. For example, in your H-specs, you could do:

Code: Select all

H COPYRIGHT('(c) 2012 TMW, All Rights Reserved - HANDLER')
Then if you do a DSPPGM, you could see that you had put HANDLER in the copyright.

Would that help?

Re: PUI *PGM Object vs. DDS *PGM Object

Posted: Tue Nov 13, 2012 3:31 pm
by jimr
A good idea but somewhat labor intensive since only about a third of the programs affected have H specs in a copybook.

Thanks for your help.