James,

A fact sometimes overlooked is that SQL has "implicit casting", so you can
write something like:

*select concat(concat(arfbex, arfbln), arfbrs) from nativefile*

So you could then do something in the order of:

*With T1 as(*
* Select a.**
* , concat(concat(arfbex, arfbln), arfbrs) AS ConcatNum*
*from nativefile a*
*)*
*Select T1.*, B.* *
*FROM T1, STUBPF B*
*WHERE T1.ConcatNum = U01095*

Performance, of course, is another thing :-)

HTH,

Luis Rodriguez
IBM Certified Systems Expert — eServer i5 iSeries




Return to Archive home page | Return to MIDRANGE.COM home page