× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On 3/31/2011 4:39 PM, David Gibbs wrote:
David Gibbs wrote:
the RPG programs i need to call are pre compiled ( no source code )
is there a way to generate the required PCML for *PGM ?

The compiler has the ability to generate the PCML. I don't think
there's a way to interrogate a *PGM object to find the parameter
structure.

Hmmm ... although I've never tried this, you might want to look into the QBNRPII api.

http://urlq.us/j or http://publib.boulder.ibm.com/infocenter/iseries/v5r3/topic/apis/qbnrpii.htm

Looks like this might generate what you are looking for.


That would work to retrieve the PCML _if_ the compiler had generated PCML into the module at compile time. For RPG it would have been compiled with PGMINFO(*PCML:*MODULE) on the command or the H spec.

Here's the source for a command and its command-processing-program that calls QBNRPII to display the PCML embedded in the program or srvpgm, if any. The program could easily be modified to copy the PCML to a stream file.

http://code.midrange.com/ce9af90c77.html

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.