File:  [Local Repository] / jma-receipt-kk / 17ishikawa / scripts / kentan / seikyu1707.sh
Revision 1.4: download - view: text, annotated - select for diffs
Wed Nov 7 06:55:15 2012 UTC (6 years, 11 months ago) by yoshi
Branches: MAIN
CVS tags: jma-500, jma-480, jma-470, HEAD
${LDDEFDIR}/directory -> ${LDDIRECTORY}

#!/bin/bash
. @jma-receipt-env@

PREFNAME=ishikawa
PROGRAMID=SEIKYU1707
LOG_FILE="/var/log/jma-receipt/${14}seikyu1707"
RENNUM=0
#-------------------------------------------#
#    児童支払明細書FD作成(石川)
#        $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 -dir $LDDIRECTORY -bd $PREFNAME $PROGRAMID -parameter $1,$2,$3,$RENNUM,$5,$6,$7,$8,$9,${10},${11},${12},${13},${14},${16},${15} > ${LOG_FILE}.log 2>&1
            if  [ -e ${15} ]; then
                exit
            fi

        $DBSTUB  -dir $LDDIRECTORY -bd orcabt ORCBJOB -parameter JBE${12}${13},${14}

        exit

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