31.01.2013 Views

InterForm Manual - System & Method

InterForm Manual - System & Method

InterForm Manual - System & Method

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Split definitions will normally be executed through a function B in Auto Forms Control. Refer to<br />

page 152 and 179 for more information.<br />

Spooled File Inspector (SFI)<br />

®<br />

The purpose of this feature is, that <strong>InterForm</strong>400 can look for a special string in a spool file<br />

and change the form type of the spool file depending on wether the string was found or not.<br />

This can be done without any programming.<br />

To maintain SFI definitions use the APF3812/WRKSFID command. (See Sample SFI<br />

definition below). To use/run an SFI definition, enter a line in an Auto Forms Control definition<br />

using function 8 (Call Program), and specify program RUNSFI and library APF3812. (See<br />

Description of the RUNSFI program below).<br />

448 User’s <strong>Manual</strong> for <strong>InterForm</strong>400 ®<br />

Create SFI definition SFI110D<br />

SFI definition . . . . . . DEMO______<br />

Description . . . . . . . My_test__________________________________________<br />

Search text . . . . . . . Total_errors____0________________________________<br />

Page . . . . . . . . . . *LAST_ *ANY, *FIRST, *LAST<br />

Print line . . . . . . . 1__ -_72<br />

Position . . . . . . . . 2__ -_18<br />

New form type<br />

If text found . . . . . *SAME Form type, *SAME<br />

- If not found . . . . . ERROR Form type, *SAME<br />

When AFC invokes the RUNSFI program, it will look for a SFI definition having the same<br />

name as the form type of the spooled file. (I.e. if the form type of your spooled file is DEMO,<br />

the SFI definition named DEMO will be used).<br />

The RUNSFI program then scans the spooled file for the search text string specified in the SFI<br />

definition (within the specified page-, line- and position-limits).<br />

If the text string was found, the form type of the spooled file will be changed to the value<br />

specified in the 'New form type If text found' field. Likewise the form type will be changed to the<br />

value specified in the '- If not found' field if the text string wasn't found.<br />

Finally the RUNSFI program will hold and release the spooled file - in order to let AFC process<br />

the spooled file with the new form type - unless the value for New form type is *SAME, then the<br />

spooled file will not be held and released.<br />

Note:<br />

If a SFI definition with the name of the spooled file's form type doesn't exist - no action will be<br />

performed. All comparisons in SFI are case sensitive - including the SFI definition / form type<br />

comparison.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!