Previous Topic: Generic Delete ObjectNext Topic: Generic Command Change


Generic Duplicate Object

The Toolkit generic command Create Duplicate Object (YCRTDUPOBJ) enables you to duplicate list of objects into several libraries at a time, by means of a single instruction. The ability to duplicate into several libraries is especially useful when there is a requirement to keep several parallel libraries up to date: for instance, a library of live data plus several alternate versions of test data.

For instance, say that you wish to add a new file and its attendant logical views into three libraries: DTALIB, TSTLIB1 and TSTLIB2. You could build a list of the files, then the following command would duplicate the files in the list:

YCRTDUPOBJ OBJ(*OBJLST) FROMLIB(*OBJLST) OBJTYPE(*ALL)      TOLIB(DTALIB TSTLIB1 TSTLIB2)