Create Graph Package (CRTGPHPKG)

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

The Create Graph Package (CRTGPHPKG) command creates a graph package containing one or more graph formats.

Top

Parameters

Keyword Description Choices Notes
GPHPKG Graph package Qualified object name Required, Positional 1
Qualifier 1: Graph package Name
Qualifier 2: Library Name, QPFRDATA, *CURLIB
TEXT Text 'description' Character value, *BLANK Optional
GPHFMT Graph format Single values: *SELECT
Other values (up to 25 repetitions): Name
Optional
Top

Graph package (GPHPKG)

Specifies the graph package to create or change.

QPFRDATA
The IBM-supplied performance data library, QPFRDATA, is where the graph package is located.
*LIBL
The library list is used to locate the graph package.
*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.
graph-package
Specify the name of the graph package.

This is a required parameter.

Top

Text 'description' (TEXT)

Specifies the user-defined text that briefly describes the graph format or graph package.

*BLANK
The text description for the graph format or graph package is left blank.
description
Specify no more than 50 characters of text, enclosed in apostrophes.
Top

Format (GPHFMT)

Specifies the graph formats to include in the graph package.

*SELECT
Shows a list of graph formats to select to be included in the graph package. This value is valid only in an interactive environment.
format-name
Specify the graph format to be included in the graph package. Up to 25 format names can be specified.
Top

Examples

Example 1: Creating a Package that Contains Three Formats

CRTGPHPKG   GPHPKG(EXAMPLE)  TEXT('THIS IS AN EXAMPLE')
            GPHFMT(GPH1 GPH9 GPH12)

This command creates a graph package called EXAMPLE, which contains three formats, GPH1, GPH9, and GPH12. This package is saved in the default library, QPFRDATA.

Example 2: Creating a Package that Contains Two Formats

CRTGPHPKG   GPHPKG(MYLIB/MYPKG)  TEXT('MY PACKAGE')
            GPHFMT(MYGPH1 MYGPH2)

This command creates a graph package called MYPKG which contains the formats of MYGPH1 and MYGPH2. MYPKG is saved in library MYLIB.

Top

Error messages

*ESCAPE Messages

PFR9011
Graph package &2 already exists in library &1.
PFR9013
Graph format &2 cannot be added.
PFR9032
Too many formats selected.
Top