Well - I still have a logic error on my totals - and it's running excruciatingly slow... but, I think I'm over the hump for now.
Explaining it here and having Drew ask a question helped a lot.
Here's the current version I'm working with - it's not working on the inventory totals - but is working from a no errors getting thrown by DB2 or SSRS.
Thank you!
SQL
WITHRPL(BPROD,BCHLD,BQREQ,LOPB,LIALOC)AS(SELECTROOT.BPROD,ROOT.BCHLD,ROOT.BQREQ,ILI.LOPB,ILI.LIALOCFROMBPCSFILE64.MBMROOT,BPCSFILE64.ILIILIWHEREROOT.BPROD=?ANDROOT.BCHLD=ILI.LPRODUNIONALLSELECTPARENT.BPROD,CHILD.BCHLD,PARENT.BQREQ*CHILD.BQREQ,ILI.LOPB,ILI.LIALOCFROMRPLPARENT,BPCSFILE64.MBMCHILD,BPCSFILE64.ILIILIWHEREPARENT.BCHLD=CHILD.BPRODANDCHILD.BCHLD=ILI.LPROD)SELECTBPROD,BCHLD,(SUM(BQREQ)*?)AS"Total QTY Used",SUM(...