Add Activity (QFVADDA) API


  Required Parameter Group:


  Default Public Authority: *USE

  Threadsafe: No

The Add Activity (QFVADDA) API adds an activity to the specified change request description.


Authorities and Locks

Change request description authority
*CHANGE
Change request description lock
*EXCLRD

Required Parameter Group

Qualified change request description name
INPUT; CHAR(20)

The name and library of the qualified change request description to which an activity is added. The first ten characters contain the name of the change request description. The second ten characters contain the name of the library where the change request description is located.

The following special values can be used for library name:


Activity name
INPUT; CHAR(10)

The name of the activity to add to the qualified change request description. The first character must be alphabetic or one of the special symbols $, @, or #. The remaining characters can be alphanumeric (A through Z, a through z, 0 through 9, and special symbols $, #, @, ., or _). The maximum number of activities allowed per change request description is 200.

Special values for the name of the activity are:


Activity type
INPUT; CHAR(10)

The name of the activity type to be added to the change request description. This value is defined by the user program. The API does not define the possible values. The characters that can be used for the activity type name are A through Z, 0 through 9, and *. Only IBM activity types should start with *.

Destination format
INPUT; CHAR(10)

Whether the activity runs on the local system, a node list name, or a list of 1 to 50 nodes specified by the user.

Special values for the destination format are:


Destination
INPUT; Array of CHAR(20)

The destination of the activity. The format of the destination is based on the destination format parameter.

When the destination format is *SNALST, the destination parameter is an array of the number of destinations elements.

The format for each element is:

When the destination format is *NODL, the destination parameter is an array of one element with the following format:

When the destination format is *LCL, the destination parameter is ignored.

Number of destinations
INPUT; BINARY(4)

The number of elements in the destination array. Valid values range from 1 through 50. The number of destinations parameter is ignored if the destination format parameter is *LCL or *NODL.

Condition list
INPUT: Array of CHAR(32)

The list of conditions that must be met before the activity can be run.

The format for each element is:


Number of conditions
INPUT; BINARY(4)

The number of condition elements. The valid values are 0 through 5. When the number of condition elements is 0, the activity specified is not dependent on any other activities to complete before it can start, and the condition list parameter is ignored.

Start time
INPUT; CHAR(40)

The date and time window during which this activity can be started. The current date and time values and next date values are determined when the change request is submitted. The structure is:

The format for time is hhmmss. The format for date is cyymmdd.

Hold
INPUT; CHAR(10)

Whether or not this activity is in Held status when it is submitted.

Valid values are *YES and *NO.

Function parameters
INPUT; CHAR(*)

The structure containing the specific function parameters. The format is known only by the program calling this API and the exit program that is called to display, change, print, or run this activity.

Length of function parameters
INPUT; BINARY(4)

The total length in bytes of the function parameters parameter. Valid values range from 1 through 12288 (12k).

Text
INPUT; CHAR(50)

The description of the activity.

Replace
INPUT; CHAR(10)

Whether an activity that already exists is replaced. If the activity name is found, it is replaced on this parameter.


Activity added
OUTPUT; CHAR(10)

The name of the activity added to the change request description. This is useful when *GEN is specified for the activity name. This parameter is ignored if the activity already exists.

Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error code parameter.


Error Messages



API introduced: V3R1

[ Back to top | Network Management APIs | APIs by category ]