!--------------------------------------------------------------------
!
!      CP_COS RESOURCE FILE
!
!
!      This file is used to construct the trigger, error, and success status
!      fields in the observation status file.
!
!
!--------------------------------------------------------------------
!                          REVISION HISTORY
!--------------------------------------------------------------------
!             PR
!    DATE   NUMBER  User  Description
!  -------- ------  ------ -------------------------------------
!  12/19/01 44438   Rose   Initial version
!  10/10/02 46769   Rose   Copy and rename the STIM files too.
!  11/11/02 46769   Rose   Stim files have .osc as extension
!  12/03/02 47036   Rose   put the CSIx back on the p_dset name
!  06/09/03 47075   Rose   Stim files are named *.lab
!  02/15/07 57062   MSwam  Run COS-specific script
!
!--------------------------------------------------------------------

PROCESS_NAME = cp_cos		! Short name for process id
TASK = <xpoll -p $PATH_FILE -r cp_costv>
COMMAND = copyaux_noslash.csh    
CLASS = tv
DESCRIPTION = 'COS Copy AUX Files'
SYSTEM = OPUS
INSTRUMENT  = COS

OSF_RANK = 1			! First Trigger
OSF_TRIGGER1.CP = w		! Need a 'Wait' flag in Copy Aux Files
OSF_TRIGGER1.DATA_ID = cos	! Also need the Data_id set to COS
OSF_TRIGGER2.CP = w		! Need a 'Wait' flag in Copy Aux Files
OSF_TRIGGER2.DATA_ID = cdm	! Also need the Data_id set to COS Dump

OSF_PROCESSING.CP  = p		! Set the processing flag to 'Processing'

XPOLL_STATE.00 = OSF_NORMAL     ! Normal: Completed successfully
OSF_NORMAL.CP = c		! Normal: Completed Copy Aux Files
OSF_NORMAL.GC = w		! Normal: Waiting for Generic Conversion

XPOLL_STATE.01 = OSF_ERROR      ! Error during processing  
OSF_ERROR.CP  = e		! Error:  Set the trouble flag
OSF_HALT1.CP  = h		! Set the Halt flag	    

XPOLL_ERROR.CP = x              ! Set osf to this if exit state is undefined.

POLLING_TIME  = 10		! Wait (seconds) before polling for next 
ENV.INPATH    = POD_ARCH_DIR    ! Directory where the input files are found
ENV.OUTPATH   = COS_SIS_DIR	! Output directory for the COS
MINBLOCKS     = 50000		! blocks required on output disk

! forces values from path to be used

 ENV.OPUS_DB = OPUS_DB
 ENV.SPSS_DB = SPSS_DB
 ENV.DSQUERY = DSQUERY
 ENV.LOGFILE_EXTN = .com
 ENV.STIMFILE_EXTN = .lab
 ENV.CSINAME = csil
