You are here: Job and Form Set Rules Reference > JDT Rules Reference > BatchingByPageCountPerRecipINI > INI File Examples > Scenario 5

Scenario 5

Like Scenario 4, this scenario sends form sets to agent batches depending on the number of pages. This scenario, however, uses a DAL script called agent.dal to set the condition along with using an XML extract file. In the AFGJOB.JDT, we must use a PreTransDAL to call the DAL script to set the condition. In this scenario, it is called AGT1. This rule is placed after the RunSetRcpTbl rule in the AGFJOB.JDT file. Once the DAL script set a value to the DAL variable, the condition is considered true and the transaction is written to the respective batch for the Batch_Recip_Def condition by page count. If the DAL script does not set a value to the DAL variable, the condition is considered false and the transaction is written to the Default batch instead. Here is an example:

/* This base (this implementation) uses these rules. */

<Base Rules>

;RULStandardJobProc;1;Always the first job level rule;

;SetErrHdr;1;*:;

;SetErrHdr;1;*:------------------------------------------------;

;SetErrHdr;1;*: FormMaker Data Generation (Base);

;SetErrHdr;1;*: ;

;SetErrHdr;1;***: Transaction: ***PolicyNum***;

;SetErrHdr;1;***: Symbol: ***Symbol***;

;SetErrHdr;1;***: Module: ***Module***;

;SetErrHdr;1;***: State: ***State***;

;SetErrHdr;1;***: Company Name (after ini conversion): ***Company***;

;SetErrHdr;1;***: Line of Business (after ini conversion): ***Lob***;

;SetErrHdr;1;***: Trans Type: ***TransactionType***;

;SetErrHdr;1;***: Run Date: ***Rundate***;

;SetErrHdr;1;*:------------------------------------------------;

;CreateGlbVar;1;TXTLst,PVOID;

;CreateGlbVar;1;TblLstH,PVOID;

;JobInit1;1;;

;LoadDDTDefs;1;;

;InitOvFlw;1;;

;LoadTextTbl;1;;

;LoadTblFiles;1;;

;SetOvFlwSym;1;CGDECBDOVF,Q1GDBD,5;

;BuildMasterFormList;1;4;

<Base Form Set Rules>

;RULStandardTransactionProc;2;Always the first transaction level rule;

;LoadExtractData;2;;

;GetCo;2;11,HEADERREC 35,3;

;GetLOB;2;11,HEADERREC 40,3;

;ResetOvFlw;2;;

;BuildFormList;2;;

;LoadRcpTbl;2;;

;UpdatePOLFile;2;;

;RunSetRcpTbl;2;;

;PreTransDAL;;Call("agent.dal");

;BatchingByPageCountPerRecipINI;;;

Here is an example of the FSISYS.INI file:

< BatchingByRecip >

Batch_Recip_Def = =DAL("AGT1");"AGENTNAME1PAGE";AGENT

Batch_Recip_Def = =DAL("AGT1");"AGENTNAME1PAGE";AGENT

Batch_Recip_Def = Manual;"MANUAL";ALL

Batch_Recip_Def = Error;"ERROR";ALL

DefaultBatch = Default

If the DAL variable holds a value, the system sends all one-page transactions to an Agent batch specifically for one-page form sets:

< AgentName1Page >

Printer = Printer1

PageRange = 1,1

If the DAL variable holds a value, the system sends all transactions that are more than one page to an Agent batch designed to hold form sets that consist of two or more pages:

< AgentNameMultipage >

Printer = Printer2

PageRange = 2,99999

If the DAL variable does NOT hold a value, the condition is considered false and the transaction is sent to the Default batch.

< Default >

Printer = PDefault

Form sets that go into WIP are put in the manual batch:

< Manual >

Printer = Printer3

PageRange = 1,99999

Form sets with errors go into the error batch:

< Error >

Printer = Printer4

PageRange = 1,99999

This excerpt shows how to set the Print_Batches, PrinterInfo, and PrintedOutputFile control groups:

< Print_Batches >

Default = default.bch

AgentName1Page = agentname1page.bch

AgentNameMultipage = agentnamemultipage.bch

Manual = manual.bch

Error = error.bch

< Printer1 >

Port = data\agentname1page.pcl

< Printer2 >

Port = data\agentnamemultipage.pcl

< Printer3 >

Port = data\manual.pcl

< Printer4 >

Port = data\error.pcl

< PDefault >

Port = data\pdefault

< PrinterInfo >

Printer = Printer1

Printer = Printer2

Printer = Printer3

Printer = Printer4

Printer = PDefault