Action Principale : bnet
| 1 | DATA casuser.SAMPLE_DATA; |
| 2 | call streaminit(123); |
| 3 | DO i = 1 to 1000; |
| 4 | var1 = rand('table', 0.25, 0.5, 0.25); |
| 5 | var2 = rand('table', 0.5, 0.5); |
| 6 | var3 = rand('table', 0.1, 0.2, 0.7); |
| 7 | IF (var1=1 and var3=3) THEN Target = 'A'; |
| 8 | ELSE IF (var2=2) THEN Target = 'B'; |
| 9 | ELSE Target = 'C'; |
| 10 | OUTPUT; |
| 11 | END; |
| 12 | RUN; |