Please enable JavaScript to view this site.

ADVRFMTAPI

This is a Cobwebb Standard Exit program which can only be used in conjunction with the ADVRFMT Exit program. It allows you to store information from the input spool file to be output at a later point in the output document. The maximum number of lines to store before outputting is 100.

If you are simply wishing to store information from the spooled file then you can use the *STORE and *WRITE calls in the ADVRFMT Exit program, but if you need to retrieve other information from a database then this API can be useful.

*IN call

This call allows you to pass in the spooled file data to store.

Parameter

In

Len

Comment

PARM1

Data

132

If using *WIDE then each line is specified over PARM1 & PARM2.

PARM2

Data (only if using *WIDE)

132


PARM3

Detail Key Field 1

30

Key 1 to sequence lines

PARM4

Detail Key Field 2

30

Key 2 to sequence lines

PARM5

*NO /*NOW

4

See Note #1

PARM6

*IN

7


 

Note #1: *NO if do not want to allow a skip to a new page after this line, *NOW if you want to throw a page before this line, else leave blank.

Note #2:  If you pass in more than 100 lines of data then you will receive *ERROR returned in PARM1.

*OUT call

This call allows you to pass out all data stored to ADVRFMT. This MUST be called AFTER an *FIRST [Output Setup] call to ADVRFMT.

Parameter

In

Len

Comment

PARM1


 


PARM2

 

 


PARM3

 

 

 

PARM4

 

 

 

PARM5

 

 


PARM6

*OUT

7