We are using software which copies spool files from an output queue to a
folder. We're trying to change the status to *SAV after they are copied.
Any suggestions??
I'm not sure you can do exactly what you want but you might want to
look at the CHGSPLFA CL command. Maybe you change some other attribute
of the file like USRDTA etc. to identify that it has been copied.
Dennis
>Is there a way to change the status of a spool file from *RDY to *SAV?
>I am trying to find a way using CL or RPG, with no luck.
>We are using software which copies spool files from an output queue to a
>folder. We're trying to change the status to *SAV after they are copied.
>Any suggestions??
Don't think you can do this, as *SAV is only applicable when the file
has been printed. If you SNDNETSPLF a file, the file remains on the
source system, and the status does not change. Would it not be
possible to simply transfer the spooled files to a new output queue,
such as SAVEQ?
"There's two lanes running down this road, and whichever side you're on...
Accounts for where you want to go, or what you're running from..."
Jim Willsher <will...@sol.co.uk>
You may also consider one of the System API's for spooling. I believe
there is a was of changing the needed information using one of the API's
to do what you ask. Using the CHGSPLFA would be a bit easier though.
Steve Bromley
You'll have to write a MI program. An output queue are just an
indepent index, and as such it can be manipulated with MI
instructions. I think I recall that there's a one byte field in each
index entry specifying the current status of each spool entry on the
output queue.
Njal Fisketjon
FIGU DATA AS
nfis...@figu.no
nox9...@ibmmail.com
>Is there a way to change the status of a spool file from *RDY to *SAV?
>I am trying to find a way using CL or RPG, with no luck.
>We are using software which copies spool files from an output queue to a
>folder. We're trying to change the status to *SAV after they are copied.
>Any suggestions??
Why do you need to change the status to *SAV ?
If the spoolfile attribute is set to SAVE(*YES) then it doesn't matter
if the status is *RDY, *HLD or *SAV. Either way the spoolfile won't be
deleted if it is printed. If you need to change its status to identify
the copied files then why not change it to *HLD i.e. HLDSPLF.
Alternatively you could change the form type, CHGSPLFA FORMTYPE(xxx).
I hope this helps.
--
============================================================8-)
Chuck Lyon - Tech. Support - Southeast Regional Data Center
Florida International University - State of Fla. Univ. System
Miami FL 33199 Ph [305]348-2912 FAX [305]348-3622
----------------------------------------------------------------
"It would make him physically ill to think of programming in C++"
- Donald Knuth on Edsgar Dijkstra
----------------------------------------------------------------