|
Hello Dan, Gene Gaunt wrote an utility to retrieve the entry parameters of a programme, IIRC. I downloaded it from www.iseriesnetwork.com (cannot remember year or month, or if it is still possible to do as not being a "Professional Member"). I have not used it yet (or looked at it), but it used an unfamiliar API (to me). If Gene is on the list, perhaps he can verify this and elaborate on it. If you are interested I can search for the downloaded code and send it to you. Regards. Carel Teijgeler ======= At 2002-08-05, 15:27:00 you wrote: ======= >We are trying to determine the parameters for OPM RPG program objects that >we do not have source for. We have forced a dump of the program by >temporarily renaming a file that the program expects to be there, then >calling the program, causing CPF4101, which allows a 'D' response. > >The dump shows: > >RPG/400 FORMATTED DUMP >NAME OFFSET ATTRIBUTES VALUE >WP0001 01031B CHAR(3) '111' >WP0001.P 011BE0 POINTER(SPP) > SPACE OFFSET 66331 '0001031B'X > OBJECT QPADEV0001DBALE 550049 >WP0002 01031E CHAR(3) '222' >WP0002.P 011BF0 POINTER(SPP) > SPACE OFFSET 66334 '0001031E'X > OBJECT QPADEV0001DBALE 550049 >WP0003 NOT ADDRESSABLE >WP0003.P NOT ADDRESSABLE > >Some investigation with other programs that we do have source for seem to >indicate that the '.P' appended to a field name seems to indicate that it is >a program's *ENTRY parameter. WP0003, as shown here, seems to be a >parameter that had no value passed. (So, I called the program again with a >3rd parameter value specified, and dump for WP0003 showed similar >information to the first two fields.) Also, the SPACE OFFSET would seem to >indicate the position of the parameters. > >Have I pretty much nailed this? Are there other considerations? Again, >this concerns only OPM RPG, although I'm sure RPG-IV dumps have something >similar. = = = = = = = = = = = = = = = = = = = =
As an Amazon Associate we earn from qualifying purchases.
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.