Dataloader/MP Reference Manual

Table Of Contents
Creating a Customized Version of DataLoader/MP
DataLoader/MP Reference Manual424148-003
5-29
Generating Test Data
DTLRandUnsignedLong2Init
This procedure optionally can be used to initialize DTLRandUnsignedLong2 to cause it
to start at a different point in its sequence of random values. By default,
DataLoader/MP initializes DTLRandUnsignedLong2 with the seed value 1305.
If you want to receive different sets of random numbers in different runs, you can use
DTLRandUnsignedLong2Init to give a different seed in each of your runs. The syntax
for this procedure follows:
Odometers
Another useful type of test data is modeled after an automobile’s odometer. Consider
the following sequence of numbers:
00000
00001
00002
...
99999
00000
For situations where you desire such test data, DataLoader/MP provides a utility
procedure, DTLIncOdometer, to create it. DTLIncOdometer, however, generalizes on
the odometer concept by letting the values be alphabetic as well as numeric. For
example, the following sequences are supported by DTLIncOdometer:
AAAA
AAAB
AAAC
...
ZZZZ
AAAA
aaaa
aaab
aaac
...
zzzz
aaaa
Odometer values can also be mixed, as follows:
aAA0
aAA1
aAA2
...
zZZ9
aAA0
void DTLRandUnsignedLong2Init ( unsigned long Seed );