From: montura on
It's simple -

Varchar is supported through SQL
It will be apply the same to SAS, Teradata, etc.
When applied to a SAS dataset it simply converts to CHAR.

Regardless of any other RDBMS in pay, the max length will be 32768 if
you are on Windows SAS.
If your SAS programs run on multiple OS - use the VARCHAR declaration
through SQL instead of Data Step.