|
Don, >Actually the error message is generated in the calling program, not the >called program, so the CLP being called never has a chance to check for the >error. I just tried it here on the CPP of one of my own RTVxxx commands, and it worked as I expected. >I believe if you attempt to execute the RTV programs directly instead of >through a command an error would be generated indicating insufficient >numbers of parameters were passed without ever executing a statement in the >RTV program. OK, I see what is happening now. The reason I could call the CPP directly without an error is that I had used type CLLE instead of CLP. The ILE CL compiler sets the number of program parameters to the range 0 to 255, just like it does for an RPG program. If I changed the source type to CLP and recompiled, the compiler sets the number of parameters to a fixed number, and CPD0172 would result. You can use DSPPGM to see the number of parameters a program expects. Just changing the source type from CLP to CLLE will get the result needed here. Doug
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.