The complete AIP Intra-day batch processing is comprised of the following:
AIP RPAS Intra-day batch processing
AIP Oracle Intra-day batch processing
Because the AIP solution resides on two platforms and needs to exchange information across both the platforms, the batches are executed on both the platforms. The intraday_batch.sh script is provided with the AIP installation, and it is used to run the entire RPAS Intra-day batch process from a UNIX scheduler. The scripts called by intraday_batch.sh may have multi-threaded process calls.
For more details on AIP Oracle Intra-day batch processing, refer to Chapter 6, "AIP Java/Oracle Batch Process Flow" and Chapter 7, "AIP Java/Oracle Daily Batch Process Details".
The AIP RPAS Intra-day batch script, intraday_batch.sh, accepts a number of arguments that allow more control over what portion of the batch scripts are run. Step names have been defined, which may also be passed into the script as arguments that define exactly which steps and corresponding scripts should be run.
Table 11-1 provides descriptions of the intraday_batch.sh arguments.
Table 11-1 Arguments for intraday_batch.sh
Argument | Description |
---|---|
-w |
Wave number. This flag is required for all Intra-day batch run. |
-s |
Indicates that a starting step is defined. The step at which the batch should start must follow this flag. This flag can be used with all the other flags; however, only one batch step can follow the flag. This flag must be used along with the -e flag and its associated argument. |
-e |
Indicates that an ending step is defined. The step after which the batch should end must follow this flag. This flag can be used with all the other flags; however, only one batch step can follow the flag. This flag must be used along with the -s flag and its associated parameter. |
The following is a list of valid steps that can be used with the -s and -e flags. These steps can also be passed as parameters to the intraday_batch.sh script, in the form of a list of steps (not flagged with -s and -e).
Table 11-2 describes the steps in the order that intraday_batch.sh executes them.
Table 11-2 Execution Sequence of the AIP RPAS Intra-day Batch Scripts
Step Name | Description of Action |
---|---|
prep_intraday_inventory_data |
This script calls _check_for_required_files.sh and process_intraday_inventory_data.sh. It first verifies the existence of all the required files as specified by the intraday_inventory_data.config file and then calls process_intraday_inventory_data.sh. |
load_intraday_inventory_data |
Preprocesses and loads all the Intra-day measures as specified by the intraday_inventory_data.config file. |
run_intraday_replenishment_global |
Runs Intra-day replenishment and reconciliation process at the global domain level. |
prepare_intraday_local_domain_list |
Creates a list of local domains to lock against during the subsequent, applicable Intra-day batch steps. |
run_intraday_replenishment_local |
Runs Intra-day replenishment and reconciliation at the local domain level. |
export_intraday_replenishment_data |
Creates the Intra-day replenishment plan extracts at the local domain level. |
send_intraday_replenishment_data_to_om |
Concatenates .dat files from an AIP domain's local domain output directories whose domains are specified in the id_local_domain.list into combined export files that are located in the global domains. |
run_intraday_alerts |
Updates the Intra-day alert indicator. |
auto_build_intraday_workbooks_global |
Builds all the Intra-day global workbooks that have been configured for automatic builds. |
auto_build_intraday_workbooks_local |
Builds all the Intra-day local workbooks that have been configured for automatic builds. |
Table 11-3 lists example script calls and their actions.
Table 11-3 Intra-day Example Script Calls
Command | Action |
---|---|
intraday_batch.sh -w 7 |
Runs all the |
intraday_batch.sh -w 7 -s prep_intraday_inventory_data -e run_intraday_replenishment_local |
Runs the |
intraday_batch.sh -w 7 run_intraday_alerts |
Only runs the |
intraday_batch.sh -w 7 run_intraday_alerts auto_build_intraday_workbooks_global auto_build_intraday_workbooks_local |
Results in the |