DataLoader/MX Reference Manual (G06.24+)

Creating a Customized Version of DataLoader/MX
DataLoader/MX Reference Manual525872-002
5-33
Generating Test Data
values as there are columns in the field. These fields must be as long as the longest
possible value for that field, plus one byte for the terminating NULL.
The syntax is:
Field
is a value from 1 through 10 that specifies the field to which the column is to be
added.
Coln
is the variable that holds the result.
Lenn
is the maximum number of characters that can be placed in Coln.
Specify a Col and Len pair for each column in the result. DataLoader/MX moves a
maximum of Lenn bytes to its corresponding Coln column.
If DTLCartGenerateField returns 0, it has started to return duplicate combinations. A
nonzero value indicates that the result is not a repeat of prior combinations.
DTLCARTGENERATE[1-5]COLFIELDCOB
These procedures are COBOL-callable routines for generating Cartesian fields.
Because COBOL does not accept variable numbers of parameters, there are five
routines, for one to five columns in a field. You can add at most five columns to one
field by using COBOL.
The syntax is:
short DTLCartGenerateField( short Field, char* Coln,
short Lenn, ... );
short DTLCARTGENERATE1COLFIELDCOB ( short field,
char* Col1, short Len1);
short DTLCARTGENERATE2COLFIELDCOB ( short field,
char* Col1, short Len1,
char* Col2, short Len2);
short DTLCARTGENERATE3COLFIELDCOB ( short field,
char* Col1, short Len1,
char* Col2, short Len2,
char* Col3, short Len3);