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.

Calling a User Exit Program with the extracted spool pages<br />

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

Change Split Definition SPL310D<br />

Split definition name . : IF400ONLY<br />

Description . . . . . . : Sort IF400 Pages<br />

Split detail description : IF400 ONLY<br />

User exit program<br />

Program name . . . . . . *NONE_____ *NONE, name<br />

Library . . . . . . . __________ name<br />

F3=Exit F12=Cancel<br />

This screen can be used to call a user exit program, that inserts information in the spool entry<br />

resulting from the split.<br />

®<br />

<strong>InterForm</strong>400 will call the program with a set of parameters consisting of up to either 5 or 10<br />

lines each containing a field of up to 30 positions. The amount of exit parameters depends on<br />

the format: 01 equals 5 exit parameters, 02 equals 10 exit parameters, 03 equals the 10 exit<br />

parameters as well as 300 character parameter, that contains all attributes of the original<br />

spooled file.<br />

For additional information on return parameters look into the sample programs, SPLEXIT,<br />

SPLEXIT02, SPLEXIT03 and SPLEXIT04 in the source file APISRC in library APF3812.<br />

Please notice that the spooled file attribute parameters are all RETURN parameters, that are<br />

empty when the program is called.<br />

These various programs differs in these manners:<br />

SPLEXIT (Format=1). This was the first (simple) kind of split exit program supported.<br />

The program get up to 5 texts from the spooled file and returns up to 10 texts<br />

into the new splitted spooled file.<br />

SPLEXIT02 (Format=2). Same as SPLEXIT with the only difference, that you here can get<br />

up to 10 texts from the spooled file.<br />

SPLEXIT03 (Format=3). Same as SPLEXIT02 with the only difference, that you here get a<br />

complete data structure with ALL the information of the spooled file that<br />

triggered the split definition.<br />

SPLEXIT04 (Format=4). This is a unicode exit program. This is needed if you want to use<br />

a split definition to change the contents of a unicode spooled file. Please<br />

notice that all text returned from the program are expected to be in unicode,<br />

where the other split exit programs above run in the codepage of the spooled<br />

file (or AFC job if not defined).<br />

One example could be a customer ID which the user exit program uses to look up a fax<br />

®<br />

number in a database, which is returned to <strong>InterForm</strong>400 to insert in the spool entry resulting<br />

from the split.

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

Saved successfully!

Ooh no, something went wrong!