Using IBM i? Need to create Excel, CSV, HTML, JSON, PDF, SPOOL reports? Learn more about the fastest and least expensive tool for the job: SQL iQuery.
Good morning. I've gotten out of the habit of using *ENTRY plists and use prototype definitions instead. I have an issue though where I'm trying to pass a parm back to the calling CLP and even though the parm is populated when I exit from the program, the CLP does not see the value, it's blank.
In this program, I am trying to pass the member name back to the CLP. Here's what I have defined in the RPGLE program:
d rptSelect pr extproc('NCI596')
d pmbr 10a
As I mentioned, the pmbr field does have a value when I set on *inlr and exit the program. Do I have to use *ENTRY in order to get a value passed back to the calling CLP? Thanks in advance for any help!
Chris
Never mind! I'm an idiot! I forgot to include the procedure interface for the *ENTRY parameters! Duh!!
Do you have a procedure interface defined (a definition type of PI)? That's the replacement for the *ENTRY PLIST. Also, is this a program or a procedure? If a program, then use the EXTPGM keyword on your prototype. If a procedure, then the CL program has to use the CALLPRC command, not CALL.
Edit: I see you figured it out.