Hello I'm new to SAS and currently working on stock price data. Here is the example of my dataset: Date Stock1 Stock2 Stock3 Stock4 Stock5 Stock6 Stock7 Stock8 01/06/2000 314,11 212,49 165 450 98,29 125,51 185 02/06/2000 314,11 212,49 143 425 95,83 115,85 185 05/06/2000 338,27 212,49 136 450 98,29 123,1 185 06/06/2000 338,27 212,49 131 450 100,75 125,51 200 07/06/2000 314,11 212,49 133 475 100,75 135,16 200 08/06/2000 362,43 212,49 525 108,12 135,16 172,5 09/06/2000 338,27 212,49 475 103,2 139,99 200 12/06/2000 338,27 212,49 500 100,75 132,75 200 13/06/2000 314,11 212,49 500 100,75 130,34 200 14/06/2000 314,11 212,49 500 103,2 135,16 200 15/06/2000 314,11 212,49 500 103,2 135,16 200 16/06/2000 338,27 212,49 500 108,12 142,4 200 19/06/2000 362,43 212,49 550 108,12 147,23 217,5 20/06/2000 338,27 212,49 525 120,4 144,82 217,5 21/06/2000 362,43 212,49 550 125,32 149,65 217,5 22/06/2000 362,43 212,49 600 125,32 164,13 200 23/06/2000 338,27 212,49 600 122,86 161,71 200 26/06/2000 386,6 212,49 575 120,4 161,71 210 27/06/2000 338,27 212,49 575 117,95 161,71 190 28/06/2000 338,27 212,49 575 113,03 161,71 190 29/06/2000 338,27 212,49 550 113,03 164,13 190 30/06/2000 338,27 212,49 575 120,4 168,95 190 03/07/2000 338,27 212,49 550 112,05 160,75 190 04/07/2000 338,27 212,49 565 117,95 159,3 190 05/07/2000 347,94 212,49 540 123,85 159,3 190 06/07/2000 347,94 212,49 555 126,3 163,64 180,5 What i want to do is to count non-missing values (trading days) every month for every variable (stock 1 to stock 😎 and create new dataset that keep variables with minimum 15 trading days every month, and remove those with less than 15 trading days every month. Based on the dataset above, i will keep variable 1,2,4,5,7, & 8, and drop variable 3 and 6. Or maybe just tell me how to count the non-missing value every month and i will remove the variable manually. I have read some manuals but still couldn't find the solution. Any help/suggestion will be greatly appreciated. Thank you so much
... View more