As requested by @Kurt_Bremser , please provide working code, tested.
data TEST;
input month: date9.. YES NO PCT_YES :commax. PCT_NO :commax.
format motnth monyy5.;
datalines;
1JAN2021 163 22 70,34 23,55
3JAN2021 198 22 45,34 34,34
1FEB2021 155 18 34.23 12,3
12FEB2021 116 19 89,3 23,3
1MAR2021 163 22 70,34 23,55
3APRIL2021 198 22 45,34 34,34
1MAY2021 155 18 34.23 12,3
12JUN2021 116 19 89,3 23,3
;
Errors appear here.
Also, you again have changed the structure of your data, from one line per month, to (sometimes) multiple lines per month. Can you provide data that actually represents the real problem, if it is one line per month, then provide that; if it can be multiple lines per month then provide that; and if there are any other quirks in the data that haven't been mentioned yet, provide that too.
--
Paige Miller