The datapat program tests the random number generator used by datagen. The screen should look like it is changing evenly across the entire screen.
An alternate version of datapat is called realpat. realpat uses real numbers to calculate the address on the screen, whereas datapat uses integers. Although integers are faster to generate, both methods are included to demonstrate the random number generator. The discussion below applies equally well to both datapat and realpat.
datapat can also be used to generate traffic over a network. To test it this way, run as many copies of the program via telnet over your network, until your network slows down.
The speed of datapat is limited by the speed of curses. When writing to a local terminal in X Windows, datapat uses about 55 percent of the CPU, while it is waiting for responses from curses. When writing to an Ethernet card, datapat uses about 75 percent of the CPU.
datapat avoids writing to row 24 column 80 because of the Windows emulation of vt100.
The syntax for datapat is:
datapat
Press r to reset the screen.
Press q to quit.
Table of Contents
Job and Record Level Definitions
Field Level Definitions
Datagen Syntax
Supporting Routines
FAQ
Copying