Each Access Module must be packaged as a single main function that is called for all device-specific I /O functions by the data connector component of the Teradata utility or the DataConnector Operator in Teradata PT. The structure for the main function is:
void PIDMMain ( pmiCmdBlock_t *Opts, void *OptParms )
Sample Program provides a sample program that supports the Access Module interface.