We will create a simple AFC entry for this AFC definition, where we want to merge the spool files with Form Type DEMO, with overlay IF400DEMO and send the resulting print to the DEFAULT output queue, as follows:

 

Update AFC-functions attached to output queues

AFC305D

Output queue . . . . . . :

TEMPLATE

 

 

Library . . . . . . . :

QGPL

 

 

Seqnbr Funct

Form type

Save Jobname

Filename Device file

Program

0001

1

DEMO

 

 

 

 

 

Merge, Overlay: IF400DEMO Fileset: SAMPLE

 

Seqnbr Function

Attributtes of input file for which to execute the function

1,0

1

Form type

 

DEMO______

 

 

. . . . . . . . .

 

 

Save attribute . . .

. . . . . . . . .

_

 

 

Jobname

 

__________

 

 

. . . . . . . . .

 

 

Spooled file name .

. . . . . . . . .

__________

 

 

Device file

 

__________

 

 

. . . . . . . . .

 

 

Library

. . . . . . . . .

__________

 

 

Program that opened file

__________

 

 

 

 

Library

. . . . . . . . .

__________

F3=Exit

 

F13=Fold/Unfold

F11=Delete

F12=Cancel

 

 

 

 

 

 

We will define that the print should be directed to the *Default output queue

Seqnbr Function

 

 

1,0

1

Merge with overlay

 

 

 

Output queue for merged print

. *DEFAULT____

 

 

Library

. _________

 

 

InterForm 400 printer type . .

. __________

 

 

Interface

. __________

 

Merge overprint lines . .

. . .

*NO_

*NO, *YES

 

Find overlay in forms type

table

N

(Y N)

 

 

 

F3=Exit

F13=Fold/Unfold

F11=Delete

 

F12=Cancel

 

 

 

 

 

 

 

 

The spool file should be merged with overlay IF400DEMO in file set SAMPLE and the resulting spool file should have Form Type MERGED.

Seqnbr Function

 

 

 

 

1,0

1

Merge with overlay

 

 

 

 

 

Overlay name . . .

. . . . . . .

IF400DEMO_

 

 

 

File-set

 

SAMPLE____

 

 

. . . . . . .

 

 

Or overlay selector

. . . . . . .

________

 

 

 

Primary/Secondary set

*PRI

*PRI, *SEC

 

 

 

 

Form type

. . . . . . .

MERGED____

 

 

 

Copies of each page

. . . . . . .

*INPUT

*INPUT, 01-99

F3=Exit

 

F13=Fold/Unfold

F11=Delete

F12=Cancel

 

The attributes of the resulting spool file we leave as *INPUT and set *NONE for Separator Drawer and *NO for Hold or SAVE spool file.

168User’s Manual for InterForm400®

Page 168
Image 168
Intermate i5, AS/400, iSeries manual Merged, Input