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.27.4 Cataloging System:VCR.
Comment Data set title: Temporal and spatial distribution of microbial biomass, growth and activity. 1988-90..
Comment  Data set creator: Dr. Aaron Mills -  
Comment  Data set creator: Dr. Aaron Mills -  
Comment  Metadata Provider:    - Virginia Coast Reserve Long-Term Ecological Research Project 
Comment  Contact: Dr. Aaron Mills -    - amills@virginia.edu
Comment  Contact: Dr. Aaron Mills -    - amills@virginia.edu
Comment  Contact:    - Information manager - Virginia Coast Reserve Long-Term Ecological Research Project   - jporter@lternet.edu
        
        
Title ' Temporal and spatial distribution of microbial biomass, growth and activity. 1988-90.' . 

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=Fixed 
                    /VARIABLES= 
                    YEAR 2-3 F2.0 MONTH 4-5 F2.0 DAY 6-7 F2.0 SITEID 9-11 A  WATSAMP 25-25 F1.0 WATAO 27-34 F  SEDSAMP 43-43 F1.0 SEDAO 45-52 F  .
execute.                
                

                
MISSING VALUES  WATAO('0').
MISSING VALUES  SEDAO('0').
VAR LABELS   YEAR 'Year- YY' .
VAR LABELS   MONTH 'Month- MM' .
VAR LABELS   DAY 'Day- DD' .
VAR LABELS   SITEID 'CODE FOR STATION NAME IMPLICIT LOCATION- ' .
VAR LABELS   WATSAMP 'ID NUMBER OF REPLICATE WATER SAMPLES COLLECTED IN STATION- none' .
VAR LABELS   WATAO 'NUMBER OF BACTERIAL CELLS PER ML WATER- CELLS/ML' .
VAR LABELS   SEDSAMP 'ID NUMBER OF REPLICATE SEDIMENT SAMPLE- none' .
VAR LABELS   SEDAO 'NUMBER OF BACTERIAL CELLS/ML WET SEDIMENT- CELLS/ML' .
                
                
comment The analyses below are basic descriptions of the variables. After testing, they should be replaced.                 
        
                 
Frequencies   variables=SITEID /order=analysis.  
Descriptives   variables=YEAR .  
Descriptives   variables=MONTH .  
Descriptives   variables=DAY .  
Descriptives   variables=WATSAMP .  
Descriptives   variables=WATAO .  
Descriptives   variables=SEDSAMP .  
Descriptives   variables=SEDAO . 
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).
IF ((NOT MISSING(YEAR)) AND (YEAR LT 1)) BADVARS=CONCAT(RTRIM(BADVARS)," ", "YEAR","-min").
IF ((NOT MISSING(YEAR)) AND (YEAR GT 99)) BADVARS=CONCAT(RTRIM(BADVARS)," ", "YEAR","-max").
IF ((NOT MISSING(MONTH)) AND (MONTH LT 1)) BADVARS=CONCAT(RTRIM(BADVARS)," ", "MONTH","-min").
IF ((NOT MISSING(MONTH)) AND (MONTH GT 12)) BADVARS=CONCAT(RTRIM(BADVARS)," ", "MONTH","-max").
IF ((NOT MISSING(DAY)) AND (DAY LT 1)) BADVARS=CONCAT(RTRIM(BADVARS)," ", "DAY","-min").
IF ((NOT MISSING(DAY)) AND (DAY GT 31)) BADVARS=CONCAT(RTRIM(BADVARS)," ", "DAY","-max").
IF ((NOT MISSING(WATSAMP)) AND (WATSAMP LT 1)) BADVARS=CONCAT(RTRIM(BADVARS)," ", "WATSAMP","-min").
IF ((NOT MISSING(WATSAMP)) AND (WATSAMP GT 3)) BADVARS=CONCAT(RTRIM(BADVARS)," ", "WATSAMP","-max").
IF ((NOT MISSING(WATAO)) AND (WATAO LT 10000)) BADVARS=CONCAT(RTRIM(BADVARS)," ", "WATAO","-min").
IF ((NOT MISSING(WATAO)) AND (WATAO GT 10000000000)) BADVARS=CONCAT(RTRIM(BADVARS)," ", "WATAO","-max").
IF ((NOT MISSING(SEDSAMP)) AND (SEDSAMP LT 1)) BADVARS=CONCAT(RTRIM(BADVARS)," ", "SEDSAMP","-min").
IF ((NOT MISSING(SEDSAMP)) AND (SEDSAMP GT 3)) BADVARS=CONCAT(RTRIM(BADVARS)," ", "SEDSAMP","-max").
IF ((NOT MISSING(SEDAO)) AND (SEDAO LT 10000000)) BADVARS=CONCAT(RTRIM(BADVARS)," ", "SEDAO","-min").
IF ((NOT MISSING(SEDAO)) AND (SEDAO GT 10000000000)) BADVARS=CONCAT(RTRIM(BADVARS)," ", "SEDAO","-max").
SELECT IF (BADVARS NE ""). 
LIST VARIABLES=ALL.
Execute.