Previous Topic: Operand DefinitionsNext Topic: Operand Definitions


COPY Command

The COPY command copies all or part of a program's working data, parameter data, procedure, or all or part of a member. If neither a program nor member name is specified, data is copied from one specified destination in the current program or member to another specified destination in the current program or member.

In the Panel Definition Facility (PDF), the COPY command invokes the panel copy prompter. The panel copy prompter copies dataview field definitions into the panel layout. For more information, see the Creating Panel Definitions Guide.

This command has the following format:

     [             [    {nnn }]         ]
     [PROGRAM name [VER {PROD}] [SYS id]]
     [             [    {LAST}]         ]
COPY [                                  ]  [num1 [num2  ]]
     [                                  ]  [TOP   [BOTTOM ]]
     [MEMBER name [USER {name}]         ]
     [            [     {id  }]         ]

        {num3 }
        {TOP   }
        {BOTTOM}