DreamWriter printer overrides problem

mikemcintire

Member
A user has noticed that on DreamWriter reports which specify printer overrides to a specific outq, that the printer overrides do not work if no records are selected in the report.

Is this a JDE feature, or is there a workaround so that the cover pages go to the desired outq?

JDE World A7.3
 
The way in which the DreamWriter program is set up is that if you get a "no
records selected" situation, a job switch is set on and the CL program is
ended without even running the RPG that prints the report.
Without looking, I would guess that the basic printer overrides are not set
until after the data extraction, therefore this will not be done either.
We are looking at modifying the core DreamWriter CL program to issue a
return code not just set on a switch, since the switch that is used does not
solely mean no data selected - it also could be a data selection setup
error.
There are times when it is preferrable to continue to the next program
rather than to abort if you get no records selected, for example when you
are running a number of programs one after the other.
I think several people on the list have already modified their DreamWriter
programs accordingly.
Hope this helps.
Tony Payne




Tony Payne - Senior Systems Analyst
Selmer-UMI
Elkhart, Indiana 46516
 
Generally if the CL program issues the message that no records were selected
for processing, then the program that would open the spool file and use the
overrides is never called. Hence no cover sheets are generated. And unless
the user's message level is set to 4/00/*SECLVL then the user wouldn't even
get a job log. So the user would have to review the messages in their
message queue to determine if the
Dream Writer selection parameters were wrong.




George Smith
World A7.3, Cum10 - V4R5
Walco International, Inc.
 
The previous 2 replies to your post are accurate. However, if you are getting a cover page, the DW has been successful in selecting records; the report program itself must make some additional choices, which may be why there is nothing on the report. Is this the case? You would not normally get a cover page if the DW fails to find any records.

The printer overrides are issued both prior to the DW selection P98315 (for the SHARE(*YES) so the cover page and report are in one spool file) and after (for the user-specified parameters, including OUTQ)). The P98COVER is called from the S999 subroutine w/in each RPG report program, so unless there is another error causing the printer overrides to be rejected/ignored, the cover page should go to the outq where the user pointed it. You might change your job description temporarily to LOGCLPGM(*YES) LOG(4 00 *SECLVL) to force a joblog, rerun the DW version, and see if you can determine anything from that. Hope this helps!


Regards,
Sally White
15+ yrs JDE Financials programming
V4R5/A7.3c10; OW Xe
 
Back
Top