

Programmer Utilities › Generic Processing › Generic Move Commands › Generic Move Example
Generic Move Example
Say that you have a program and accompanying display file both called CUSCHG, as well as a physical file, called CUSPF, in your live system: the program and display file are in a library FREDPGM, the file in a library FREDDTA.
- You wish to replace these with new versions from library FREDNEW.
- You wish also to transfer the source for the objects you are moving to a library FREDSRC, which contains the source for your live objects.
- You want to preserve the previous version of the program and source in an archive library FREDOLD, deleting any existing previous version in FREDOLD.
- You also wish the new versions of the objects to be given the same authorizations that the existing versions possess.
- In addition you wish to keep a record of what you have done, in the form of a message sent to a message queue, MOVLOG.
The following single instruction would perform all of these functions:
YMOVOBJSRC OBJ(CUS*) OBJTYPE(*PGM *FILE
TOLIBOBJ(FREDPGM) TOLIBDTA(FREDDTA) OLDLIB(FREDOLD) MSGQ(MOVLOG)
Copyright © 2014 CA.
All rights reserved.
 
|
|