× 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.



 >> I'm looking for a way to dynamically determine a HLL (RPG, CL, etc)
interface in terms of parameter counts and data types.   

Not possible Paul (well as close to impossible as makes no difference
anyway).

_If_ the program was compiled to produce descriptors (RPG always produces
minimal descriptors, COBOL doesn't unless you request it) you would be able
to determine the number of parms passed.  However, operational descriptors
are a half-assed implementation which Rochester has never completed.
Consequently there are very few parameter types that can actually be
determined.  So other than determining parameter count it is fundamentally
useless.

The architecture does not provide for any external description of the parms
passed/expected - sadly.  Makes it real tough to write truly generic
routines.

The closest you can get is to have the compilers generate the PCML for you.
Unless you want to develop a tool that dumps the instruction stream and
reverse engineers the code to determine the (probable) parameter type and
size.  I doubt that's on your list of things to do before supper <grin>


Jon Paris
Partner400

www.Partner400.com
www.RPGWorld.com 


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.