Hello @MTeck and welcome to the SAS Support Communities!
In the case of a dichotomous explanatory variable with values 0 and 1 (like exposure in your data) the results with vs. without a CLASS statement are essentially the same. However, it can happen (and it did in your example) that the CLASS statement uses level '1' of that explanatory variable as the reference level so that the sign of the corresponding parameter estimate changes and the inverse hazard ratio and confidence limits are computed, here: the hazard ratio of "no exposure" vs. "exposure."
I would use the CLASS statement (because exposure is a classification variable) and explicitly specify the reference level so that the intended results are clear. If variable exposure is not formatted:
class exposure(ref='0');
If variable exposure is formatted and the formatted value of exposure=0 is 'no':
class exposure(ref='no');
Or, to avoid hardcoding of formatted values:
class exposure(ref=first) / order=internal;
(Among the internal values of exposure, 0 and 1, 0 is the first, regardless of formats. See the documentation for more details.)
... View more