/*测试数据集*/
data mydataset;
length mydate $20;
mydate='03MAR2023';output;
mydate='03MAR2023';output;
mydate='13MAR2023';output;
mydate='20MAR2023';output;
mydate='MAR2023';output;
mydate='2023';output;
mydate='UNMAR2023';output;
mydate='UNunk2023';output;
mydate='UNunkunun';output;
mydate='';output;
mydate='3 MAR 2023';output;
mydate='03 MAR 2023';output;
mydate='13 MAR 2023';output;
mydate='20 MAR 2023';output;
mydate='MAR 2023';output;
mydate='UN MAR 2023';output;
mydate='UN unk 2023';output;
mydate='UN unk unun';output;
run;
proc format;
invalue monfmt