File:  [Local Repository] / jma-receipt-kk / 30wakayama / scripts / kentan / seikyu3009.sh
Revision 1.1: download - view: text, annotated - select for diffs
Fri May 21 02:39:37 2010 UTC (9 years, 1 month ago) by yoshi
Branches: MAIN
CVS tags: HEAD
和歌山地方公費PG追加

#!/bin/bash

. /etc/jma-receipt/jma-receipt.env

PREFNAME=wakayama
PROGRAMID=SEIKYU3009
LOG_FILE="/var/log/jma-receipt/${14}seikyu3009"
RENNUM=0
-------------------------------------------#
#    地方公費請求書 老障
#        $1-${11}
#              印刷DB用定固定引数(CPORCSRTLNK.INC)
#        ${12} ジョブID
#        ${13} シェルID
#        ${14} 医療機関ID 
#        ${15} エラーファイル名 
#        ${16} 処理区分(0:一括、1:個別)
#-------------------------------------------#
#
##      エラーファイル削除
	echo $#
	echo "echo " ${15}
        if  [ -e ${15} ]; then
            rm  ${15}
        fi

        cd  ${ORCA_DIR}

            RENNUM=$(expr ${RENNUM} + 1) 
            ${DBSTUB} -record ${RECORDDIR} -dir ${LDDEFDIR}/directory -bddir ${LDDEFDIR} -db orca -bd $PREFNAME $PROGRAMID -parameter $1,$2,$3,$RENNUM,$5,$6,$7,$8,$9,${10},${11},${12},${13},${14},${16} > ${LOG_FILE}.log
            if  [ -e ${15} ]; then
                exit
            fi

	    ${DBSTUB} -record ${RECORDDIR} -dir ${LDDEFDIR}/directory -bddir ${LDDEFDIR} -db orca -bd orcabt ORCBJOB -parameter JBE${12}${13},${14}

        exit

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>