DB2 Procedure to get minimum set of records from each table

820 pts.
Tags:
DB2 10.5
I have a scenario as I need to read a table (consists only one column with 1000 records) as a procedure1 & to pass that value to another procedure2. On that second procedure it should accept the value (table name) from procedure1 & I need to query some set of records from all the tables. I can do this as a program. Thing is that I need to do all these as db2 procedures itself. As, I am new to these procedures unable to figure it out. Sample snippet of code will be appreciated. Kindly help me. Thanks in advance

Software/Hardware used:
DB2 10.5

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:  

 
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

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