Copy Graph Package (CPYGPHPKG)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

The Copy Graph Package (CPYGPHPKG) command copies an existing graph package into a graph package specified by the user.

Top

Parameters

Keyword Description Choices Notes
FROMPKG From package Qualified object name Required, Positional 1
Qualifier 1: From package Name
Qualifier 2: Library Name, QPFRDATA, *CURLIB
TOPKG To package Qualified object name Optional, Positional 2
Qualifier 1: To package Name, *FROMPKG
Qualifier 2: Library Name, *FROMLIB, *CURLIB
REPLACE Replace *NO, *YES Optional
Top

From package (FROMPKG)

Specifies the graph package from which the copy is to be created.

This is a required parameter.

QPFRDATA
The IBM-supplied performance data library, QPFRDATA, is where the graph package is located.
*CURLIB
The current library for the job is used to locate the graph package. If no library is specified as the current library for the job, QGPL is used.
library-name
Specify the name of the library where the graph package is located.
package-name
Specify the name of the graph package.
Top

To package (TOPKG)

Specifies the location of the graph package into which the copy is to be made.

The possible library values are:

*FROMLIB
The graph package is copied into the library specified on the FROMPKG parameter.
*CURLIB
The current library for the job is where the copy of the graph package will be located. If no library is specified as the current library for the job, QGPL is used.
library-name
Specify the name of the library where the graph package will be located.
*FROMPKG
The graph package name specified on the FROMPKG parameter is used.
package-name
Specify the name of the graph package.
Top

Replace (REPLACE)

Specifies whether to replace the graph package in the To package prompt (TOPKG parameter), if the graph package already exists.

*NO
The existing graph package is not replaced with the new graph package.
*YES
The existing graph package is replaced with the new graph package.
Top

Examples

Example 1: Sending a Copy to the Default Library

CPYGPHPKG   FROMPKG(MYPKG)  TOPKG(YOURPKG)

This command makes a copy of MYPKG and sends it to YOURPKG in the QPFRDATA library.

Example 2: Sending a Copy to a Specified Library

CPYGPHPKG   FROMPKG(MYLIB/PKG1)  TOPKG(YOURLIB/PKG2)

This command makes a copy of PKG1 in the MYLIB library and sends it to PKG2 in the YOURLIB library.

Top

Error messages

*ESCAPE Messages

PFR9043
&1 does not exist in library &2.
Top