In Auto Forms Control you can add conditioned sequence lines, that are conditioned on various spooled file attributes:
Update AFC-functions attached to output queues AFC305D
Queue: AFC_INPUT1 Library: APF3812
Seqnbr F. Form type Save Jobname Filename Dev.file Program UserData 0001 1 DEMO Merge, Overlay: IF400DEMO Fileset: SAMPLE 0002 6 Hold Spooled File
Seqnbr Function Suspend
F3=Exit F5=Service F13=Fold/Unfold F15=Subset F17=Subset by Spooled File
|
To add new sequence numbers you type in a new number in the bottom. In order to add a new line between existing numbers you can either use F5=Service and option 2. Move definitions to another sequence number to move the existing lines - or to use a decimal point (or decimal comma depending on the decimal delimiter used for the job). To edit an existing sequence number you type in the number, that you want to edit.
You can e.g. a new line between line 1 and 2 by entering 1,5 (or 1.5) and then press either Enter og Field Exit to add the new line.
After adding the new line (or when entering the number of an existing line) the spooled file selection for this line is shown:
Update AFC-functions attached to output queues AFC305D
Output queue . . . . . . : AFC_INPUT1 Library . . . . . . . : APF3812 Seqnbr F. Form type Save Jobname Filename Device file Program UserData 0001 1 DEMO Merge, Overlay: IF400DEMO Fileset: SAMPLE 0002 6 Hold Spooled File
Seqnbr Function Attributtes of input file for which to execute the function 1,0 1 Form type . . . . . . . . . . . . . . DEMO Save attribute . . . . . . . . . . . . ____ *NO, *YES Jobname . . . . . . . . . . . . . . . __________ Spooled file name . . . . . . . . . . __________ Device file . . . . . . . . . . . . . __________ Library . . . . . . . . . . . . . . __________ Program that opened file . . . . . . . __________ Library . . . . . . . . . . . . . . __________ User-specified data . . . . . . . . . __________ F3=Exit F13=Fold/Unfold F11=Delete F12=Cancel
|
When entering more than 1 spool file attribute, all the selected attributes have to be valid before AFC will execute the sequence line (Logical AND function). If an entry is left blank, the spool file attribute is ignored and any value is accepted.
The form type and User-specified data fields are case sensitive.
Many misunderstand the save attribute above. So please read this if in doubt: The save attribute is the CONDITION (just as the other attributes) for executing the line in question! So if you state *YES only spooled files with the SAVE attribute set to *YES will be able to trigger the sequence line. This does NOT affect the attribute of the merged spooled file. You can use the save attribute to make InterForm400 delete the original spooled files (after merge), if the save attribute is *NO - refer to 7 = Delete spooled file for additional information of how to do that.