%let YYMMM=202303;
Proc sql;
create table table_list as
select memname from dictionary.tables
where libname='HVGRP'
and memname like "T_cdr_&yyyymm_%"
order by input(substr(memname,length("T_CDR_&YYYYMM._")+1),8.);
quit;
I want memname to adhere to below specifications:
To correctly match values like "T_CDR_202303_1", "T_CDR_202303_2" and so on "T_CDR_202303_n", ( where n is not a fixed integer and it starts from 1 )
It should not match patterns other than above .It should exclude patterns for eg: "T_CDR_202303_SVB_0712" ,
"T_CDR_202303_1_BKP"
... View more