I want to return Name, DOB and Place of Birth from a Subprocedure. Is it possible to return more than one parameter at a time? Any method other than using the same parameter as input and output?
Software/Hardware used:
ASKED:
June 13, 2012 10:38 AM
UPDATED:
June 14, 2012 4:40 PM
For what you’ve described above and assuming you are going to use a service program can you not just define the procedure interface with a character return value long enough to contain all 3 pieces of information as fixed-length entities, and then split them back out again after the subprocedure call?
I will typically define procedures to return a boolean – successful/unsuccessful
With input (Constant) paraamerters and output parameters (not constant) and error parameters (*OMIT) so they can be omitted from the list.