Aller au contenu

CPYGPHPKG

Copier package de graphiques

Copy Graph Package

En bref

La commande Copier un lot de graphiques (CPYGPHPKG) copie un lot de graphiques existant dans un lot de graphiques indiqué par l'utilisateur. The Copy Graph Package (CPYGPHPKG) command copies an existing graph package into a graph package specified by the user.

CPYGPHPKG se lit CPY (Copier) + GPHPKG. Sur IBM i, le nom d'une commande associe presque toujours un verbe et un objet.

Syntaxe minimale

CPYGPHPKG FROMPKG(…)

Paramètres

  • FROMPKG Lot d'origine From package obligatoire
  • TOPKG Lot cible To package
  • REPLACE Remplacer Replace

Astuce : dans une session 5250, tapez CPYGPHPKG puis F4 pour l'invite de saisie, et F1 sur un paramètre pour son aide.

Aide IBM i de la commande

Texte du F1, IBM i 7.5 en français (bibliothèque QPFR)

Où s'exécute : Tous les environnements (*ALL)
Compatible multitâche : Non

La commande Copier un lot de graphiques (CPYGPHPKG) copie un lot de graphiques existant dans un lot de graphiques indiqué par l'utilisateur. The Copy Graph Package (CPYGPHPKG) command copies an existing graph package into a graph package specified by the user.

Paramètres

Mot-clé Description Valeurs possibles Remarques
FROMPKG Lot d'origineFrom package Nom d'objet qualifié Obligatoire, positionnel 1
Qualificatif 1: Lot d'origineQualificatif 1: From package Nom
Qualificatif 2: BibliothèqueQualificatif 2: Library Nom, QPFRDATA, *CURLIB
TOPKG Lot cibleTo package Nom d'objet qualifié Facultatif, positionnel 2
Qualificatif 1: Lot cibleQualificatif 1: To package Nom, *FROMPKG
Qualificatif 2: BibliothèqueQualificatif 2: Library Nom, *FROMLIB, *CURLIB
REPLACE RemplacerReplace *NO, *YES Facultatif

Lot d'origine (FROMPKG)From package (FROMPKG)

Indique le lot de graphiques à partir duquel la copie est créée. Specifies the graph package from which the copy is to be created.

Ce paramètre est obligatoire. This is a required parameter.

QPFRDATA
Le groupe de graphiques se trouve dans la bibliothèque de données de performance fournie par IBM, QPFRDATA. The IBM-supplied performance data library, QPFRDATA, is where the graph package is located.
*CURLIB
La bibliothèque en cours du travail est utilisée pour localiser le groupe de graphiques. Si aucune bibliothèque n'est indiquée comme bibliothèque en cours du travail, QGPL est utilisée. 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.
nom-bibliothèque
Indiquez le nom de la bibliothèque où se trouve le groupe de graphiques. Specify the name of the library where the graph package is located.
package-name
Indiquez le nom du groupe de graphiques. Specify the name of the graph package.

Lot cible (TOPKG)To package (TOPKG)

Indique l'emplacement du lot de graphiques dans lequel la copie est effectuée. Specifies the location of the graph package into which the copy is to be made.

Les valeurs de bibliothèque possibles sont les suivantes : The possible library values are:

*FROMLIB
Le lot de graphiques est copié dans la bibliothèque indiquée dans le paramètre FROMPKG. The graph package is copied into the library specified on the FROMPKG parameter.
*CURLIB
La bibliothèque en cours du travail est l'emplacement de la copie du lot de graphiques. Si aucune bibliothèque n'est indiquée comme bibliothèque en cours du travail, QGPL est utilisée. 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.
nom-bibliothèque
Indiquez le nom de la bibliothèque dans laquelle le lot de graphiques sera placé. Specify the name of the library where the graph package will be located.
*FROMPKG
Le nom de lot de graphiques indiqué dans le paramètre FROMPKG est utilisé. The graph package name specified on the FROMPKG parameter is used.
package-name
Indiquez le nom du groupe de graphiques. Specify the name of the graph package.

Remplacer (REPLACE)Replace (REPLACE)

Indique s'il faut remplacer le lot de graphiques de l'invite Lot cible (paramètre TOPKG) s'il existe déjà. Specifies whether to replace the graph package in the To package prompt (TOPKG parameter), if the graph package already exists.

*NO
Le lot de graphiques existant n'est pas remplacé par le nouveau lot de graphiques. The existing graph package is not replaced with the new graph package.
*YES
Le lot de graphiques existant est remplacé par le nouveau lot de graphiques. The existing graph package is replaced with the new graph package.

Exemples

Exemple 1 : Envoi d'une copie vers la bibliothèque par défaut Example 1: Sending a Copy to the Default Library

CPYGPHPKG   FROMPKG(MYPKG)  TOPKG(YOURPKG)

Cette commande fait une copie de MYPKG et l'envoie vers YOURPKG dans la bibliothèque QPFRDATA. This command makes a copy of MYPKG and sends it to YOURPKG in the QPFRDATA library.

Exemple 2 : Envoi d'une copie vers une bibliothèque indiquée Example 2: Sending a Copy to a Specified Library

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

Cette commande fait une copie de PKG1 dans la bibliothèque MYLIB et l'envoie vers PKG2 dans la bibliothèque YOURLIB. This command makes a copy of PKG1 in the MYLIB library and sends it to PKG2 in the YOURLIB library.

Messages d'erreur

Messages *ESCAPE *ESCAPE Messages

PFR9043
&1 n'existe pas dans la bibliothèque &2. &1 does not exist in library &2.

© Copyright IBM Corp. Texte d'aide reproduit à des fins de formation.