It is not clear if you already know the two modes or if you want to find them. Regardless, I think your question is asking whether you can create two indicator variables and use them as part of the model. The following program uses PROC FREQ to discover that the variable C has the modes C=3 and C=6. I then use a DATA step to create indicator variables for those conditions. Lastly, I use those indicator variables as part of the model in PROC LOGISTIC:
data Have;
input X C Y;
datalines;
0.90 6 1
0.90 5 0
0.95 3 0
0.90 4 0
0.80 6 0
0.10 6 0
0.30 6 0
0.85 5 1
0.60 6 1
0.10 6 0
0.65 6 0
0.35 3 0
0.70 5 0
1.00 2 1
0.30 1 0
0.10 3 0
0.65 3 0
0.05 3 1
0.55 4 0
0.70 3 1
0.30 3 1
0.65 6 1
0.80 3 1
0.50 3 1
0.30 6 0
;
/* find out that C has modes at C=3 and C=6 */
proc freq data=Have;
table C;
run;
data Want;
set Have;
Mode1 = (C=3); /* a 0/1 indicator variable */
Mode2 = (C=6);
run;
proc logistic data=Want;
class Mode1 Mode2;
model y(event='1') = x Mode1 Mode2;
run;