How about the following:
Define a UDC command for the 'EOJ' mpe command that would do something lile
this:
eoj
if hpjobtype = "J" then
if pos ("SESSION1",hpstreamdby) <> 0 then
spoolf o@;seleq= &
[(jobnum=#J!hpjobnum and filedes = "REPORT1")];pri=1;alter;show
else
if pos ("SESSION2",hpstreamdby) <> 0 then
spoolf o@;seleq= &
[(jobnum=#J!hpjobnum and filedes = "REPORT1")];pri=4;alter;show
endif
endif
eoj
****
In this manner the resulting reports will have different priorities and can
thus be selected and directed to different printers.
Regards
Paul H. Christidis
______________________________ Reply Separator _________________________________
Subject: Re: Network printing revisited
Author: Bill Lancaster <[log in to unmask]> at CCGATE
Date: 03/04/97 01:32 PM
Thanks to all who responded to my question about network printing. Let
me add another wrinkle.
I am already aware of HPSTREAMEDBY however, the application in question
won't let me alter the jobstreams created to run the reports.
Remember the scenario of two users streaming the same job with
different parms. The job creates same-named spoolfiles which
need to go to different locations.
The complete scenario says that I cannot change the job to take
advantage of the HPSTREAMEDBY but still need to send the spoolfiles
to different locations.
Ideas?
Bill "Still want to type [log in to unmask]" Lancaster