#!/bin/ksh
case $1 in
  create)
    filename=`ftval PRIMER.ACCT.KSDS MASTERCAT 4 2>$DEVNULL`
    if [ "none$filename" = "none " ]
    then
      crtflm PRIMER.ACCT.KSDS ACCTFIL -t VS
    fi
    ;;
  *)
    filename=`ftval PRIMER.ACCT.KSDS MASTERCAT 4 2>$DEVNULL`
    if [ ! "none$filename" = "none " ]
    then
      crtflm -D PRIMER.ACCT.KSDS MASTERCAT
    fi
    ;;
esac
