Focal Point
[SOLVED] Report Caster -- "SET DISTRIBUTE=OFF" magically appearing

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/8717030496

July 29, 2020, 02:54 PM
John_Edwards
[SOLVED] Report Caster -- "SET DISTRIBUTE=OFF" magically appearing
I have a report that runs perfectly on-demand. It's HTML. But when I deliver it via Report Caster I get

SET DISTRIBUTE=OFF

. . . inserted into the output. That text just appears at the top of the page. It's a very small report, so the line is pretty glaring.

I have searched my entire system for this phrase, and it doesn't appear to exist anywhere.

Anybody have an idea on how to banish this ghost?

This message has been edited. Last edited by: FP Mod Chuck,



July 29, 2020, 03:05 PM
FP Mod Chuck
John

is -SET &ECHO=ALL; in the fex by chance. I saw one case on techsupport where that was the case. But with html that would usually show up if you did a view source of the output not in the actual report.

Also when you create a schedule on the properties page there is a drop down for handling No report to distrubute and the default is on error I saw another case where if that was changed to warning that message went away.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
July 29, 2020, 03:19 PM
John_Edwards
I don't have a -SET &ECHO=ALL and I explicitly set it to OFF and it didn't make a difference.

I set the default for no report to distribute to Warning and it didn't fix it either.

Now, it's an interesting report. I run four separate reports and then combine them in an HTMLFORM block at the bottom of the focexec. Gets my appearance just right. So maybe that is setting something off?



July 29, 2020, 03:39 PM
John_Edwards
I got it! I was missing an HTMLFORM END at the end of the focexec. I had --
 
-HTMLFORM BEGIN
<html>
<body>
<table>
<tr><td>!IBI.FIL.DRIVER_TEST_APPOINTMENTS ;</td><td>!IBI.FIL.CDL_TEST ;</td></tr>
<tr><td height='50px'> </td></tr>
<tr><td>!IBI.FIL.OTHER_APPOINTMENTS ;</td><td>!IBI.FIL.VEHICLE_APPOINTMENTS ;</td></tr>
</body>
</html>

. . . and apparently that set off the alert, in spite of it sending the report. I put -HTMLFORM END at the bottom and the message went away.



July 29, 2020, 03:43 PM
John_Edwards
Now, I'm going to make this mistake again in the future at some point, and I'm going to find this after I search. I'm going to find my own solution. I can't tell you the number of times I've searched for a problem in these forums, found exactly what I was looking for, only to discover that it was me that started the original thread back in 2006.



July 29, 2020, 04:27 PM
FP Mod Chuck
Smiler


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
July 30, 2020, 07:31 AM
Satheesh Babu
SET DISTRIBUTE=OFF
It is Reportcaster functionality. if it didn't find the output from the task it will set distribution off . and give error or warning. based on the schedule settings.
It may happen sometimes if it didn't recognize the output format or no report to distribute.
One of the user created report with multiple hold file and created final excel report.it was running on-demand but it failed in reportcaster with no report to distribute.
setting the overide the output format to .xls
in the tasks fixed the issue.


WebFOCUS 8.2.04
AIX/UNIX/Windows, All Outputs