Compressed database is not encrypted

Item Value
SQLCODE 135
Constant SQLE_COMPRESSING_ENCRYPTED_DB
SQLSTATE WW045
Sybase error code 13514
ODBC 2 State 01000
ODBC 3 State 01000

Probable cause 

The input database is encrypted, but the compressed database just created is not. Compressing a database removes the encryption.