How to select the Xbee transmit power through software?

In Xbee datasheet it is specified that the transmit power is software selectable. Could You please guide us how to select the required transmitting power.

That is done via the ATPL command. The parameters range is from 0 - 4 with 0 being the lowest and 4 the highest.