Previous Topic: 1.5.3.2 Modifying a File Definition InquiryNext Topic: 1.5.3.4 Deleting a File Definition Inquiry


1.5.3.3 Repeating or Copying a File Definition Inquiry


This section describes how to use an existing file definition
inquiry as a model for a new inquiry without changing the
original inquiry.  Figure 1-5 shows a typical display of the
contents of a private catalog.


/---------------------  Capacity Planning Data Base Files  ---------------------\
|Command ===>                                                  Scroll ===> PAGE |
|                                                                               |
|Catalog       ===> PRIVATE (PRIVATE/SHARED)   ---------Line Commands-----------|
|Catalog group ===> CAPACITY                   |A Add Notes B Browse  S Select ||
|Select mode   ===> EXECUTE (EXECUTE/MODIFY)   |M Modify    E Execute I Insert ||
|Name (subset) ===> ___                        |R Repeat    C Copy    D Delete ||
|                                              ---------------------------------|
|                                                                               |
|Cmd    Name                    Title                    Type       Status      |
| -   --------  ----------------------------------------   -   -----------------|
| R   CPU       CPU Sample Application                     S   Copied   98/11/01|
| _   DAS       DASD Sample Application                    S   Updated  98/11/02|
| _   WKL       Track Major Workloads                      F   Forecast Only    |
|****************************** BOTTOM OF DATA  ********************************|
|                                                                               |
|                                                                               |
|                                                                               |
|                                                                               |
|                                                                               |
|                                                                               |
|                                                                               |
|                                                                               |
|                                                                               |
|                                                                               |
\------------------------------------------------------------------------------/

 Figure 1-5.  Repeating an Inquiry


To repeat a copy of a file definition inquiry in your private
catalog, type an R (REPEAT) in the Cmd column on the line of
the inquiry that you wish to copy and press ENTER.  The
Repeat File Definition screen shown in Figure 1-6 appears.

To copy an existing file definition from the shared catalog
into your private catalog, you first need to view the shared
catalog by changing PRIVATE to SHARED in the Catalog field on
the screen shown above.  Then type a C (COPY) in the Cmd
column on the line of the inquiry that you wish to copy and
press ENTER.  A Copy File Definition screen similar to the
Repeat File Definition screen shown in Figure 1-6 displays.

/--------------------------  Repeat File Definition  ---------------------------\
|Command ===>                                                                   |
|                                                                               |
|Catalog:  PRIVATE                                                              |
|                                                                               |
|        File name   ===> xxx                                                   |
|             Title  ===> CPU Sample Application                                |
|             Author ===> CA                                                    |
|              Type:      Sample Application                                    |
|                                                                               |
|Catalog group name  ===> CAPACITY                                              |
|              Title ===> Capacity Planning                                     |
|                                                                               |
|Invoke SAS to copy history to your private catalog    ===> YES (YES/NO)        |
|Invoke SAS to copy forecasts to your private catalog  ===> NO  (YES/NO)        |
|Convert Sample application to resource element file ===> NO    (YES/NO)        |
|                                                                               |
|Press ENTER to add the new file definition to your private catalog.            |
|or                                                                             |
|Press END to cancel.                                                           |
|                                                                               |
|                                                                               |
|                                                                               |
\------------------------------------------------------------------------------/

 Figure 1-6.  File Definition Inquiry Repeat Screen


Enter the name that this copied inquiry will use in the File
name field.  The values for the Title and Author fields are
copied from the original inquiry.  You may change them if you
desire.

You are also given an opportunity to choose whether to copy
any existing history or forecast SAS files at this time.  The
screen entries for these choices will default to YES only if
such data exists.  This copying will be done by invoking SAS
in foreground.

If the file definition being repeated or copied is a Sample
application, you can choose to convert the newly created copy
to a resource element file.  You would do this if you want to
make subsequent modifications to the new definition by adding
other input files or data elements, or by making alterations
in some of its calculations.

When you are satisfied with the entries, press ENTER.