Can the following be implemented? :
A colon preceding a suffix selects with variables with the common suffix, as would select variables AC and BC in the second data step below, without error:
data have;
AC=1;
AD=2;
BC=3;
BD=4;
AEC=5;
BED=6;
data _Null_;
set have;
format A: z4.;
putlog _All_;
data _Null_;
set have;
format :C z4.;
putlog _All_;
run;
Colons sandwiching a search term as a use of colon wildcards, as in:
format :E: z5.;
Also see sasnrd.com = Drop or Keep Variables With Same Suffix