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

Scenario 2

This scenario defines two simple conditions in a condition table based on information in the data dictionary. In the condition table two conditions are set which define the two company types, representing the two different company transactions in the extract file. Condition 1 (Cond1) searches for an S for Sampco company transactions. Condition 2 (Cond2) searches for an F for FSI company transactions. This scenario creates batches for recipients by company and page count. The data dictionary and condition table for this scenario are shown below:

From the data dictionary:

<Records>

Header = Search(11,HEADERREC)

<Variables>

CompanyType = Record(Header) Offset(1) Length(1) Type(Char)

From the condition table:

< Conditions >

Cond1 : CompanyType = "S"

Cond2 : CompanyType = "F"

From the FSISYS.INI file:

< BatchingByRecip >

DefaultBatch = Default

Batch_Recip_Def = COND(Cond1);"SAMPCO1PAGE";INSURED

Batch_Recip_Def = COND(Cond1);"SAMPCOMULTIPAGE";INSURED

Batch_Recip_Def = COND(Cond2);"FSI1PAGE";INSURED

Batch_Recip_Def = COND(Cond2);"FSIMULTIPAGE";INSURED

Batch_Recip_Def = Manual;"MANUAL";ALL

Batch_Recip_Def = Error;"ERROR";ALL

< Default >

Printer = PDefault

For each recipient, all one-page form sets for each company go into a separate batch as shown here:

< Sampco1Page >

Printer = Printer1

PageRange = 1,1

< FSI1Page >

Printer = Printer3

PageRange = 1,1

For each recipient, all form sets with two or more pages go into a separate batch for each company as shown here:

< SampcoMultipage >

Printer = Printer2

PageRange = 2,99999

< FSIMultipage >

Printer = Printer4

PageRange = 2,99999

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

< Manual >

Printer = Printer5

PageRange = 1,99999

 

Form sets with errors go into the error batch:

< Error >

Printer = Printer6

PageRange = 1,99999

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

< Print_Batches >

Default = default.bch

Sampco1Page = sampco1page.bch

SampcoMultipage = sampcomultipage.bch

FSI1Page = fsi1page.bch

FSIMultipage = fsimultipage.bch

Manual = manual.bch

Error = error.bch

< Printer1 >

Port = data\sampco1page.pcl

< Printer2 >

Port = data\sampcomultipage.pcl

< Printer3 >

Port = data\fsi1page.pcl

< Printer4 >

Port = data\fsimultipage.pcl

< Printer5 >

Port = data\manual.pcl

< Printer6 >

Port = data\error.pcl

< PDEFAULT >

Port = data\pdefault

< PrinterInfo >

Printer = Printer1

Printer = Printer2

Printer = Printer3

Printer = Printer4

Printer = Printer5

Printer = Printer6

Printer = PDefault

< Tables >

Path = .\tables\

Recipient = reciptbl.dat

Conditions = condition.tbl

< DataDictionary >

Name = datadict.tbl

< SymLookup >

MaxCache = 1000

LeastFrequent = Yes