The body of the initiation section is between the
BEGIN
andEND
keywords. In this template, the body consists of only one statement, an assignment statement that assigns a value to theLIST
OF
DATA_ITEM
variable,di_ids
. A database extraction function assigns todi_ids
a list of elements whose names match the string patterndi_pattern
. These are the data-items for which the report will be generated. In this example, assume that you specified the string patternSIGNAL*
. The data-items for which the properties are generated will all have names that begin withSIGNAL
(see the generated output in Final Output for Data-item Properties.Note that the template uses a status code variable,
st
, as an argument in the function. However, the template does not include a statement to checkst
. Ifst
does not indicate success, the returned list of data-items assigned todi_ids
is empty.