To use this program, follow these steps:
  1. Open an SPSS syntax 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 SPSS
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 SPSS program will have errors or be incomplete.

Comment Package ID: knb-lter-vcr.148.5 Cataloging System:VCR.
Comment Data set title: Surface Elevation  Data for the Virginia Coast Reserve.
Comment  Data set creator: Dr. Linda Blum -  
Comment  Data set creator: Dr. Robert Christian -  
Comment  Data set creator:  Mark Brinson -  
Comment  Data set creator: Ms. Patricia Willis -  
Comment  Metadata Provider:    - Virginia Coast Reserve Long-Term Ecological Research Project 
Comment  Contact: Dr. Linda Blum -    - lkb2e@virginia.edu
Comment  Contact:    - Information manager - Virginia Coast Reserve Long-Term Ecological Research Project   - jporter@lternet.edu
        
        
Title ' Surface Elevation  Data for the Virginia Coast Reserve' . 

Comment You should replace 'PUT-LOCAL-PATH-TO-DATA-FILE-HERE'  (below) with the appropriate path.   
Comment    to your data file (e.g., c:\mydata\datafile.txt).                 
GET DATA  /TYPE=TXT/
               / FILE="PUT-LOCAL-PATH-TO-DATA-FILE-HERE" 
                        /ARRANGEMENT=Delimited 
                              /DELIMITERS="\t"  
                                    /QUALIFIER='"' 
                    /VARIABLES= 
                    DATE  A  SITE  A  LEVEL  F  DATATYPE  A  COMMENTS  A  .
execute.                
                

                
VAR LABELS   DATE 'Date of measurement- ' .
VAR LABELS   SITE 'Site Identifier- ' .
VAR LABELS   LEVEL 'Change in elevation of sediment surface from initial measurement- cm' .
VAR LABELS   DATATYPE 'Method of Measurement- ' .
VAR LABELS   COMMENTS 'Comments on data collection- ' .
VALUE LABELS   DATATYPE 
                                  'MH'  'Marker Horizon'  
                                  'RSET'  'Root Sediment Elevation Table'  
                                  'SET'  'Sediment Elevation Table'  .
                
                
comment The analyses below are basic descriptions of the variables. After testing, they should be replaced.                 
        
                 
Frequencies   variables=DATE /order=analysis.  
Frequencies   variables=SITE /order=analysis.  
Frequencies   variables=DATATYPE /order=analysis.  
Frequencies   variables=COMMENTS /order=analysis.  
Descriptives   variables=LEVEL . 
Execute. 
                
                  
COMMENT List cases where data is out of range.  
COMMENT Note: if no out of range cases are detected, the variable names will be listed, but no actual cases.  
TEMPORARY .               
STRING BADVARS (A255).
SELECT IF (BADVARS NE ""). 
LIST VARIABLES=ALL.
Execute.