Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

saving qpjoblog spool files

277 views
Skip to first unread message

Susie Ward

unread,
Jun 10, 1999, 3:00:00 AM6/10/99
to
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.

Thomas Walck

unread,
Jun 11, 1999, 3:00:00 AM6/11/99
to
If it is the same particular job every time, maybe you could use a CL
program to override the qpjoblog spool file to a different outq.

Tom Walck


Susie Ward <ward...@my-deja.com> wrote in message
news:7jp9ui$tak$1...@nnrp1.deja.com...

See

unread,
Jun 11, 1999, 3:00:00 AM6/11/99
to
We have an utility to clear any output queue with selection of which job,
what spool name, how many days before....
For more detail, please email wo...@yahoo.com

Jack

unread,
Jun 11, 1999, 3:00:00 AM6/11/99
to
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.
>
>

Karl Hanson

unread,
Jun 11, 1999, 3:00:00 AM6/11/99
to
Susie Ward 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 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

Rick at Petra Consulting

unread,
Jun 11, 1999, 3:00:00 AM6/11/99
to
Susie,

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.
>

Thomas Raddatz

unread,
Jun 11, 1999, 3:00:00 AM6/11/99
to
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:
>
> 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/

*=====================================================*


See

unread,
Jun 12, 1999, 3:00:00 AM6/12/99
to

See

unread,
Jun 14, 1999, 3:00:00 AM6/14/99
to
I have tried. I created a new dtaq and than attached to an existing outq
with 3 spools. I can use QRCVDTAQ to get those 3 spools info. but after I
received all, the dtaq contains nothing, how can i reload it so the dtaq
will contain all spool info?

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:
>>

Jack

unread,
Jun 14, 1999, 3:00:00 AM6/14/99
to
From the *DTAQ you will obtain ONLY the spoolfiles info and just when each
spoolfile comes in the queue. You have to do the rest (analize, delete,
move, copy to PF, etc., etc.) using APIs or commands.


See <a...@abc.com> wrote in message 7k0r5d$k8...@pegasus.hkstar.com...

Rodney Johnson

unread,
Jun 14, 1999, 3:00:00 AM6/14/99
to
Entries are placed onto a DTAQ (when associated with OUTQ) every time a spooled
file on that output queue goes to RDY status. This would include the moving or
creating of a spooled file on the queue IF the spooled file is in RDY status.

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.


Rick at Petra Consulting

unread,
Jun 16, 1999, 3:00:00 AM6/16/99
to
You can use the Retrieve Data Queue Message (QMHRDQM) API to read
entries on a non-DDM data queue without removing them.

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

Thomas Raddatz

unread,
Jun 16, 1999, 3:00:00 AM6/16/99
to Susie Ward
You can use SNDNETSPLF to "copy" a spooled file within your own box.
Just send the spooled file to a user profile available on your box. If
you have enabled TCP/IP, SNDTCPSPLF may probably to the job, too.

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:

0 new messages