geterrtext()  qual()

Chapter 4: Production Objects and Methods

produce()

Description

Parses the input data into production object field objects, sets associated datalink objects, runs the production and field object qualification objects, runs production object rules, components, filters, and places the resulting output data into the defined output value. This method is used in AIM development that includes a transaction production file containing the production object.

Syntax

my_prod.produce(blob *input, blob *output);

where my_prod is the name of the production object created using TRAN-IDE.

Parameter

Description

input

Pointer to the blob object that contains the input data.

output

Pointer to the blob object that holds the output data.

Return value

Integer.

Returns > 0 for success, and < or = 0 for failure.

Examples

Example 33

blob In_data;
blob Out_data;
In_data = “a bunch of data”;
my_prod.produce(&In_data, &Out_data);
// Out_data blob now contains the output of my_prod 
// production object




Copyright © 2005. Sybase Inc. All rights reserved. qual()

View this book as PDF