I'm on V6R1 and I have a printed report that I need to suppress if it contains no data.
Currently it prints out a heading section and then a notice that '0 records were modified.' Unfortunately, the program logic behind the report is not simple enough for me just to do a record count and see if it's 0 before I write anything to the printout. So, currently, it writes at the very least the headers before it determines if there is any data to be processed or not (it determines that one record at a time). When I get to the end of the program, I will know how many records were modified. Is there any way for me then to simply kill the printout even though I've started to write to the print file?
I realize my question may leave a lot to be desired, but I was just curious if RPG has such a method. Thanks!
July 29, 2009 7:32 PM
July 30, 2009 1:54 PM