BTEQ - Return codes in Teradata

BTEQ return codes are the two digit values that BTEQ returns to the client operating system as a result of any error code occured in BTEQ session.
Possible BTEQ return codes are as given below,

Return Code Description
00 Job completed with no errors.
02 User alert to log on to the Teradata Database.
04 Warning error.
08 User error.
12 Severe internal error

The return code is decided by the error messages that BTEQ receives from the Teradata database.
Different Teradata database error codes are assigned a specific return code value.