Using the Workplan

#### Search Results

Search

# Using the Workplan

Calling Predict functions using the workplan is a two-step process:

1. Select the objects to be processed by specifying the type of function to be applied to them in the Cmd column of a selection list. Enter an asterisk in this column to display the valid functions for the selected object. Confirm the combinations of function and object with ENTER.

2. Execute the commands in the workplan, one after another or in a specified order. The two methods of calling workplan commands are described in the section Step 2: Executing Commands from a Workplan.

   Note
   When you create a dummy (by creating a link to an object that does not yet exist), an entry in the workplan is created automatically and a message is given if the parameter Workplan commands/Add task for dummy in the maintenance options of the active profile is set to Y. Only one command is put into the workplan for each dummy. If the command already exists in the workplan, a corresponding message is given.

This document covers the following topics:

- Step 1: Adding Entries to the Workplan

- Step 2: Executing Commands from a Workplan

- Administrating a Workplan

## Step 1: Adding Entries to the Workplan

Entries are added to the workplan by entering one or several function codes in the column Cmd in an object selection list. Enter an asterisk in Cmd column for a list of codes valid for the object selected. The example below shows the result of entering an asterisk in the Cmd column alongside an Adabas file.

        13:00:53             *****  P R E D I C T  *****                     2007-05-31
        Plan  10                      - Select File -
                                                        +All--Possible functions------+
        Cmd  File ID                            Type    ! _ /   Select                !
                                                        ! _ C   Copy                  !
        ->   * ARHTESTCHEN                       A      ! _ D   Display               !
             ARTCHD-ZICKELID                     I      ! _ E   Edit Elements         !
             ARTICLE-A                           I      ! _ B   Push Backward         !
             ARTICLE-B                           I      ! _ J   Modify Adabas Attr.   !
             ARTICLE-C                           I      ! _ K   Modify Vista element  !
             ARTICLE-CONTAIND                    I      ! _ L   Link Children         !
             ARTICLE-CONTAINS                    I      ! _ M   Modify                !
             ARTICLE-PART                        I      ! _ N   Rename                !
             ARTICLE-POSORDER                    I      ! _ O   Edit Owner            !
             ARTICLE-SUPPLIER                    I      ! _ P   Purge                 !
             AUTOMOBILES-VS                      V      ! _ S   Select                !
             AUTOMOBILES-VS-VIEW                 W      ! _ W   Edit Description      !
             AZ-AVB-L-ART-1                      L      ! _ X   Select                !
             AZ-AVB-L-ART-111                    L      ! _ ' ' No command            !
             AZ-AVB-L-ART-2                      L      !                             !
             AZ-AVB-U-ART                        U      !                             !
             AZ-AVB-V-ART                        V      !                             !
             * AZ-LOW                            A      !                             !
                                                        !Command ==> _______          !
         __ ('.' = EXIT, 'T' = TOP, 'C' = Specify asso  +-----------------------------+

Note
To select an object for immediate processing, enter / (slash), S or X in the column Cmd.

### Rules

The following rules apply when adding commands to the workplan:

- Up to 999 commands can be added to a workplan.

- When marking objects in a list produced by the Select function, commands are written to the workplan as soon as ENTER is pressed.

- The position of new entries in the workplan can be determined with the profile parameter Position of storage (Maintenance Options > Workplan Commands > Position of storage). New entries can be positioned at the beginning and at the end of the workplan.

- If you leave a list with PF3 or call another function with a different PF key, selections that have not been confirmed with ENTER are lost.

- If you leave a list with '.' or scroll to the top of the list with T in the bottom line of the selection list, selections in the current screen are added to the workplan.

- For the Copy function: Enter the ID of the new object to be created in the window provided.

- For the function Push backward: Enter name of standard file in the window provided.

- For the Link children function: Enter C in the bottom line of the screen to display a window of valid associations for selection. Association must be specified.

- To select a single object for immediate processing, enter S in the Cmd column or position the cursor to the line containing the object and press ENTER. This will not result in a command being added to the workplan.

## Step 2: Executing Commands from a Workplan

An example of a workplan is shown below.

        13:09:31             *****  P R E D I C T  *****                     2007-05-31
        Plan   3                        - Plan menu -

        Cmd  Plan-commands

         __  DISPL FI     HNO-FI-S-1
         __  LINK  FI EL  HNO-FI-C
         __  MODIF FI     HNO-E
         __
         __

        _____ ('.' = EXIT, 'T' = TOP, 'CLEAR' = DELETE all Plan-commands)

Commands contained in a workplan can be executed in two ways:

- By entering the command `NEXT` in the command line of any Predict menu. The first command in the workplan will then be executed. The `NEXT` command can be executed most easily by assigning it to a PF key. If the `NEXT` command is issued with a hyphen following ("NEXT -") the last command in a workplan is executed.

- By opening the workplan with the command `PLAN` and then by entering X in the Cmd column of the workplan. Commands can then be executed in any order.

## Administrating a Workplan

The following rules apply for the administration of a workplan:

- To use a workplan, a users ID has to be documented in Predict with an object of type user.

- The number of commands in a workplan is displayed in the upper left corner of every Predict menu.

- If a user is deleted, the workplan of this user is deleted as well.

- If a user is renamed, the link to the workplan remains.

A workplan can be opened with the command PLAN. The following actions can then be executed:

- Individual commands can be purged from the workplan by entering a hyphen ("-") in the Cmd column of the workplan.

- The contents of a workplan can be cleared with the command `CLEAR`.

- Commands can be executed from within the workplan by marking them with X and pressing ENTER. One command can be executed at a time.

### On this page

- Step 1: Adding Entries to the Workplan
- Step 2: Executing Commands from a Workplan
- Administrating a Workplan