Debbie, what you have below just calls other programs and then executes ten
macros supposedly within the programs. You'll need drop or keep statements
within the called programs, or in data steps between the program %includes.
You could modify the programs to pass the drop or keep lists from your macro
calls at the bottom.
DDS Data Extraction
From: Debbie Cooper [mailto:debbie.cooper@STEVENSONCOMPANY.COM]
Sent: Friday, January 23, 2004 11:41 AM
Subject: Dropping variables in a macro
You have helped me out before so I thought I'd try again. I have the
*** Window and Door runfirst ****;
The problem is that there are a bunch of variables in (for example)
ssiprod224 that don't belong in any of the other datasets. But because of
the order in which things run, they get picked up by all the datasets. Even
if I create another
%include program that drops out variables, it will drop out the variables
from all the datasets and that isn't what I want. Short of creating a drop
program for each of the datasets, is there any way to get rid of the
variables that are getting picked up by the other datasets?