As the new spooled file afterwards will be input to a merge operation, *INPUT will often be appropriate. Note that the keyword *DEFAULT and *INPUT apply to both Output queue and library.

Formtype:The formtype entered here should be used as condition for a 1. Merge with overlay following this AFC definition. The formtype could typically be SORTED.

M WARNING M

Make sure, that you are not creating a loop in Auto Forms Control when you insert a sort

definition. If you e.g. create a new spooled files with a sort definition and these new

spooled files are placed back on the same outq, then the new spooled files should NOT be able to trigger the sort definition again...

F=Change Writer

Seqnbr Function

 

 

 

2,0

F

Change writer

 

 

 

 

Writer name . . . .

__________

Name,*OUTQ

 

 

Form type

__________

 

F3=Exit

F13=Fold/Unfold

F11=Delete

F12=Cancel

Writer name: The name of the writer to change. When stating *OUTQ the writer attached to the output queue specified in the default settings for the AFC definition will be used.

Formtype:The formtype which the writer program will be restricted to process. All other formtypes will be left for InterForm400® to process.

This function makes it possible to use the same OUTQ for both input to and output from InterForm400®, and in cases where you have to use more than one type of paper and need to receive a message for changing paper.

In cases where you only use one type of paper in the printer you place an AFC function F=CHGWTR and change the formtype to e.g. *STD. This will restrict the writer to process spool entries of this type only. The next AFC function must be 9=EXIT conditioned by formtype *STD. This will cause InterForm400® to stop processing print jobs of this type, and leave them for the AS/400 to print normally.

If you actually use more than one type of paper in your printer, and want to get the message to change forms in the printer, then you can define a F = CHGWTR for each formtype you want to receive a message for changing paper.

For instance, if you want the formtypes *STD and IF400 to be used for output to your printer, while other formtypes should be used for input conditions to other AFC functions, the following 4 AFC defintions should be made in the beginning:

1.For formtype=*STD, use F=CHGWTR to change formtype to *STD

2.For formtype=*STD, use 9=EXIT

3.For formtype= IF400, use F=CHGWTR to change formtype to IF400

4.For formtype=IF400, use 9=EXIT

Note that this function can be substituted by a more efficient method as described on page 27.

150User’s Manual for InterForm400®

Page 150
Image 150
Intermate i5, AS/400, iSeries manual =Change Writer