Previous Topic: Generic Move CommandsNext Topic: Restrictions on Moving Physical Files


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.

The following single instruction would perform all of these functions:

YMOVOBJSRC OBJ(CUS*) OBJTYPE(*PGM *FILE
TOLIBOBJ(FREDPGM)  TOLIBDTA(FREDDTA) OLDLIB(FREDOLD) MSGQ(MOVLOG)