!--------------------------------------------------------------------
!
!  MTLCPY 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
! -------- ------  --------- --------------------------------------
! 11/02/99 39733   Ken S.    Created
! 10/24/01 44684   Goldst    Standardized OPUS PDR pipeline version
! 01/30/02 45016   Goldst    Corrected OK_TO_UPDATE_DATABASE
! 07/10/02 46101   J.Baum    inserted .DANGLE for file status
! 08/09/02 46352   Goldst    Add OSF_PROCESSING keyword for cleandata
! 06/24/04 51412   Sherbert  For PR 50437 Remove DISPLAY_ORDER
! 01/12/05 48735   J.Baum    Remove EXTENSION, reorder and comment
!---------------------------------------------------------------------

PROCESS_NAME = mtlcpy
TASK         = <pdrcpy -p $PATH_FILE -r mtlcpy>
DESCRIPTION  = 'MTL product notification message poller'
SYSTEM       = PDR
CLASS        = mtl

OK_TO_UPDATE_DATABASE = OK_TO_UPDATE_DATABASE ! Determined by path file

INTERNAL_POLLING_PROCESS  =  TRUE   

FILE_RANK       = 1             ! First Trigger
FILE_OBJECT1    = *.mtl_trans   ! File specification for searches
FILE_DIRECTORY1 = PDR_PASS_DIR  ! Polling directory

!File status
FILE_PROCESSING.DANGLE = _proc      ! Extension addition during processing
FILE_SUCCESS.DANGLE    = _done      ! Extension addition if normal processing
FILE_ERROR.DANGLE      = _bad       ! Extension addition if error
FILE_DUPLICATE.DANGLE  = _duplicate ! Extension addition if duplicate

!OSF status 
PAS_CREATE.DR    = p           !PAS file procesing.
PAS_COMPLETE.DR  = c           !PAS file completed
PAS_COMPLETE.RQ  = w           !Trigger for request process
PAS_DUPLICATE.DR = d           !PAS file duplicate detected.
PAS_FAIL.DR      = e           !PAS file processing failed.

OSF_PROCESSING.DR = p          !Needed for cleandata processing

POLLING_TIME  = 10             ! Wait (seconds) before polling for next 
INPATH        = PDR_PASS_DIR   ! location of pass data files.
OUTPATH       = PDR_MTL_DIR    ! destination for MTL files
MINBLOCKS     = 50000          ! blocks required on output disk

! renaming keywords
RENAME        = Y              ! Rename PASS file.
PREFIX        = v              ! new file prefix

TIMES         = Y              ! Update files_times relation.

! forces values from path to be used

 ENV.OPUS_DB = OPUS_DB
 ENV.DSQUERY = DSQUERY
