Populate and pass the Parameters working list

LANSA Composer

Populate and pass the Parameters working list

Function DXP1FN1 expects to receive a working list containing zero, one or more (up to 100) entries defining processing sequence parameter values that are to be used by the processing sequence run.  You must pass this working list to function DXP1FN1 - if your processing sequence does not use any parameters, you must still pass an empty working list.

You must define the working list in your program using exactly the same names and characteristics as the working list used by function DXP1FN1.  It should be defined as follows:

 

* -----------------------------------------------

* working list for processing sequence parameters

* -----------------------------------------------

def_list name(#dxparms) fields(#dxapnm #dxpvsq #dxpvvl) type(*working) entrys(100) 

 

 

If you have imported the LANSA Composer development package into your Visual LANSA development environment, the definition of the working list fields will already be present in your LANSA repository.  Otherwise these fields must be defined with these essential characteristics:

Name

Description

Type

DXAPNM

Parameter name

A(20)

DXPVSQ

Sequence number

P(5, 0)

DXPVVL

Parameter value

A(256)

 

 

Your application should set the values of the working list fields and add an entry to the working list for each parameter for which you wish to provide a value.

NOTE:  your application should set the value of the DXPVSQ (sequence number) field to 1 (one) for every working list entry.  The Processing Sequence will not receive the parameter value if you assign any other value to the DXPVSQ field.

For an example of defining and populating the Parameters working list before calling function DXP1FN1 refer to:

Example function to run a Processing Sequence