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.* *
*WHERE T1.ConcatNum = U01095*

Performance, of course, is another thing :-)


Luis Rodriguez
IBM Certified Systems Expert — eServer i5 iSeries

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

This mailing list archive is Copyright 1997-2015 by MIDRANGE dot COM and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact