#!/bin/csh -f
#---------------------------------------------------------------------------
#
# Name: owl_memdump
#
# Purpose: runs the DV,GC tasks for memory dumps under OWL
#
# Args: pathname ($1)    = name of path file to process under
#       dataset  ($2)    = name of dataset to process
#       dv_resource ($3) = name of the Data Validation resource file
#       gc_resource ($4) = name of the Generic Conversion resource file
#
# History:
# 07/10/12  71706  MSwam         first version
#---------------------------------------------------------------------------
#
set PATHNAME = $1
set DATASET = $2
set DV_RESOURCE = $3
set GC_RESOURCE = $4
echo "PATHNAME=$1, DATASET=$2, DV_RESOURCE=$3, GC_RESOURCE=$4"
#
dv_DataValidation -r ${DV_RESOURCE} -p ${PATHNAME} ${DATASET}
if ($status != 0) then
   echo "DV FAILED (exiting)."
   exit 1
endif
#
gc_GenericConversion -r ${GC_RESOURCE} -p ${PATHNAME} ${DATASET}
if ($status != 0) then
   echo "GC FAILED (exiting)."
   exit 1
endif
exit 0
