Creating a custom Errors report

 5 Replies
 0 Subscribed to this topic
 17 Subscribed to this forum
Sort:
Author
Messages
Woozy
Veteran Member Send Private Message
Posts: 709
Veteran Member
I am building a custom batch program and I want to add a secondary report (i.e for errors) to the Print Manager output for this report.

I added another $REPORT section to my .rpt file, and it included the error report as part of the .prt file rather than as a separate file and separate Print Manager record.  Is there some trick to creating it as a separate file? 

Thanks! 
Kelly Meade
J. R. Simplot Company
Boise, ID
Ragu Raghavan
Veteran Member Send Private Message
Posts: 477
Veteran Member
Did you also add a file in workdef and assign this file to the new report?
Woozy
Veteran Member Send Private Message
Posts: 709
Veteran Member
Yes, I did. When I did that, then I get "No XRef for RptSub(1) to iXFFXRef file" errors. I haven't been able to find squat about that error.
Kelly Meade
J. R. Simplot Company
Boise, ID
Cindy Ashwell
New Member Send Private Message
Posts: 2
New Member
Look in the
Application Development Workbench Standards
Here's one of my examples.
****************************************************
$REPORT ZH210-R2
****************************************************
$PRINTFILE EXTRARPT
.
.
.
$ENDRPT

Work File Definition

Product Line TEST File Record Yes
System Code ZH Sort File No
Program Code ZH210 File Media Printer
File Name EXTRARPT Value/WsFld Id
Prefix File Status

Field Name Occurs Type Size 250

EXTRARPT-REC Alpha 250
Woozy
Veteran Member Send Private Message
Posts: 709
Veteran Member
Yep - that's exactly what my workdef looks like, except for the string length.
Kelly Meade
J. R. Simplot Company
Boise, ID
Woozy
Veteran Member Send Private Message
Posts: 709
Veteran Member
UGH!  I'm a dork!  I deleted my "old" job and created a new one and it worked fine.  Of course.

Thanks for all your ideas, in any case!

Kelly
Kelly Meade
J. R. Simplot Company
Boise, ID