Post by MarcoPC'è modo di sapere, per un programma CLLE o RPGLE, le
caratteristiche principali (tipo, lunghezza e ordine) dei parametri
che riceve?
Such a question might be asked differently; e.g. in the context of
what [specific] problem is trying to be solved. Depending on the
specific context, given the perspective of the inquirer of those
characteristics, then how some details might be determined might be able
to be explained; such as prior replies which establish a context for
their reply given, about gleaning such information.
For example, from a given program, I could suggest that the details
of the parameters are available from the source from which each was
compiled; or better, the listing that was produced when the program was
compiled. Knowing that might be irrelevant from the actual perspective
of the OP, but the information is quite valid more generally.
IIRC, by default, the CL includes Operation Descriptors (OpDesc) for
parameters that are passed. An ILE RPG might have to make an explicit
request, with IIRC the keyword OPDESC coded on the prototype. There is a
CEE API to obtain some information about the parameters via these Op
Desc, and another CEE API for determining which arguments were omitted.
[Retrieve Operational Descriptor Information (CEEDOD) API ]
(http://www.ibm.com/support/knowledgecenter/ssw_ibm_i_73/apis/CEEDOD.htm)
[Test for Omitted Argument (CEETSTA) API]
(http://www.ibm.com/support/knowledgecenter/ssw_ibm_i_73/apis/CEETSTA.htm)
Note: Data Pointers store attributes of the data they address;
knowing that might be a place to start, if they seem like something to
pursue.
--
Regards, Chuck