# #!/usr/bin/sh

# . /12a2/.profile
# . /12a2/psoft/ucisprod/psconfig.sh
. /12a2/group1/custom_apps/splall_s5_v1_called_directory_sourcing.sh
# ***********************************************************************************
#  Platform:      Unix - AIX                                                        *
#  Printstream:   Postscript                                                        *
#  Application:   SPL/PeopleSoft ERM Field Order Print                              *
# ==================================================================================*
#  Master Command File called to execute integrated Sort, DOC1 Generate and PCE,    *
#  and Print Files for SPL/PeopleSoft ERM Field Order Print                         *
# ==================================================================================*

# do not change the following line
SPLBILL_CALLED_SWITCH=Y;                                                                export SPLBILL_CALLED_SWITCH

# ***********************************************************************************
#    Call "Sourcing" script to establish directories containing software            *
#    executables, application files, output files, extract files, and databases     *
# ==================================================================================*
#    WARNING:  the file splall_s5_v1_called_directory_sourcing.sh must be in the    *
#              current directory from which this script is being launched           *
# ***********************************************************************************

#. ./splall_s5_v1_called_directory_sourcing.sh

# ***********************************************************************************
#    The following switches which enable certain steps to be bypassed               *
# ==================================================================================*
#      PRINTFILES                                                                   *
#              - May be:  Y or N                                                    *
#              - "N" prevents files from being copied into InfoPrint Hotfolders     *
#      RUN_TYPE                                                                     *
#              - Indicates that this execution is for batch billing rather than     *
#                online billing;                                                    *
#              - Acceptable values are BATCH and ONLINE; use BATCH for Batch Bill   *
#                Print (ONLINE is for CIS-invoked bill-on-demand)                   *
#              - value of RUN_TYPE=BATCH enables all steps within the called Unix   *
#                shell script to be run                                             *
# ***********************************************************************************

PRINTFILES=N;                                                                          export PRINTFILES
RUN_TYPE=BATCH;                                                                        export RUN_TYPE
CODE1=Y;                                                                               export CODE1
MSTREAM=Y;                                                                             export MSTREAM
DELETEFILES=N;                                                                         export DELETEFILES
SAVEFILES=N;                                                                           export SAVEFILES
PSTREAM=PostScript                                                                     export PSTREAM
PRES=72                                                                                export PRES

# ***********************************************************************************
#    The symbols identify application resource files for DOC1.  These values of the *
#    file names should not be changed unless the files are renamed or replaced.     *
# ==================================================================================*
#   L O G F I L E                                                                   *
#   =============                                                                   *
#      LOGFILE                                                                      *
#              - Name of a log file to be created by this process                   *
#              - Previous version of file will be replaced                          *
#              - File will be written to $PRODPATH directory                        *
#              - Sample coding:  LOGFILE=cis-fop.log                                *
#                                                                                   *
#    D O C 1   R E S O U R C E   F I L E S                                          *
#    =====================================                                          *
#      GEN_OPS                                                                      *
#              - Names DOC1 Generate Initialization file for Format Field Orders    *
#              - Sample value: GEN_OPS=splfop-s5-v1.ops                             *
#              - File must be present in the $D1APPATH directory                    *
#      GEN_HIP                                                                      *
#              - Name of DOC1 Generate Application Rules (.HIP)                     *
#              - Sample value: GEN_HIP=splfop-s5-v1                                 *
#              - File must be present in the $D1APPATH directory                    *
#      GEN_ETS                                                                      *
#              - Names Look-Up file                                                 *
#              - Sample value: GEN_ETS=splfop-s5-v1.ets                             *
#              - File must be present in the $D1APPATH directory                    *
#      FOP_PCE_INI                                                                  *
#              - Names DOC1PCE Initialization file                                  *
#              - Sample value: FOP_PCE_INI=splfop-v2-pce.ini                        *
#              - File must be present in the $D1APPATH directory                    *
#      FOP_PCE_CTL                                                                  *
#              - Names DOC1PCE Rules file for Post Process step                     *
#              - Sample value: POST_PCE_CTL=splfop-s5-v1.ctl                        *
#              - File must be present in the $D1APPATH directory                    *
#                                                                                   *
#    E R M   F I E L D   O R D E R   P R I N T   F I L E                            *
#    ===================================================                            *
#      ERM_UNSORTED_EXTRACT                                                         *
#              - Names ERM Field Order Print Extract                                *
#              - Typical coding ERM_UNSORTED_EXTRACT=fopxtr01.dat                   *
# ***********************************************************************************

LOGFILE=erm_bill.log;                                                                  export LOGFILE

GEN_OPS=splbill_s5_v1_doc1gen.ops;                                                     export GEN_OPS
GEN_HIP=splbill_s5_v1_doc1gen_postscript.hip;                                          export GEN_HIP
GEN_ETS=splbill_s5_v1_doc1gen.ets;                                                     export GEN_ETS
GEN_CNTL=splbill_s5_v1_doc1gen_control_postscript.ets;                                 export GEN_CNTL
FRGN_PCE_INI=splbill_s5_v1_frgnsplt_pce.ini;                                           export FRGN_PCE_INI
FRGN_PCE_CTL=splbill_s5_v1_frgnsplt_pce.ctl;                                           export FRGN_PCE_CTL
CHADR_PCE_INI=splbill_s5_v1_code1chng_pce.ini;                                         export CHADR_PCE_INI
CHADR_PCE_CTL=splbill_s5_v1_code1chng_pce.ctl;                                         export CHADR_PCE_CTL
SPCL_PCE_INI=splbill_s5_v1_spcsplt_pce.ini;                                            export SPCL_PCE_INI
SPCL_PCE_CTL=splbill_s5_v1_spcsplt_pce.ctl;                                            export SPCL_PCE_CTL
CPRT_PCE_INI=splbill_s5_v1_createprt_pce.ini;                                          export CPRT_PCE_INI
CPRT_PCE_CTL=splbill_s5_v1_createprt_pce.ctl;                                          export CPRT_PCE_CTL
MAXAUTO=12;                                                                            export MAXAUTO 

C1PRM=splbill_s5_v1_code1.prm;                                                         export C1PRM
MSPRM=splbill_s5_v1_mstream.prm;                                                       export MSPRM

ERM_UNSORTED_EXTRACT=BPXTR02.DAT;                                                      export ERM_UNSORTED_EXTRACT
ERM_UNSORTED_EXTRACT=bill-dsc-data.dat;                                                export ERM_UNSORTED_EXTRACT

rm -f $PRODPATH/$LOGFILE

echo "Forrest Special Test"                                                            >> $PRODPATH/$LOGFILE

$D1APPATH/splbill_s5_v1_called_jobsteps.sh
