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

Combining Spooled Files

424 views
Skip to first unread message

michael Geldert

unread,
Jan 2, 1998, 3:00:00 AM1/2/98
to

Does anyone know of a way to combine multiple AFP spooled files into a
single Spooled file? Any applications available for this?

Any Assistance would be appreciated!


--
Mike Geldert, Infinity Software Systems, Inc.
Infinity...@CIS.Com

Les Cayes

unread,
Jan 3, 1998, 3:00:00 AM1/3/98
to

In article <01bd17d0$5d9c4240$b1beafce@mgpent>, "michael Geldert"
<MGEL...@aol.COm> wrote:

+Does anyone know of a way to combine multiple AFP spooled files into a
+single Spooled file? Any applications available for this?
+
+Any Assistance would be appreciated!
+

You can copy the spooled files into a physical file using CPYSPLF. Make
sure that the MBROPT parameter is set to *ADD. Then use CPYF to create a
spooled file from that physical file. In this case, the parameter TOFILE
should be *PRINT.

As for an app which would do all that, try looking into the user tools
that used to be included with OS/400. I think you can still order them
from either Big Blue or some other guy.

Happy New Year!
LesC.

--
Every question has two answers.
One for you, and one for me.

Bradley V. Stone

unread,
Jan 4, 1998, 3:00:00 AM1/4/98
to

On Sat, 03 Jan 1998 18:29:44 -0500, LCa...@Gauvin.com (Les Cayes)
wrote:

This won't work for IPDS or AFP. You might have to dig into the
spooled file APIs.


Bradley V. Stone
bvs...@usa.net
http://prairie.lakes.com/~bvstone/
1992 Yamaha FJ1200
1969 Suzuki T250
"I was on fire.... and I was dry!"

Anton Gombkötö

unread,
Jan 5, 1998, 3:00:00 AM1/5/98
to

I do not know any tool that does anything similar to that. But i do know
enough about AFP to tell you that this is one of the most complicated tasks.
You have no support from OS/400. AFP consists of so-called "structured
fields". Most of them are like brackets, e.g. BDT = Begin Document has a EDT
= End Document. So one has to insert the pages from the other spooled files
in the right place. By the way, you cannot alter an existing spooled file.
You'll have to create a new one. To complicate things even more, the spooled
file API QSPPUTSP, which writes the data in the spooled file, has to write
blocks of approx. 4000 bytes (can't remember the exact size). You might also
encounter resource problems (overlays, page segments and so on).
Keep hands off, it's really hard and nobody will understand that a program
like this takes about one man year to handle all possible spooled files
correct.
It took me almost 4 months to write a program that converts SCS spooled
files to AFPDS spooled files. It works now, even with OV/400 spooled files,
but i really do not want to do it again...

Maybe there is another solution for your problem, but you did not tell us
what you really want to do with the new spooled file.

If you hear something about tools concerning AFP, please mail me!

---------------------------------------------
Anton Gombkötö, E-Mail: Gombk...@ASSoft.com

AS Software
Jedleseer Strasse 3
A-1210 Vienna, Austria, Europe
Homepage: http://www.assoft.com
---------------------------------------------


michael Geldert schrieb in Nachricht <01bd17d0$5d9c4240$b1beafce@mgpent>...


>Does anyone know of a way to combine multiple AFP spooled files into a

>single Spooled file? Any applications available for this?
>

michael Geldert

unread,
Jan 8, 1998, 3:00:00 AM1/8/98
to

Thanks for your reply!!!!

I am trying to solve a problem with Facsimile support 400. The product
sends faxes(actualy spooled files). These spooled files are sent through
the AS/400
fax adapter just like a spooled file to a printer. The Actual problem is
the user wants to send multiple spooled files to one fax recipient but have
that spooled file "appear" to be ONE fax. (They would REALLY like for it
to be one phone call, but Fax/400 does not allow this.) If I send several
faxes to the fax adapter One after the other, the user gets the spooled
files in order, However a couple of problems occur. The problem the user
is most concerned with is that the Cover page, sent with the 1st spooled
file, contains the number of pages the recipient should expect to receive,
but when sending the spooled files like this, the cover page only contains
the number of pages in the 1st spooled file, not the entire group of
spooled files.
The other problem of course is that by sending multiple faxes consecutivly,
there is the possiblity that between the sending of one of the spooled
files, and the sending of the next, the recipient's fax machine could
receive another fax from some other source.

SOOOO... I was hoping to find a way to combine the spooled files into a
single spooled file to send through the fax adapter. If the data was only
text (no AFP), I could accomplish this using some funky coding and
utilizing the Office Vision api's to Merge spooled data into a document ,
then print the resulting document as a single spooled file. BUT, AFP data
is lost when including spooled files into a document, and They are in need
of sending Images as well as Text data.

Thanks again for your reply!


--
Mike Geldert, Infinity Software Systems, Inc.

Infinity...@CSI.Com

Anton Gombkötö <gombk...@assoft.com> wrote in article
<34b0d...@news.cso.net>...


> I do not know any tool that does anything similar to that. But i do know
> enough about AFP to tell you that this is one of the most complicated
tasks.
>>>>>>

T.Withana

unread,
Jan 9, 1998, 3:00:00 AM1/9/98
to

Michael,

As an idea you can combine your spool files into one using a CL and send
that spool file using commands such as

This will copy spool1 to Qtemp/Temp
CPYSPLF FILE(&SPLFNAME) TOFILE(QTEMP/Temp) +
JOB(&SPLFJNBR1/&SPLFUSER/&SPLFJOB) +
SPLNBR(&SPLFNBR) CTLCHAR(*FCFC) mbropt(*replace)

This will append spool2 to Qtemp/Temp
CPYSPLF FILE(&SPLFNAME) TOFILE(QTEMP/Temp) +
JOB(&SPLFJNBR2/&SPLFUSER/&SPLFJOB) +
SPLNBR(&SPLFNBR) CTLCHAR(*FCFC) mbropt(*add)

This will create a merged spool file QSYSPRT
OVRPRTF FILE(QSYSPRT) CTLCHAR(*FCFC) OUTQ(&OUTQ) +
FORMTYPE(COPYPACK) HOLD(*NO) SAVE(*NO) +
USRDTA(DUPLICATE) SPLFNAME(&SPLFNAME)


CPYF FROMFILE(QTEMP/Temp) TOFILE(QSYSPRT)

Then you can pump QSYSPRT to your Fax !

Hope this will help

Tissa

Paul H. Fistler

unread,
Jan 10, 1998, 3:00:00 AM1/10/98
to michael Geldert

Michael,
Yes there is software available for what your doing. We had IBM write
us special code to join spool files. They have two versions, one is if
your joining AFP image/plus files and AFP-IPDS file together for a $
charge, or the other option if both spools files are exactly alike they
have a free version. For the free version call IBM Support line and talk
to the Facsimile support group. Call Bob Zeller at IBM 507-286-6514 and
ask him the cost for the SPJOIN3F program. The program was written for
Renkim Corporation. Tell Bob you got this information from me.
If you need more help just email me with your questions. Hope this
helps. Paul
0 new messages