Processing Predict Sets

#### Search Results

Search

# Processing Predict Sets

This document describes the menus and direct commands to process Predict sets. The following topics are covered:

- Fields in the Predict Sets Menu

- Selection Lists for Predict Sets

- Direct Command Syntax for Predict Sets

Notes:

1. All SYSMAIN functions except the `find` function can be performed on Predict sets.
2. The specification of the environment for Predict sets must always correspond with the database ID (DBID) and file number (FNR) of the relevant FDIC system file.
3. During the processing of Predict sets the Software AG Editor is used. Therefore you have to use the Editor Buffer Pool or to set the Natural profile parameter `EDPSIZE`.

## Fields in the Predict Sets Menu

The Predict Sets menu contains all SYSMAIN functions for processing Predict sets. The fields provided in the menu are described in the following table:

Field | Explanation
--- | ---
Code | Specifies the function to be performed as described in Description of Functions
C | Copy Predict set.
D | Delete Predict Set.
L | List Predict Set.
M | Move Predict Set.
R | Perform the rename function.
Sel. List | Specifies whether selective processing or automated processing is used:
Y | Yes. Selective processing is activated. A selection list is displayed when processing Predict sets. This is the default setting. For the columns and line commands available on a selection list, see Selection Lists for Predict Sets.
N | No. Selective processing is deactivated and automated processing becomes activated.
Set No. from | The number of the Predict set to be processed, or the start number of a range of Predict sets if an end number is entered in the No. to field.
New No. | The (new) number to be given to a Predict set for which the rename function is performed.
Library | The name of a source or a target library assigned to the Predict set(s). It is not possible to specify ranges.
Database | The database ID (DBID) of a source or a target database for the library assigned to the Predict set(s).
File | The file number (FNR) of a source or a target database for the library assigned to the Predict set(s).
User | The source or target user ID assigned to the Predict set(s). It is not possible to specify ranges.
FDIC Database | The database ID (DBID) of a source or a target database. The source database contains the FDIC system file where the Predict set to be processed is stored. The target database contains the FDIC system file to which the Predict set is to be copied or moved, or where the Rename function is performed. Valid database IDs range from `1` to `65535`.
FDIC File | The file number (FNR) of a source or a target FDIC system file. The source file contains the Predict set to be processed. The target file is the file to which the Predict set is to be copied or moved or where the rename function is performed. Valid file numbers range from 1 to 65535.
Replace | Specifies whether a Predict set is to be replaced when using the move, copy or rename function:
Y | Yes. A Predict set in the target environment with the same number for the same library and user is replaced.
N | No. No replacement. This is the default setting.
See also Using the Replace Option .

## Selection Lists for Predict Sets

If selective processing has been activated, a selection list of all Predict sets that meet the specified selection criteria is displayed on a Selection screen.

This section describes the columns contained on a Selection screen and the line commands provided to further process a Predict set.

- Columns

- Line Commands for Predict Sets

### Columns

The following columns are displayed on the Selection screen:

Column | Explanation
--- | ---
C | Input field for line commands (see below)
Set | The number of the Predict set that matches the specified selection criteria.
Criteria | The criteria (text of the Predict command) used for the creation of the Predict set.
Members | Number of Natural object names contained in the Predict set.
Date | The date when the Predict Set was created.
Time | The time when the Predict Set was created.

### Line Commands for Predict Sets

One of the following line commands can be entered in the C (Command) column of a Selection screen:

Line Command | Explanation
--- | ---
A | Process the specified Predict set.
L | Display the contents (names and types) of the specified Predict set.

## Direct Command Syntax for Predict Sets

This section shows the syntax that applies when performing a SYSMAIN function on Predict sets by using direct commands in either online or batch mode. For general instructions on using direct commands, refer to Executing Commands.

For explanations of the keywords and variable values used in the syntax diagrams below, refer to Keywords and Variables in Direct Commands. The symbols in the syntax diagrams correspond to the syntax symbols used for system commands. These symbols are explained in System Command Syntax in the System Commands documentation.

The syntax of the where-clause and the with-clause are identical for each command.

This section covers the following topics:

- COPY and MOVE

- DELETE

- LIST

- RENAME

- where-clause

- with-clause

### COPY and MOVE

| `COPY` `MOVE` |  | `SET nn` | [ `TOSET` `nn` ] |  | `FROM` `FM` `IN` | [`LIBRARY`] lib-name |  | [`SETUSER` user] [where-clause] |
|  |  |  |  |  | `TO` | [`LIBRARY`] lib-name [`SETUSER` user] [where-clause] |
|  |  | [with-clause] |  |  |  |  |  |  |  |

#### Examples:

    COPY SET 1 TOSET 99 FROM LIBRARY SRCLIB SETUSER UID1 WHERE DBID 10 FNR 32 DIC (10/460)

      TO LIBRARY TGTLIB SETUSER UID2 WHERE DBID 10 FNR 110 DIC (10/1460) WITH REPLACE

    COPY SET 1 TOS 99 FM SRCLIB SETU UID1 TO TGTLIB SETU UID2 REPLACE

### DELETE

`DELETE` | `SET nn` |  |  | [ `TOSET` `nn` ] |  | `FROM` `FM` `IN` | [`LIBRARY`] lib-name |  | [`SETUSER` set-user] | [where-clause]
|  |  | [with-clause] |  |  |

#### Example:

    D SET 17 IN SRCLIB DBID 10 FNR 32

### LIST

`LIST` | `SET nn` | [ `TOSET` `nn` ] |  | `FROM` `FM` `IN` | [`LIBRARY`] lib-name |  | [`SETUSER` user] [where-clause]
|  | [with-clause] |  |  |  |  |

#### Example:

    LIST SET 11 TOS 44 IN LIB SRCLIB DBID 10 FNR 32

### RENAME

`RENAME` | `SET nn AS nn` |  | `FROM` `FM` `IN` | [`LIBRARY`] lib-name |  | [`SETUSER` user] [where-clause] |
|  |  | [`TO` | [`LIBRARY`] lib-name [`SETUSER` user] [where-clause]] |
| [with-clause] |  |  |  |  |  |  |

#### Example:

    RENAME SET 17 AS 83 FM SRCLIB SETUSER UID1 WHERE DBID 10 FNR 32 DIC (10/1460) TO TGTLIB

                     SETUSER UID1 WHERE DBID 10 FNR 32 DIC (10/1460) WITH RCOP REP

    RENAME SET 11 AS 11 FM LIB1 SETUSER UID1 TO LIB1 SETUSER UID2 WITH RCOP'

### where-clause

[`WHERE`] [`DBID` dbid] [`FNR` fnr]
|  |  | `PASSWORD` `PSW` |  | password |  |  |
| [`DIC` (dbid,fnr,password,cipher)]
| [`SEC` (dbid,fnr,password,cipher)]

#### Separators

Commas must be used as separators between the values following the `DIC` and `SEC` keywords, or if a value is missing. For example: `DIC (10,,secret,2a)`. If the session parameter `ID` (see ID - Input Delimiter Character in the Parameter Reference documentation) has been set to a comma, use a slash (/) as the separator between values.

### with-clause

[`WITH`] | [`REPLACE`] |  | `PROMPT` `NOPROMPT` |  |  | `MON` `NOMON` |  | [`HELP`]

### On this page

- Fields in the Predict Sets Menu
- Selection Lists for Predict Sets
- Direct Command Syntax for Predict Sets