*filename mac '/mscdc/sasmacro/stf803t.sas'; /******************************************************************** * NAME: stf803t SYSTEM: MSCDC PGMR: BLODGETT * * FUNCTION: Creates a filetype=stf803t SAS data set using either a * * stf803 or stf803x input set. The stf803t set is ready to be * * merged with a stf903x data set without having to rename any vars* * STATUS: NOT READY BY A LONG SHOT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! * NOTES: * ********************************************************************/ %GLOBAL REVDATE; %LET REVDATE=12NOV94; *<----DATE OF LAST REVISION; /********************************************************************/ /* BEGIN MACRO DEFINITION */ /********************************************************************/ %MACRO stf803t ( intype=stf803, /* default is that you have a stf803 type data set for input (i.e. t1i1,..). Other possible value is stf803x or you can just code intype=x. */ typein=, /* alias for intype */ setin=_last_, /* input sas data set */ setout=stf803t, /* name of output data set */ slctedit=, /* name of exit macro invoked to filter/edit input data set. Executes before any new vars created. */ debug=0); /* END */ %PUT %STR( ); %PUT ***************************************************************; %put * stf803t macro Rev &revdate begin execution *; %put * Missouri State Census Data Center *; %PUT ***************************************************************; %PUT %STR( ); %if %quote(&intype) ne %then %let typein=%quote(&intype); %if %quote(&typein)=x %then %let typein=stf803x; data &setout; set &setin end=lastobs; %if &slctedit ne %then %&slctedit; %MEND stf803t;