To use this program, follow these steps:
  1. Open a SAS editor window (or another text editor)
  2. COPY the program below and PASTE it into the editor window
  3. Edit the program so that the FILE= specification points to where the data file is stored on your system
  4. Save the modified program file and RUN it using SAS
The program is below this line. If no program is listed, the URL to the EML document may be in error. If the EML file does not include all the information needed, the SAS program will have errors or be incomplete.

* 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;