Can i change the channel in XBee Pro 802.15.4 from Pic controller?

I am usin CCS c compiler and i try to execute AT command to change the Channel but it send the data as text to XBee RX