You are here: Job and Form Set Rules Reference > JDT Rules Reference > GenPrint

GenPrint

Use this job level rule to add all of the functionality of running the GenPrint program. Anything you can do with the GenPrint program can be done using this rule. For instance, you can use this rule to print the same recipient batch multiple times while running in single-step mode, giving you the same recipient batch processing capabilities available in multi-step mode. For instance, this rule lets run in single-step mode and print the same batch in multiple formats, such as a PDF batch for electronic delivery and a Metacode batch for mail.

Syntax

GenPrint ()

There are no parameters for this rule.

     
Note The PrintFormset rule works differently from the GenPrint program, while the GenPrint rule offers the same functionality. To use the GenPrint rule, add it to the AFGJOB.JDT file instead of the PrintFormset rule.

Keep in mind...

Example

Here is an example:

<Base Rules>

;RULStandardJobProc;;Always the first job level rule;

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

;SetErrHdr;;***: Feature 1931 - GenPrint rule example ;

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

;JobInit1;;;

;GenPrint;;;

Always place the GenPrint rule immediately after the JobInit1 rule in your AFGJOB.JDT file.

Creating multiple print batches

You can assign a recipient batch to multiple print batch files during GenPrint processing. This lets you print the same batch in multiple formats, such as in PDF and Metacode format. Here is an example:

< Print_Batches >

BATCH1 = Batch1.bch

BATCH2 = batch2.bch

BATCH3 = Batch1.bch

In this example, Batch1.bch will be printed by both print BATCH1 and print BATCH3.

Setting up banner processing

This rule also supports transaction and batch banner processing. To set up banner processing, you must set the appropriate GVMs before each instance of the class recipient is printed. Use the RecipMap2GVM control group to set the GVMs. See Writing Unique Data Into Recipient Batch Records for more information.

Processing under IDS

To support IDS processing, the system lets you hold the batch, NA, and POL files in a list until the GenPrint rule has executed. To tell the system to hold the batch, NA, and POL files, include the following INI option:

< RunMode >

DelayedFileWrite = Yes

See also