CPDUPSMF
member from the SAS IT Resource Management CPMISC
PDS to the MXGUSER.SRCLIB PDS. Keep the same
member name.
CPMISC
PDS. Files with similar names are in the misc
directory on UNIX and the sasmisc
directory on Windows.
%RMDUPCHK(SOURCE=SMF, IDVAR=SYSTEM, TIMESTMP=SMFTIME, ENDFILE=ENDOFSMF, INT=00:29, SYSTEMS=3, RANGES=20, KEEP=9 );
Discard
.
SASHELP.ITMS.<adapter-name>_RMDUPCHK.SOURCE
.
PROC CATALOG CAT=SASHELP.ITMS; COPY OUT=staging-library.adapter-name; SELECT adapter-name_RMDUPCHK.SOURCE; RUN; QUIT; PROC CATALOG CAT=staging-library.adapter-name; CHANGE adapter-name_RMDUPCHK.SOURCE=RMDUPCHK.SOURCE; RUN; QUIT;
NOTE staging-library.adapter-name.RMDUPCHK.SOURCE
%RMDUPCHK (SOURCE=SAP, IDVAR=SYSHOST, TIMESTMP=DATETIME, ENDFILE=DUPEND, INT=00:20, RANGES=10, SYSTEMS=10, KEEP=52 );
%RMDUPCHK(SOURCE=DCO,IDVAR=DCUSYSID,TIMESTMP=DCUTMSTP, ENDFILE=EOF,INT=25:00,SYSTEMS=2, RANGES=3,KEEP=9, FORCE=NO,TERM=NO );The following list describes the parameters and values that are used in this example:
%%RMDUPDSN(SOURCE=xxx)
where xxx is a three-character identifier for your data source or adapter.
You can choose any identifier as long as it is not one of the identifiers
that is on the list of values for the SOURCE= parameter in the %RMDUPCHK
macro.
%INCLUDE '<codeFocus>full-path-directory</codeFocus>/gen_xxx.sas';Remember that directory names and filenames are case sensitive on UNIX.
%%RMDUPDSN(SOURCE=xxx)
where xxx is the three-character identifier that you chose in the preceding
steps. Note that the call has an unusual form: there are two leading
percent signs and no trailing semicolon. For example, for IBM DCOLLECT,
you might copy the following macro definition: MACRO _WDCODSN DCOLDSET%When you insert the call, the copy will look like this:
MACRO _WDCODSN %%RMDUPDSN(SOURCE=DCO) DCOLDSET %
%%INCLUDE 'full-path-directory/gen_xxx.sas';Remember that directory names and filenames are case sensitive on UNIX.
MACRO _EDCODSN %%INCLUDE SOURCLIB(EXDCODSN); %
%RMDUPCHK( SOURCE=ABC, IDVAR=SYSTEMID, TIMESTMP=DTIME, ENDFILE=LAST, INT=00:10, SYSTEMS=4, RANGES=4, KEEP=53) ;
%RMDUPDSN(SOURCE=xxx)In this form, xxx is the three-character source name that you chose in the preceding steps for this data source.
DATA
and the semicolon character (;
)
in the DATA statement that initiates the DATA step that reads the
raw data and writes the staged data. For example, here is a DATA
step that reads raw data and writes the staged data to GENLIB.STAGED: DATA GENLIB.STAGED; ... OUTPUT GENLIB.STAGED;You would change that call as follows:
DATA GENLIB.STAGED %rmdupdsn(source=xxx); ... OUTPUT GENLIB.STAGED;
OUTPUT ;Instead, use the OUTPUT statement in this form:
OUTPUT libref.data-set-or-view-name;
DAY
and xxxCNTRL
. These
control data sets determine the raw data observations that should
be staged. If the control data sets do not exist when the staging
job is executed, then all of the data in the input database is staged.