data Drugs;
   input Set Brand $ 4-12 Count Price;
   datalines;
1           0   . 
1  Brand 1  103 50 
1  Brand 2  58  75 
1  Brand 3  318 50 
1  Brand 4  99  75 
1  Brand 5  54  100 
1  Brand 6  83  100 
1  Brand 7  71  100 
1  Brand 8  58  100 
1  Brand 9  100 50 
1  Brand 10 56  100 
2           10  . 
2  Brand 1  73  100 
2  Brand 2  76  50 
2  Brand 3  342 100 
2  Brand 4  55  75 
2  Brand 5  50  75 
2  Brand 6  77  75 
2  Brand 7  95  100 
2  Brand 8  71  50 
2  Brand 9  72  100 
2  Brand 10 79  75 
3           10  . 
3  Brand 1  65  50 
3  Brand 2  86  50 
3  Brand 3  330 75 
3  Brand 4  67  100 
3  Brand 5  82  50 
3  Brand 6  74  75 
3  Brand 7  77  50 
3  Brand 8  73  75 
3  Brand 9  79  50 
3  Brand 10 57  75 
4           10  . 
4  Brand 1  81  75 
4  Brand 2  52  50 
4  Brand 3  277 50 
4  Brand 4  79  50 
4  Brand 5  97  100 
4  Brand 6  64  75 
4  Brand 7  92  75 
4  Brand 8  84  100 
4  Brand 9  92  75 
4  Brand 10 72  75 
5           0  . 
5  Brand 1  65  75 
5  Brand 2  82  75 
5  Brand 3  260 100 
5  Brand 4  80  100 
5  Brand 5  72  75 
5  Brand 6  94  100 
5  Brand 7  81  50 
5  Brand 8  96  50 
5  Brand 9  92  75 
5  Brand 10 78  100 
6           20  . 
6  Brand 1  58  50 
6  Brand 2  89  100 
6  Brand 3  281 100 
6  Brand 4  61  50 
6  Brand 5  85  75 
6  Brand 6  89  50 
6  Brand 7  73  75 
6  Brand 8  117 50 
6  Brand 9  63  50 
6  Brand 10 64  50 
7           20  . 
7  Brand 1  66  100 
7  Brand 2  70  75 
7  Brand 3  352 75 
7  Brand 4  68  50 
7  Brand 5  87  50 
7  Brand 6  74  100 
7  Brand 7  78  75 
7  Brand 8  59  75 
7  Brand 9  74  100 
7  Brand 10 52  100 
8           10  . 
8  Brand 1  93  100 
8  Brand 2  67  100 
8  Brand 3  361 50 
8  Brand 4  73  100 
8  Brand 5  59  100 
8  Brand 6  90  50 
8  Brand 7  59  50 
8  Brand 8  59  100 
8  Brand 9  60  100 
8  Brand 10 69  50 
9           0   . 
9  Brand 1  62  75 
9  Brand 2  74  100 
9  Brand 3  341 75 
9  Brand 4  95  75 
9  Brand 5  87  50 
9  Brand 6  79  50 
9  Brand 7  53  100 
9  Brand 8  68  75 
9  Brand 9  66  75 
9  Brand 10 75  50 
10          20  . 
10 Brand 1  92  100 
10 Brand 2  77  75 
10 Brand 3 310  50 
10 Brand 4  72  100 
10 Brand 5  58  75 
10 Brand 6  65  50 
10 Brand 7  64  100 
10 Brand 8  56  75 
10 Brand 9  81  75 
10 Brand 10 105 75 
11          10  . 
11 Brand 1  74  100 
11 Brand 2  66  100 
11 Brand 3  290 100 
11 Brand 4  98  75 
11 Brand 5  58  50 
11 Brand 6  71  75 
11 Brand 7  61  75 
11 Brand 8  95  100 
11 Brand 9  70  75 
11 Brand 10 107 100 
12          0   . 
12 Brand 1  79  50 
12 Brand 2  90  75 
12 Brand 3  350 100 
12 Brand 4  76  50 
12 Brand 5  53  50 
12 Brand 6  55  50 
12 Brand 7  63  50 
12 Brand 8  63  100 
12 Brand 9  104 100 
12 Brand 10 67  75 
13          0   . 
13 Brand 1  91  75 
13 Brand 2  85  50 
13 Brand 3  346 100 
13 Brand 4  79  100 
13 Brand 5  88  50 
13 Brand 6  90  100 
13 Brand 7  67  100 
13 Brand 8  61  100 
13 Brand 9  42  50 
13 Brand 10 51  50 
14          10  . 
14 Brand 1  79  50 
14 Brand 2  90  100 
14 Brand 3  323 75 
14 Brand 4  72  100 
14 Brand 5  49  100 
14 Brand 6  59  75 
14 Brand 7  103 100 
14 Brand 8  80  50 
14 Brand 9  50  100 
14 Brand 10 85  100 
15          0   . 
15 Brand 1  96  100 
15 Brand 2  94  50 
15 Brand 3  299 75 
15 Brand 4  86  50 
15 Brand 5  81  100 
15 Brand 6  64  100 
15 Brand 7  89  50 
15 Brand 8  69  50 
15 Brand 9  55  75 
15 Brand 10 67  50 
16          20  . 
16 Brand 1  60  50 
16 Brand 2  66  50 
16 Brand 3  316 50 
16 Brand 4  44  75 
16 Brand 5  77  75 
16 Brand 6  78  100 
16 Brand 7  75  75 
16 Brand 8  108 75 
16 Brand 9  71  100 
16 Brand 10 85  50 
17          10  . 
17 Brand 1  86  75 
17 Brand 2  62  75 
17 Brand 3  321 75 
17 Brand 4  58  75 
17 Brand 5  107 100 
17 Brand 6  57  50 
17 Brand 7  62  75 
17 Brand 8  78  50 
17 Brand 9  92  50 
17 Brand 10 67  75 
18          20  . 
18 Brand 1  63  75 
18 Brand 2  92  100 
18 Brand 3  287 50 
18 Brand 4  79  50 
18 Brand 5  80  75 
18 Brand 6  45  75 
18 Brand 7  94  50 
18 Brand 8  56  75 
18 Brand 9  86  50 
18 Brand 10 98  100 
19          0   . 
19 Brand 1  64  100 
19 Brand 2  92  75 
19 Brand 3  316 100 
19 Brand 4  80  75 
19 Brand 5  85  100 
19 Brand 6  80  75 
19 Brand 7  76  50 
19 Brand 8  55  75 
19 Brand 9  65  50 
19 Brand 10 87  50 
20          30  . 
20 Brand 1  63  75 
20 Brand 2  67  75 
20 Brand 3  322 50 
20 Brand 4  77  50 
20 Brand 5  84  50 
20 Brand 6  63  75 
20 Brand 7  64  100 
20 Brand 8  38  50 
20 Brand 9  84  100 
20 Brand 10 108 50 
21          10  . 
21 Brand 1  78  50 
21 Brand 2  106 75 
21 Brand 3  328 75 
21 Brand 4  78  100 
21 Brand 5  61  75 
21 Brand 6  45  75 
21 Brand 7  65  75 
21 Brand 8  111 100 
21 Brand 9  47  75 
21 Brand 10 71  50 
22          0   . 
22 Brand 1  105 50 
22 Brand 2  61  100 
22 Brand 3  301 50 
22 Brand 4  89  75 
22 Brand 5  79  50 
22 Brand 6  64  100 
22 Brand 7  72  50 
22 Brand 8  88  50 
22 Brand 9  65  75 
22 Brand 10 76  75 
23          0   . 
23 Brand 1  58  50 
23 Brand 2  65  50 
23 Brand 3  355 100 
23 Brand 4  95  50 
23 Brand 5  73  100 
23 Brand 6  58  50 
23 Brand 7  62  100 
23 Brand 8  63  75 
23 Brand 9  112 75 
23 Brand 10 59  100 
24          20  . 
24 Brand 1  54  75 
24 Brand 2  50  50 
24 Brand 3  365 75 
24 Brand 4  95  75 
24 Brand 5  61  75 
24 Brand 6  97  50 
24 Brand 7  53  50 
24 Brand 8  93  100 
24 Brand 9  67  100 
24 Brand 10 45  100 
25          0   . 
25 Brand 1  79  75 
25 Brand 2  68  100 
25 Brand 3  328 100 
25 Brand 4  79  100 
25 Brand 5  82  100 
25 Brand 6  63  100 
25 Brand 7  100 75 
25 Brand 8  52  75 
25 Brand 9  71  100 
25 Brand 10 78  75 
26          20  . 
26 Brand 1  89  100 
26 Brand 2  42  50 
26 Brand 3  278 50 
26 Brand 4  48  100 
26 Brand 5  85  50 
26 Brand 6  80  50 
26 Brand 7  88  75 
26 Brand 8  93  50 
26 Brand 9  127 50 
26 Brand 10 50  100 
27          0   . 
27 Brand 1  68  100 
27 Brand 2  101 100 
27 Brand 3  352 75 
27 Brand 4  58  50 
27 Brand 5  82  75 
27 Brand 6  60  100 
27 Brand 7  47  100 
27 Brand 8  73  100 
27 Brand 9  94  50 
27 Brand 10 65  75 
;

%mktallo(data=drugs, out=allocation, nalts=11,
         vars=set brand price, freq=Count)

proc print data=allocation(obs=22);
   var set brand price count c;
run;