Midrange News for the IBM i Community


Posted by: TFisher
Multiple parameters sharing the same variable
has no ratings.
Published: 05 Nov 2012
Revised: 23 Jan 2013 - 1852 days ago
Last viewed on: 18 Feb 2018 (2855 views) 

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.

Multiple parameters sharing the same variable Published by: TFisher on 05 Nov 2012 view comments(2)

Return to midrangenews.com home page.
Sort Ascend | Descend

COMMENTS

(Sign in to Post a Comment)
Posted by: bobcozzi
Site Admin ****
Chicagoland
Comment on: Multiple parameters sharing the same variable
Posted: 5 years 3 months 14 days 23 hours 53 minutes ago

No there is not.

what you can do however is to use the VALUE keyword on your 3rd parameter.  This will force the compiler to create a temp variable and therefore appear as 2 distinct parameter values. 

Posted by: TFisher
Premium member *
Comment on: Multiple parameters sharing the same variable
Posted: 5 years 3 months 14 days 23 hours 37 minutes ago

VALUE wasn't an option since *VARSIZE was used.  I actually know how to fix it, just trying to document it and I didn't know if there was a name for sharing variables across multiple parameters. 

 

THANKS!