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

Changing spool file status manually...

354 views
Skip to first unread message

Alex Quiroga

unread,
Aug 17, 1996, 3:00:00 AM8/17/96
to

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

Dennis Jones

unread,
Aug 18, 1996, 3:00:00 AM8/18/96
to

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

willsher

unread,
Aug 18, 1996, 3:00:00 AM8/18/96
to

al...@shadow.net (Alex Quiroga) wrote:

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


Steve Bromley

unread,
Aug 20, 1996, 3:00:00 AM8/20/96
to Alex Quiroga

Alex Quiroga wrote:
>
> 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??

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

Steve Bromley

unread,
Aug 20, 1996, 3:00:00 AM8/20/96
to Alex Quiroga

Orangtang

unread,
Aug 21, 1996, 3:00:00 AM8/21/96
to

The only I know to get a report to SAV sts is to print it. Why not just
put it on a HLD status? Same thing as SAV..

Njal Fisketjon (Njål Fisketjøn)

unread,
Aug 24, 1996, 3:00:00 AM8/24/96
to

>Alex Quiroga wrote:
>>
>> 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.
>>

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


Tom Tobin

unread,
Aug 29, 1996, 3:00:00 AM8/29/96
to

al...@shadow.net (Alex Quiroga) wrote:

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


chuck

unread,
Aug 30, 1996, 3:00:00 AM8/30/96
to

In article <5049lv$a...@opera.iinet.net.au>, dw...@iinet.net.au says...

>
>al...@shadow.net (Alex Quiroga) wrote:
>
>>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??
>
>
There's bound to be an API. Check the SPUR manual.

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


0 new messages