When comparing an individual or small number of UDC values between environments it will be easiest to use the Work With User Defined Codes application (P0004A). However, in order to ensure that your UDCs are in sync between environments, it may be best to use SQL.