MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » May 2014

RE: Need to move all objects from lib A to lib B in batch mode with a replace option if the object already exists



fixed

How comfortable are you with SQL? And creating UDFs? We've created a
function called QCMDEXC.

So, with a output file of DSPOBJD of both libraries,

select a.odobnm, a.odlbnm, a.odobtp, qcmdexc('CRTDUPOBJ .... concat ... )
from aliboutput a left outer join bliboutput b...
where ....check dates, etc here...
order by 1 // the order by ensures the command performs all the QCMDEXC
instead of stopping at the screen full




Rob Berendt





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

This mailing list archive is Copyright 1997-2014 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