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

Anybody knows how to save a spool file?

1 view
Skip to first unread message

jla...@gadisa.es

unread,
May 24, 2002, 1:11:18 PM5/24/02
to
Hi All,
I'm trying to save an spool file to a tape because I want to test
a new printer and I want to use my owns test files. Any Idea?

Thanks in advance

(P.S. V4R3M0)

Charles Wilt

unread,
May 24, 2002, 1:59:14 PM5/24/02
to
In article <3cee6626$1...@news.arrakis.es>, jla...@gadisa.es says...

Basically there isn't a built-in way of doing this. However:

1) You can read the spool file and write it to something you can save by
using APIs
2) You could just buy a third-party application that will do it
3) If it's a SCS spool file, then you could to CPYSPLF to the spool file
to a DB file. Then use, I believe, CPYF TOFILE(*PRINT) to recreate the
spool file.

HTH,
Charles

AlexS

unread,
May 24, 2002, 8:45:41 PM5/24/02
to
1. find which outqueue file is on
2. find which library queue is in
3. save library with data

But much easier is to specify save(*yes) on spool file. You can print it as
many times as you want then.

HTH
Alex

<jla...@gadisa.es> wrote in message news:3cee6626$1...@news.arrakis.es...

Bradley V. Stone

unread,
May 24, 2002, 6:43:50 PM5/24/02
to
I don't believe that saves spooled files unless that was a change in a
recent version.

Brad

AlexS

unread,
May 25, 2002, 2:07:00 AM5/25/02
to
Right, no way using SAV commands - only description of the queue will be
saved.

So, either save (*yes), either copying spool file into some data member (PF)
using CPYSPLF and losing some info.

Alex
Hope dies last...

"Bradley V. Stone" <bvs...@onebox.com> wrote in message
news:3ceec211...@news.gotocrystal.net...

Chris Karge

unread,
May 25, 2002, 3:38:08 PM5/25/02
to
If it is a "simple" spooled file, then you can do the following:

To Save:
1. CRTPF FILE(MYLIB/SPOOLDTA) SRCMBR(256)
2. CPYSPLF FILE(filename)
TOFILE(MYLIB/SPOOLDTA)
JOB(jobno/user/jobname)
SPLNBR(0001)
CTLCHAR(*FCFC)
3. SAVOBJ ...

To Restore:
1. RSTOBJ ...
2. OVRPRTF FILE(QSYSPRT) CTLCHAR(*FCFC)
3. CPYF FROMFILE(MYLIB/SPOOLDTA) TOFILE(QSYSPRT)


It's cheesy, but it works... You can add other parameters to the OVRPRTF if
you
need different CPI, LPI, etc...

HTH,
Chris


<jla...@gadisa.es> wrote in message news:3cee6626$1...@news.arrakis.es...

James

unread,
May 26, 2002, 10:14:45 AM5/26/02
to
I you are looking to move multiple Save Files or a whole OUTQ, here are two
commands I have used successfully in the past:

CPYTOOUTQ
CPYFRMOUTQ

Info found here: http://www.taatool.com/document/L_cpyfrmoutq.htm

<jla...@gadisa.es> wrote in message news:3cee6626$1...@news.arrakis.es...

HIS

unread,
May 28, 2002, 5:35:59 AM5/28/02
to

Do you know the GETSPLF and PUTSPLF command ?
--
Ce message a ete poste via la plateforme Web club-Internet.fr
This message has been posted by the Web platform club-Internet.fr

http://forums.club-internet.fr/

Henk Rotman

unread,
May 28, 2002, 5:56:27 AM5/28/02
to
It must be changed about 10 years ago, I 've saved spoolfiles this way all
these years.

Henk

Bradley V. Stone <bvs...@onebox.com> schreef in berichtnieuws
3ceec211...@news.gotocrystal.net...

René H. Hartman

unread,
May 28, 2002, 7:11:40 AM5/28/02
to
*** post for FREE via your newsreader at post.newsfeed.com ***

I suggest mr. Rotman tries to recover a spoolfile saved this way...
I'm pretty sure he never did.

To the original poster: If you do a SNDNETSPLF (SNA) or a SNDTCPSPLF
(TCP) to yourself, you get a nice 'personal' copy that you can play
with. If you really need to save the spoolfile to tape, you need to copy
it to a database file using CTLCHR(*FCFC) and save the database file to
tape. You can then later recreate the spoolfile using CPYF <database
file> QSYSPRT after having overriden QSYSPRT with ctlchr(*fcfc) (OVRPRTF
command).
--
Vriendelijke groeten / Kind regards
René H. Hartman
R.H. Hartman Automatiserings Consultancy
www.hac-maarssen.nl

-----= Posted via Newsfeed.Com, Uncensored Usenet News =-----
http://www.newsfeed.com - The #1 Newsgroup Service in the World!
-----== 100,000 Groups! - 19 Servers! - Unlimited Download! =-----

Henk Rotman

unread,
May 28, 2002, 8:34:09 AM5/28/02
to
You 're right, but I never had to; The only use for "saving" spool files was
to be able to reprint them if the paper was lost. For this purpose the
"method'was good enough. And the option where AlexS I think referred (in
printerfile descriptions) exist for at least 10 years. That long I work with
AS400.

Henk

René H. Hartman <sup...@sorry-nospam.nl> schreef in berichtnieuws
3cf3...@post.newsfeed.com...

Rodney Johnson

unread,
May 28, 2002, 9:21:02 AM5/28/02
to
GETSPLF and PUTSPLF (QSPGETF and QSPPUTF) are to be used by IBM service
only. These are not supportted and definitely do have bugs. Don't
bother calling IBM service if you attempt to use these and have
problems.

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

0 new messages