1. On one AS/400 you will need to have a server job polling an output queue.
2. When an entry arrives on the queue, use the spooled file API's to retrieve
the spooled file attributes into a user space and the spooled file data into
another user space.
3. Use the SAVRSTOBJ command to save the user spaces to the remote AS/400
4. Then use the SBMRMTCMD to execute the SBMJOB command. The job name and user
name should be what you want the spooled files to be created under. The RQSDTA
should invoke a program that receives the user space names as parameters.
5. The program called on the RQSDTA of the SBMJOB command that was executed by
the SBMRMTCMD. Should then use the spooled file API's to create spooled files
with the attributes of the original and to copy the data from the user space.
If you want details of this method send me an e-mail and I can send you some CL
examples of a program that does something similar to what you are needing.
Sure... but wouldn't it be easier to just ask Broderick for a change to
enable keying from the USRDTA value instead <for example>? Seems like a
lot less work for everyone if their provider is willing to make the
change. Then all they have to do is override or change their spool file
to have the USRDTA value equate with the JOB name.
Regards, Chuck
-- Comments provided "as is" with no warranties of any kind whatsoever.
Finally, the solution I offer is generalized, it works now, and requires no
change to how reports are generated.
Charles R. Pence wrote:
> OSITim wrote:
> >
> > To solve your dilemma you are going to have to bypass SNADS altogether as the
> > transport mechanism for you spooled files. <<SNIP>>
>
Heh heh... Good point. Code around it and keep their software...
everybody is happy <enough> and making money, or otherwise getting stuff
done <g>. Strange that it seems to always work that way. :-(
However the provider maybe can give a solution via USRDTA, spool file
owner, or perhaps USRDFNOPT; and so possibly still worth the asking.
Could be they already have the feature and it's just too new or
difficult to find.
John Dunn wrote:
> We use Broderick Data Systems Spool Organizer/400 to
> bundle/distribute/archive spool output on our production AS/400. The
> dilemma: When jobs run on our second production system are sent via
> remote OUTQ/SNADS to our main production system running Broderick, the
> job looses it's name and becomes QPRTJOB, just like SNDNETSPLF (which
> remote SNADS outqs use).
What version OS/400 are running? We have this problem on our version 2.3
system
but have eliminated it on oour V3/V4 systems.
If you are running V3 and above check that you have entries in your system
distribution
directories for user QNETSPLF for both your systems, and also we changed
the default
from *recdata to *alldata on the sndnetsplf command.
All our reports sent via remote outq's or the sndnetsplf command maintain
all their
attributes on the target machine including report names, userid's user data
etc.
regards
Kevin
But the noted concern was the JOB name which becomes as noted:
QPRTJOB.?.?