CPYGPHFMT (Copy Graph Format)
Note: To use this command, have the 5722-PT1 (Performance Tools for iSeries) licensed program installed.
CPYGPHFMT Command syntax diagram
Purpose
The Copy Graph Format (CPYGPHFMT) command copies an existing graph format into a graph format specified by the user.
Required Parameters
- FROMFMT
- Specifies the graph format from which the copy is to be created.
The possible library values are:
- QPFRDATA: The IBM-supplied performance data library, QPFRDATA, is where the graph format is located.
- *CURLIB: The current library for the job is used to locate the graph format. If no library is specified as the current library for the job, the QGPL library is used.
- library-name: Specify the name of the library where the graph format is located.
format-name: Specify the name of the graph format.
Optional Parameters
- TOFMT
- Specifies the graph format location where the copy is to be created.
The possible library values are:
- *FROMLIB: The graph format is located in the library specified on the FROMFMT parameter.
- *CURLIB: The current library for the job is used to locate the graph format. If no library is specified as the current library for the job, the QGPL library is used.
- library-name: Specify the name of the library where the graph format is to be located.
*FROMFMT: The graph format name specified on the FROMFMT parameter is used.
format-name: Specify the name of the copy of the graph format.
- REPLACE
- Specifies whether to replace the graph format in the TOFMT parameter, if the graph format already exists.
*NO: The existing graph format is not replaced with the new graph format.
*YES: The existing graph format is replaced with the new graph format.
Examples for CPYGPHFMT
Example 1: Sending a Copy to the Default Library
CPYGPHFMT FROMFMT(MYFMT) TOFMT(YOURFMT)This command makes a copy of MYFMT and sends it to YOURFMT in the QPFRDATA library.
Example 2: Sending a Copy to a Specified Library
CPYGPHFMT FROMFMT(MYLIB/FMT1) TOFMT(YOURLIB/FMT2)This command makes a copy of FMT1 in the MYLIB library and sends it to FMT2 in the YOURLIB library.
Error messages for CPYGPHFMT
*ESCAPE Messages
- PFR9043
- &1 does not exist in library &2.