I tried copying qsys/qpjoblog file to another library and doing a
chgsyslibl to the new library but apparently the chgsyslibl is not in
affect once the job finishes. Also an ovrprtf on qsys/qpjoblog is not
allowed.
Is there another way of doing this? I know I can do a dspjoblog to a
database file if nothing else.
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
Tom Walck
Susie Ward <ward...@my-deja.com> wrote in message
news:7jp9ui$tak$1...@nnrp1.deja.com...
Susie Ward <ward...@my-deja.com> wrote in message
7jp9ui$tak$1...@nnrp1.deja.com...
> How do I save the qpjoblog spooled file of particular jobs? Our system
> is set to clean up qpjoblog files but I need to retain qpjoblogs for
> certain jobs for a while longer. I would like to put them into another
> output queue that won't get cleaned up.
>
> I tried copying qsys/qpjoblog file to another library and doing a
> chgsyslibl to the new library but apparently the chgsyslibl is not in
> affect once the job finishes. Also an ovrprtf on qsys/qpjoblog is not
> allowed.
>
> Is there another way of doing this? I know I can do a dspjoblog to a
> database file if nothing else.
>
>
The qsys/qpjoblog file is a printer device file, not a spooled file. It
is used to create job log spooled files, but the output queue containing
the spooled files does not depend on the library of the printer file.
If you can manage the job log spooled files after they are created but
before cleanup, one possibility is the CHGSPLFA (Change Spooled File
Attributes) OUTQ parameter. This can move a spooled file to another
output queue - see WRKSPLF option 2. Also if you want to retain the job
log data in a database file, CPYSPLF may be useful(?)
--
Karl Hanson
There are a several ways to accomplish what I think you are trying to
do.
1. As mentioned in a previous post you can acquire or write a utility
to selectivly delete entries from the QPJOBLOG output queue.
2. You can move the logs you want to keep using the Move Spooled File
API (QSPMOVSP) to a different queue. The new queue will need to be
cleaned up periodically.
3. You can copy the spool entry to another queue if you want the
original left in the QPJOBLOG queue. This would involve several API's.
Open List of Spooled Files (QGYOLSPL) API
Open Spooled File (QSPOPNSP) API
Create Spooled File (QSPCRTSP) API
Put Spooled File Data (QSPPUTSP) API
Retrieve Spooled File Attributes (QUSRSPLA) API
I think that will cover it.
There are probably additional options I haven't thought of. Hope this
helps.
--
Rick Chevalier
Petra Consulting
In article <7jp9ui$tak$1...@nnrp1.deja.com>,
Susie Ward <ward...@my-deja.com> wrote:
> How do I save the qpjoblog spooled file of particular jobs? Our
system
> is set to clean up qpjoblog files but I need to retain qpjoblogs for
> certain jobs for a while longer. I would like to put them into
another
> output queue that won't get cleaned up.
>
> I tried copying qsys/qpjoblog file to another library and doing a
> chgsyslibl to the new library but apparently the chgsyslibl is not in
> affect once the job finishes. Also an ovrprtf on qsys/qpjoblog is not
> allowed.
>
> Is there another way of doing this? I know I can do a dspjoblog to a
> database file if nothing else.
>
The counterpart of QRCVDTAQ is QSNDDTAQ.
Thomas Raddatz, Germany.
See schrieb:
>
> What's the meaning of "associated program"?
> Is it meant that the DTAQ assigned to the outq will contain data showing the
> content of that OUTQ, then we just use a program to receive from the DTAQ?
>
> Then, will the DTAQ be updated automatically?
>
> SEE
>
> Jack wrote in message <3760...@news.uk.ibm.net>...
> >A different way.
> >You can assign a *DTAQ to the *OUTQ and by the *DTAQ associated program you
> >can act as you need for every spoolfile appears in that *OUTQ. In the *DTAQ
> >you'll find a record for each spoolfile with all the ids.
> >Regards.
> >
> >Susie Ward <ward...@my-deja.com> wrote in message
> >7jp9ui$tak$1...@nnrp1.deja.com...
> >> How do I save the qpjoblog spooled file of particular jobs? Our system
> >> is set to clean up qpjoblog files but I need to retain qpjoblogs for
> >> certain jobs for a while longer. I would like to put them into another
> >> output queue that won't get cleaned up.
> >>
> >> I tried copying qsys/qpjoblog file to another library and doing a
> >> chgsyslibl to the new library but apparently the chgsyslibl is not in
> >> affect once the job finishes. Also an ovrprtf on qsys/qpjoblog is not
> >> allowed.
> >>
> >> Is there another way of doing this? I know I can do a dspjoblog to a
> >> database file if nothing else.
> >>
> >>
> >> Sent via Deja.com http://www.deja.com/
> >> Share what you know. Learn what you don't.
> >
> >
--
*=====================================================*
e-mail Adresse:
Thomas....@Online-Club.de
Homepage:
http://www.online-club.de/~Thomas.Raddatz/
*=====================================================*
thanks.
Thomas Raddatz wrote in message <3761522B...@online-club.de>...
>An associated program is a program that is waitung for the arrival of
>new entries in the data queue. You can use QRCVDTAQ in order to wait for
>and to receive entries from a dataque. It is possible to associate more
>than one program to a data queue.
>
>The counterpart of QRCVDTAQ is QSNDDTAQ.
>
>Thomas Raddatz, Germany.
>
>
>See schrieb:
>>
See <a...@abc.com> wrote in message 7k0r5d$k8...@pegasus.hkstar.com...
Once you receive that data queue entry, it is gone.
See wrote:
--
Rodney A Johnson
Technical Team Lead for AS/400 Spool
Dept GJC
IBM Rochester, Minnesota
The contents of this message express only the sender's opinion.
This message does not necessarily reflect the policy or views of
my employer, IBM. All responsibility for the statements
made in this Usenet posting resides solely and completely with the
sender.
Information can be found at
http://publib.boulder.ibm.com/pubs/html/as400/online/v4r3eng.htm
If you retrieve entries on a periodic basis you will have to handle
reading entries previously processed.
Rick
In article <7k0r5d$k8...@pegasus.hkstar.com>,
--
Rick Chevalier
Petra Consulting
Another approach may be to use my own written SAVSPLF and RSTSPLF which
can be used to save a spooled file into two user spaces (one for the
data and one for the attributes) and to restore it from the user spaces.
Feel free to contact me if I should send the source code to you. The
commands are just simple examples in order to show the use of QSPGETSP
and QSPPUTSP APIs but they work well.
Thomas Raddatz, Germany.
Susie Ward schrieb: