Published on :

Sans titre

This code is also available in: Deutsch Español Français
1 Code Block
Copied!
1DATA b;
2 INPUT id x1 x2 y;
3 CARDS;
4 1 12 35 1
5 2 22 38 2
6 3 25 34 3
7 4 12 56 1
8 5 21 54 2
9 6 20 45 3
10 7 25 34 3
11 ;
12RUN;
2 Code Block
Copied!
1DATA newdata;
2 SET b;
3 DO i=1 to 3;
4 IF y=i THEN decision=1;
5 ELSE decision=0;
6 OUTPUT;
7 END;
8RUN;
3 Code Block
Copied!
1PROC PRINT;RUN;
This material is provided "as is" by We Are Cas. There are no warranties, expressed or implied, as to merchantability or fitness for a particular purpose regarding the materials or code contained herein. We Are Cas is not responsible for errors in this material as it now exists or will exist, nor does We Are Cas provide technical support for it.