I'm going to take a closer look at Python, but I need to know how it runs.
This will be called as part of a larger process within AJS.
Also, there 4 links for download, which one should I be selecting?

In this case, it's so short because the behavior of os.rename is to automatically replace (assuming you have the necessary authority).

If you had wanted to only move objects that DON'T exist in lib B:

# begin script
import os
objectsB = os.listdir('/qsys.lib/libB.lib') for name in os.listdir('/qsys.lib/libA.lib'):
if name not in objectsB:
os.rename('/qsys.lib/libA.lib/' + name, '/qsys.lib/libB.lib/' + name) # end script

(The objectsB variable isn't strictly necessary, but getting the list of objects once up front is more efficient than recalculating the list every time within the loop, especially if there are lots of objects in lib B.)

All these can be done on the i with iSeriesPython (www.iseriespython.com), which is freely downloadable and open source.
And simple enough to install on the i that even I was able do it in just a few minutes.

This mailing list archive is Copyright 1997-2016 by midrange.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