Title: Custom Batch Update No Report File
sraffey - February 1, 2006 08:41 PM (GMT)
Hello, I am trying to create a batch update program which reads in a file and performs a certain number of updates. I don't need a report output but I painted first and it created a report file for me.
How can I get rid of this report file all together? Can I just delete the .rpt and remove all references to it?
Does anyone know what all the tags in the .rpt file actually mean?
Thanks
Sam
Ragu - February 1, 2006 11:19 PM (GMT)
I believe that all batch programs must have at least one report. The compile process will barf on you if the.rpt file is missing or there is not at least one 700-PRINT-RPT-GRP in the PD.
I am sure there is documenation on the support site - related to application development workbench (I think) that will explain the codes in the .rpt file.
What I usually do in such cases is get rid of the generated .rpt file and just insert one $GROUP/$END-GROUP with the text
"No data to print on this report ".
trezaei - February 2, 2006 12:44 AM (GMT)
You can remove the .rpt file and all reference to it.
Make sure you remove all the fields (even things like Page-Nbr) and any routines that write to the report.
I have done this many times and no report is generated, no errors either.
As for the tags you're on your own, some of the are self-explanatory and some are explained in the docs but most of them are ambiguous and ...
Good luck
Ragu - February 2, 2006 01:05 AM (GMT)
Aaha - learned something new. Thanks Tan.
sraffey - February 2, 2006 04:33 PM (GMT)
Thanks that worked after much debugging. Do you know if this still creates the print directory and if there is any way of stopping that?
trezaei - February 2, 2006 04:55 PM (GMT)
I am not sure, thats something you'll have to try on your own. If it does create it then I don't know of a way of preventing it, BUT! you can always have a script remove it on the tail end of your program.