To use this program, follow these steps:
* Package ID: knb-lter-vcr.148.5;
* Cataloging System:VCR;
* Data set title: Surface Elevation Data for the Virginia Coast Reserve;
* Data set creator: Dr. Linda Blum - ;
* Data set creator: Dr. Robert Christian - ;
* Data set creator: Mark Brinson - ;
* Data set creator: Ms. Patricia Willis - ;
* Metadata Provider: - Virginia Coast Reserve Long-Term Ecological Research Project ;
* Contact: Dr. Linda Blum - - lkb2e@virginia.edu;
* Contact: - Information manager - Virginia Coast Reserve Long-Term Ecological Research Project - jporter@lternet.edu;
Title1 ' Surface Elevation Data for the Virginia Coast Reserve' ;
/* 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 DATE
SITE
LEVEL
DATATYPE
COMMENTS
;
if _ERROR_ then call symputx('_EFIERR_',1); /* set ERROR detection macro variable */
LABEL DATE ='Date of measurement-' ;
LABEL SITE ='Site Identifier-' ;
LABEL LEVEL ='Change in elevation of sediment surface from initial measurement-cm' ;
LABEL DATATYPE ='Method of Measurement-' ;
LABEL COMMENTS ='Comments on data collection-' ;
/* Codes for DATATYPE are:
'MH' 'Marker Horizon'
'RSET' 'Root Sediment Elevation Table'
'SET' 'Sediment Elevation Table' .
*/
run;
/* The analyses below are basic descriptions of the variables.
After testing, they should be replaced. */
PROC FREQ;
TABLES DATE;
PROC FREQ;
TABLES SITE;
PROC FREQ;
TABLES DATATYPE;
PROC FREQ;
TABLES COMMENTS;
PROC MEANS;
VAR LEVEL ;
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;