with formtype *STD in order to limit the subsystem QSPL to process jobs with this formtype only, thus leaving all jobs regardless of formtype to be processed by subsystem AUTO_FORM.:

STRRMTWTR OUTQ(APF3812/AFC_OUT1) FORMTYPE(*STD)

J TIP J

When using the same output queue for both Input and output it is highly recommended

to include the form type when starting the writer jobs in program QSTRUPPGM, in order

to be sure that the writers are started up with the correct Form Type after IPL. However this is automatically fixed, when using STRWTRCHK as described above.

M WARNING M

Note that some PC emulated writers, such as the Client Access printer session,

automatically starts the writer with FORMTYPE=*ALL when initialising. Then the only practical solution is the one mentioned first above (APF3812/STRWTRCHK).

Step 2. Creating the AFC Definition:

Enter menu 5. Work with Auto Forms Control and select option 1. Function attached to Output queues. Here we press F6 to create a new definition:

 

Update Auto Forms Control Definition

AFC302D

Output queue

. . . . . .

:

AFC_INPUT2

 

 

.Library

. . . . . .

:

APF3812

 

 

Type choices and then press Enter. Press F3 or F12 to exit.

 

 

Description

. . . . .

.

. . DEMO queue for both input and output

 

Autostart job

 

Y

(Y N)

 

.

 

Code page

. . . . . .

.

. . *SYSVAL

Number, *SYSVAL

F4=List

Default output output queue and printer type

 

 

. . . . .Output queue

.

. . AFC_OUT2__

 

 

Library

. . . . . .

.

. . APF3812___

 

 

InterForm 400 printer type . HPIII_____

 

 

Interface

. . . . .

.

. . ASCII850__

 

 

Optional template AFC-definition to be executed after this definition

Output queue

 

__________

 

 

.

 

 

Library

. . . . . .

.

. . __________

 

 

F3=Exit

F4=Prompt

 

F10=Additional parameters F12=Cancel

 

 

 

 

 

 

 

 

 

Here we define the queue to monitor should be AFC_INPUT2. We assign the same name for the AUTO_FORM subsystem job, as it will be easier to recognise the correct job when looking at active jobs.

As we will use the same queue for Input and Output for our AFC definitions, we assign the same queue name for the default output queue.

For printer and interface type we state values matching our specific printer.

There should be no criteria for changing the writer, so we press Enter twice to get the AFC function entry screen.

User’s Manual for InterForm400® 161

Page 161
Image 161
Intermate iSeries, i5, AS/400 manual Creating the AFC Definition, AFCINPUT2, AFCOUT2, ASCII850