To use this program, follow these steps:
* Package ID: knb-lter-vcr.113.3;
* Cataloging System:VCR;
* Data set title: 1992-93 Parramore Permanent Plot Baseline Data : Plot Coordinates;
* Data set creator: David Richardson - ;
* Data set creator: John Porter - ;
* Data set creator: Dr. Hank Shugart - ;
* Metadata Provider: - Virginia Coast Reserve Long-Term Ecological Research Project ;
* Contact: David Richardson - - dlr2n@virginia.edu;
* Contact: David Richardson - - dlr2n@virginia.edu;
* Contact: - Information manager - Virginia Coast Reserve Long-Term Ecological Research Project - jporter@lternet.edu;
Title1 ' 1992-93 Parramore Permanent Plot Baseline Data : Plot Coordinates' ;
/* 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'
TRUNCOVER;
input
@1 PLOT_N 10.
@11 UTMX
@29 UTMY $ 18. ;
if _ERROR_ then call symputx('_EFIERR_',1); /* set ERROR detection macro variable */
LABEL PLOT_N ='Plot Number-none' ;
LABEL UTMX ='UTM X coordinate, NAD27-none' ;
LABEL UTMY ='UTM Y coordinate, NAD27-' ;
run;
/* The analyses below are basic descriptions of the variables.
After testing, they should be replaced. */
PROC FREQ;
TABLES UTMY;
PROC MEANS;
VAR PLOT_N ;
PROC MEANS;
VAR UTMX ;
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;