x cd /pub/data/Tools; %let pgm=gen_varslcts; filename pgm "&pgm..sas"; *---invoke the genslct macro to create