Use this job level rule to initialize GenData WIP Transaction Processing. This rule creates a transaction memory list to which it adds transactions from the WIP file that have status codes which match those in the rule’s parameters.
The status codes identified by this rule do not have to be identified by the WIPTransactions rule. You can include status codes for transactions that you want to delete from the WIP file. Transactions with status codes not including in this rule’s parameters remain in the WIP file when processing finishes.
These other rules are also used when you run WIP Transaction Processing:
Using these rules in a simplified AFGJOB.JDT file and with appropriate INI files, GenData WIP Transaction Processing adds the transactions from a WIP file to a transaction memory list. It then processes the transactions from the memory list, appending the data from the WIP file to the MRL recipient batch, NewTrn, NA, and POL files. If these files do no exist, it creates them. Each transaction in the memory list is deleted from the WIP file after it is processed.
Note | If you are using the MergeWIP rule with the BatchingByRecipINI rule, be sure to use the =DAL and =GVM operators. For more information, see Formatting Data with the = Operator. The MergeWIP rule gets all of its data from WIP, not an extract file. |
;MergeWIP;;StatusCode1,StatusCode2,...;
Parameter |
Description |
StatusCode |
Use the StatusCode parameters to define the status codes of the transactions in the WIP file you want to add to the memory list. Identify the status codes you want to included in the Status_CD control group. Here is an example: < Status_CD > Accepted = AC Approved = AP BatchPrint = BP Rejected = RJ |
The system automatically limits the result sets queried from DBMS systems by the MergeWIP rule to the rule's parameters for the STATUSCODEs to significantly improve query speeds when this rule is run against large WIP index tables.
When the WIP index table is in a DBMS, the appropriate WHERE clause for the STATUSCODE is added to the query automatically. A separate query for each STATUSCODE provided to the MergeWIP rule is used to retrieve the WIP list.
To improve performance on very large WIP tables, add an index on the DBMS WIP index table on the STATUSCODE column to avoid full table scans. An index on the WIP index table on the CURRUSER and STATUSCODE columns can also improve the performance of other queries to the WIP index table when the query to build a WIP list for a specific user is performed.
The MergeWIP rule can check a date field in the WIP index to determine whether to insert the WIP record into the batch. By default the field name is ScheduleDate. You can use this INI option to change the name of the field that is used:
< MergeWIP >
ScheduleDateFieldName = ScheduleDate
If the data in the field is eight bytes, the system assumes the date is in YYYYMMDDD format. If the data in the field is 14 bytes, the system assumes a YYYYMMDDhhmmss format. You can change the format the MergeWIP rule expects for the date using this INI option:
< MergeWIP >
ScheduleDateFieldFormat = D4%1
You can combine date and time formats into one string separated by percent signs (%). This table shows the date formats:
Enter |
For this format |
1 |
MM/DD/YY 99/99/99 (default) |
2 |
DD/MM/YY 99/99/99 |
3 |
YY/MM/DD 99/99/99 |
4 |
Month DD, YY Month DD, YYYY |
5 |
MM/DD/YY ZZ/ZZ/ZZ |
6 |
DD/MM/YY ZZ/ZZ/ZZ |
7 |
YY/MM/DD ZZ/ZZ/ZZ |
8 |
MM/DD/YY LZ/LZ/LZ |
9 |
DD/MM/YY LZ/LZ/LZ |
A |
YY/MM/DD LZ/LZ/LZ |
B |
MMDDYY ZZZZZZ |
C |
DDMMYY ZZZZZZ |
D |
YYMMDD ZZZZZZ |
E |
MonDDYY MonZZZZ |
F |
DDMonYY ZZMonZZ |
G |
YYMonDD ZZMonZZ |
H |
DOY/YY ZZZ/ZZ |
I |
YY/DOY ZZ/ZZZ |
J |
DD Month, YY DD Month, YYYY |
K |
YY, Month DD YYYY, Month DD |
L |
Mon-DD-YY Mon-ZZ-ZZ |
M |
DD-Mon-YY ZZ-Mon-ZZ |
N |
YY-Mon-DD ZZ-Mon-ZZ |
O |
Mon DD, YY Mon DD, YYYY |
P |
DD Mon, YY DD Mon, YYYY |
Q |
YY, Mon DD YYYY, Mon DD |
R |
Month Month |
This table shows the time formats:
Enter |
For this format |
1 |
HH:MM:SS 99:99:99(default)(24 hour) |
2 |
HH:MM:SS XM 99:99:99 XM (12 hour) |
3 |
HH:MM 99:99 (24 hour) |
4 |
HH:MM XM 99:99 (12 hour) |
Instead of returning an error if it comes across an empty WIP list when merging WIP, the system can issue a warning. To have the system issue a warning instead of an error, set the WIPWarnOnEmpty option to Yes, as shown here:
< RunMode >
WIPWarnOnEmpty = Yes
You can tell the system not to delete WIP records and files during the MergeWIP/WIPTransactions process if an error occurs, but instead change the WIP status to something you define.
This way, if an error occurs during batch processing, the WIP will still exist in its normal place. But since its status has changed, the system will not include it in the next batch run. You can then examine the transaction to determine what caused the error.
Use the following INI option to set up the transaction error code you want to use:
< Status_CD >
Option |
Description |
TransErrCode |
You can enter up to two characters, numbers or both for the transaction error code. |
Here is an example:
;MergeWIP;; Approved, Accepted, Rejected;
This example adds to the memory list the transactions in the WIP file which have these status codes: Approved, Accepted, and Rejected. Those codes must be specified in the Status_CD control group.
© Copyright 2014, Oracle and/or its affiliates. All rights reserved. Legal notices.