Please enable JavaScript to view this site.

If you wish to retrieve multiple detail lines from an external system to write out via the Advanced Reformatting Utility then we have provided some sample source for you to be able to write your own Exit program to do this. If you look in QUSRTOOLLE source file in library CPPD you will see the source for a program called COBADVWRT.  This program shows you how you can write individual *DET lines directly to the ADVRFMT program. If your version doesn't have this source then please ask Cobwebb Support for details.

There are several steps you need to follow if you wish to write detail lines in this way.

In your PPD file you must follow this process:

1.Specify the *FIRST call to ADVRFMT to define the Initial Setup - Mandatory.

2.Specify the *KEY call to ADVRFMT to define the Header Key - Optional.

3.Specify the *HDR call to ADVRFMT to define the Header details - Optional.

4.Now you may call your bespoke Exit Program to write the *DET lines to ADVRFMT. Here you have the option to either pass in or hard code details such as Detail Key Fields, Page Throw etc.

Notes: The LineType entry must always be *DET.
The parameters that are passed to the ADVRFMT program are the same as those defined for the *DET call.
All parameters are cleared by ADVRFMT after processing so you will need to pass them every time you call ADVRFMT even if they are the same.

5.Specify the *LAST call to ADVRFMT to define the Output Setup - Mandatory.