Return more than one parameter from a subprocedure

2505 pts.
Tags:
Subprocedure
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?

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • andyhumphreys
    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?
    465 pointsBadges:
    report
  • TomLiotta
    Return a data structure (i.e., a DS). By returning a value, you are creating a function which by definition will always return "a value". Not two values or three values. However, the value can be a structure; and you can use the single structure to carry a set of subfields. Tom
    125,585 pointsBadges:
    report
  • philpl1jb
    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.
    49,850 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following