To use this program, follow these steps:
* Package ID: knb-lter-vcr.147.2;
* Cataloging System:VCR;
* Data set title: Keywords and Terms from the LTER Network;
* Data set creator: John Porter - ;
* Data set creator: Duane Costa - ;
* Data set creator: John Porter - ;
* Metadata Provider: - Virginia Coast Reserve Long-Term Ecological Research Project ;
* Contact: John Porter - - jhp7e@virginia.edu;
* Contact: - Information manager - Virginia Coast Reserve Long-Term Ecological Research Project - jporter@lternet.edu;
Title1 ' Keywords and Terms from the LTER Network' ;
/* You should replace 'PUT-LOCAL-PATH-TO-DATA-FILE-HERE' (below) with the appropriate path;
to your data file (e.g., c:\mydata\datafile.txt). If you want to create a permanent SAS dataset, replace the WORK. specification
in the DATA statement (and SET statement in section for range checking) with a valid SAS Library reference. */
DATA WORK.data1;
%let _EFIERR_ = 0; /* set the ERROR detection macro variable */
infile 'PUT-LOCAL-PATH-TO-DATA-FILE-HERE' delimiter="\t"
TRUNCOVER DSD lrecl=32767 ;
input TERM
DTOC_NSITES
DTOC_NU
EA_SITES
EA_USES
EK_SITES
EK_USES
ET_SITES
ET_USES
PUB_NSITES
PUB_NUSES
NLISTS
MAXSITES
MINSITES
MAXUSES
MINUSES
ISTERM
;
if _ERROR_ then call symputx('_EFIERR_',1); /* set ERROR detection macro variable */
LABEL TERM ='Word or Term-' ;
LABEL DTOC_NSITES ='Number of sites using in DTOC-none' ;
LABEL DTOC_NU ='Number of uses in DTOC-none' ;
LABEL EA_SITES ='Number of sites using in EML Attributes-none' ;
LABEL EA_USES ='Number of uses in EML Attributes-none' ;
LABEL EK_SITES ='Number of sites using in EML Keyword-none' ;
LABEL EK_USES ='Number of uses in EML Keywords-none' ;
LABEL ET_SITES ='Number of sites using in EML Titles-none' ;
LABEL ET_USES ='Number of uses in EML Titles-none' ;
LABEL PUB_NSITES ='Number of sites using in publication titles-none' ;
LABEL PUB_NUSES ='Number of uses in publication titles-none' ;
LABEL NLISTS ='Number of lists word or term occurs in-none' ;
LABEL MAXSITES ='Maximum number of sites within a list where a word was used-none' ;
LABEL MINSITES ='Minimum number of sites within a list where a word was used-none' ;
LABEL MAXUSES ='Maximum number of uses within a list where a word was used-none' ;
LABEL MINUSES ='Minimum number of uses within a list where a word was used-none' ;
LABEL ISTERM ='Is it a multi-word term?-' ;
/* Codes for ISTERM are:
'0' 'No, only a single word'
'1' 'Yes, it is a multi-word term' .
*/
run;
/* The analyses below are basic descriptions of the variables.
After testing, they should be replaced. */
PROC FREQ;
TABLES TERM;
PROC FREQ;
TABLES ISTERM;
PROC MEANS;
VAR DTOC_NSITES ;
PROC MEANS;
VAR DTOC_NU ;
PROC MEANS;
VAR EA_SITES ;
PROC MEANS;
VAR EA_USES ;
PROC MEANS;
VAR EK_SITES ;
PROC MEANS;
VAR EK_USES ;
PROC MEANS;
VAR ET_SITES ;
PROC MEANS;
VAR ET_USES ;
PROC MEANS;
VAR PUB_NSITES ;
PROC MEANS;
VAR PUB_NUSES ;
PROC MEANS;
VAR NLISTS ;
PROC MEANS;
VAR MAXSITES ;
PROC MEANS;
VAR MINSITES ;
PROC MEANS;
VAR MAXUSES ;
PROC MEANS;
VAR MINUSES ;
RUN;
TITLE2 'Observations with one or more out of range values';
DATA bad1;
SET WORK.data1;
* List cases where data is out of range;
* Note: if no out of range cases are detected, the variable names will be listed, but no actual cases;
LENGTH BADVARS $ 255;
IF (BADVARS NE '');
PROC PRINT data=bad1;
RUN;