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

copy spool file into a new one with different printfile information

136 views
Skip to first unread message

Bernd Tronsberg

unread,
Oct 2, 1998, 3:00:00 AM10/2/98
to
Hi everybody,

Here my problem in two sentences:

I have a spoolfile which is linked to tray 1 of my printer
I would need one copy of that spoolfile which should be printed out from
tray 2, and another one which goes to tray 3.

Some more explanation:

I have the problem that our standard application program on the AS400 is not
able to separate the copies we need into different trays of our Lexmark
Optra S printer without going deep into the source of the application.

The only option I have is to select the number of copies, but all into the
same tray with one type of paper.

We would like to have the origin version of the document out from tray
number 1, a second copy with a different colored paper out of tray number 2,
a third copy out of tray 3 and so on.

My idea was to copy the origin spool file, just after it was created, and
than to copy it into a new spoolfile which now could be printed out from the
next tray.
Now I learned from our specialist that print information file of the origin
spoolfile is also a part of the copied spoolfiles and that the number of
tray could no be changed easily or maybe by a simple CL-program

Is there a tool available, which could help me?

Thanks in advance,
Bernd

nina jones

unread,
Oct 5, 1998, 3:00:00 AM10/5/98
to

there are some things that you can change about a job in the spool file and some that you
can't. and i think the drawer selection may be one of those that you can't.

could your program run the application 3 times? the first run could select drawer 1, the
2nd run drawer 2, and the 3rd drawer 3.

nj


David C. Anderson

unread,
Oct 6, 1998, 3:00:00 AM10/6/98
to Bernd Tronsberg
ask your specialist if he can copy the spool file and then do a chgsplfa
before he releases it. i am not sure if the "information" needed for
chgsplfa is available or not to be retrieved.

Bernd Tronsberg wrote:
>
> Hi everybody,
>
> Here my problem in two sentences:
>

> I have a spoolfile which is linked to tray 1 of my printer
> I would need one copy of that spoolfile which should be printed out from
> tray 2, and another one which goes to tray 3.
>
> Some more explanation:
>
> I have the problem that our standard application program on the AS400 is not
> able to separate the copies we need into different trays of our Lexmark
> Optra S printer without going deep into the source of the application.
>
> The only option I have is to select the number of copies, but all into the
> same tray with one type of paper.
>
> We would like to have the origin version of the document out from tray
> number 1, a second copy with a different colored paper out of tray number 2,
> a third copy out of tray 3 and so on.
>
> My idea was to copy the origin spool file, just after it was created, and
> than to copy it into a new spoolfile which now could be printed out from the
> next tray.
> Now I learned from our specialist that print information file of the origin
> spoolfile is also a part of the copied spoolfiles and that the number of
> tray could no be changed easily or maybe by a simple CL-program
>

> Is there a tool available, which could help me?
>
> Thanks in advance,
> Bernd

--
David C. Anderson
http://home.att.net/~dc.anderson
** if you think they are out to get you, you are probably right. **
*** it is not are you paranoid, but are you paranoid enough.**

Charles R. Pence

unread,
Oct 7, 1998, 3:00:00 AM10/7/98
to
Bernd Tronsberg wrote:
> I have a spoolfile which is linked to tray 1 of my printer
> I would need one copy of that spoolfile which should be printed out from
> tray 2, and another one which goes to tray 3.
> <<SNIP>>

> Now I learned from our specialist that print information file of the origin
> spoolfile is also a part of the copied spoolfiles and that the number of
> tray could no be changed easily or maybe by a simple CL-program
> <<SNIP>>

Some doc I read <SC41-5713> says:
On the AS/400 system, offset stacking of printed output is used. As the
job finishes, the paper tray moves, offsetting the stack of paper to
make it easier to distinguish between finished jobs. Because of this,
the data stream that is created on the AS/400 system contains the
control to indicate that offset stacking should be used. If the spooled
file is sent to a system that does not support offset stacking, an error
message may be issued.

From this I would infer that specifying a *DEVD <one which supports
stacking to allow separate trays> as the target of the print/spool
should effect the desired results? BTW could you tell me <I have no
clue ;-)> what is the difference between the tray, bin, and drawer?

Regards, Chuck
-- Comments provided "as is" with no warranties of any kind whatsoever.

Rodney Johnson

unread,
Oct 21, 1998, 3:00:00 AM10/21/98
to
The AS/400 puts the output bin into the data stream, that is why you cannot
change the output bin attribute of a spooled file. I don't know what release
you are running, but in V3R7 an exit interface was added to allow users to
specify a transform program (the transform program would be created by the user
or 3rd party vendor). One could write a transfrom program that would
manipulate the data stream to indicate the desired output bin before calling
Host Print Transform. This is probably more complex than you want to tackle.
Changing your application to create 1 spooled file for each output bin is
probably easier. You may be able to do this through DDS printer files
depending upon the data stream created. I believe *IPDS and *AFPDS have the
capability of doing what you desire. Again this requires modification to your
application.

Bernd Tronsberg wrote:

> Hi everybody,
>
> Here my problem in two sentences:
>

> I have a spoolfile which is linked to tray 1 of my printer
> I would need one copy of that spoolfile which should be printed out from
> tray 2, and another one which goes to tray 3.
>

> Some more explanation:
>
> I have the problem that our standard application program on the AS400 is not
> able to separate the copies we need into different trays of our Lexmark
> Optra S printer without going deep into the source of the application.
>
> The only option I have is to select the number of copies, but all into the
> same tray with one type of paper.
>
> We would like to have the origin version of the document out from tray
> number 1, a second copy with a different colored paper out of tray number 2,
> a third copy out of tray 3 and so on.
>
> My idea was to copy the origin spool file, just after it was created, and
> than to copy it into a new spoolfile which now could be printed out from the
> next tray.

> Now I learned from our specialist that print information file of the origin
> spoolfile is also a part of the copied spoolfiles and that the number of
> tray could no be changed easily or maybe by a simple CL-program
>

> Is there a tool available, which could help me?
>
> Thanks in advance,
> Bernd

--
\begindata{text,537673800}
\textdsversion{12}
\template{messages}

\bold{Rodney A Johnson, } \italic{(ro...@ibm.us.com)}

Technical Team Lead for AS/400 Spool

Dept GJC

IBM Rochester, Minnesota

(507)253-7925

t/l 553-7925\
\enddata{text,537673800}


Gary Guthrie

unread,
Oct 21, 1998, 3:00:00 AM10/21/98
to
Rodney,

Are you saying that the output bin is stored somewhere besides the spooled file attributes
area?

Gary Guthrie

Charles M. Wilt

unread,
Oct 21, 1998, 3:00:00 AM10/21/98
to
The way I read the original post, he wants to use a different source drawer
for each copy. And you can change the source drawer with the CHGSPLFA with
the DRAWER parameter.

Unfortunately, I'm at a loss as to how to send one copy, run CHGSPLFA, send
the second copy, run CHGSPLFA, and then send the third copy..

Good luck.
--
Charles Wilt
Miami Luken, Inc.
Springboro, OH. 45066
e-mail: charle...@worldnet.no.spam.att.net
--remove the .no.spam

Rodney Johnson <rjoh...@rchland.ibm.com> wrote in article
<362DFC1D...@rchland.ibm.com>...

Kevin Vette

unread,
Oct 21, 1998, 3:00:00 AM10/21/98
to
Charles M. Wilt wrote:

> The way I read the original post, he wants to use a different source drawer
> for each copy. And you can change the source drawer with the CHGSPLFA with
> the DRAWER parameter.
>
> Unfortunately, I'm at a loss as to how to send one copy, run CHGSPLFA, send
> the second copy, run CHGSPLFA, and then send the third copy..
>
> Good luck.
> --
> Charles Wilt
> Miami Luken, Inc.
> Springboro, OH. 45066
> e-mail: charle...@worldnet.no.spam.att.net
> --remove the .no.spam
>

For spooled files created using a printer file with a device type of *SCS,
nothing is stored in the datastream for either the source drawer or output bin
so it can normally be changed . The only time it cannot be changed for this is
if the DDS DRAWER keyword is used in the file (and thus the drawer is put into
the datastream). For spooled files created with a device type of *AFPDS, the
source drawer and output bin from the printer file are put into the Medium
Modification Control of the AFPDS (MODCA) datastream. Thus, they are not
changeable with CHGSPLFA.


Charles R. Pence

unread,
Oct 21, 1998, 3:00:00 AM10/21/98
to
> <<SNIP>> source drawer and output bin from the printer file are put into the

> Medium
> Modification Control of the AFPDS (MODCA) datastream. Thus, they are not
> changeable with CHGSPLFA.

I'm still curious what Bin, Tray, and Drawers are... Anyone?

Regards, Chuck
All comments provided "as is" with no warranties of any kind whatsoever.

Gary Guthrie

unread,
Oct 21, 1998, 3:00:00 AM10/21/98
to
Unless I'm terribly mistaken, spooled file APIs can indeed change the output bin for
spooled files.

I mention this because mention of CHGSPLF keeps popping up as though that's the only way
to change information about spooled files.

Spooled file APIs won't really "change" the existing spooled, rather they can create a new
spooled file with the changed data. It sounds like the sort of thing the questioner is
looking for - create a single spooled file and then duplicate it with slightly different
attributes.

Gary Guthrie
Editor, The RPG Source
Technical Editor, NEWS/400 magazine

Charles R. Pence

unread,
Oct 21, 1998, 3:00:00 AM10/21/98
to
So Tray and Drawer are interchangeable terms... meaning the source for the paper,
onto which the printing will occur for a certain page; and the Bin <aka Output Bin>
is where to stack the paper?

Gary Guthrie

unread,
Oct 21, 1998, 3:00:00 AM10/21/98
to
> I'm still curious what Bin, Tray, and Drawers are... Anyone?

A tray is a drawer is not a bin!

Source drawer (often referred to as tray) is the "hopper" from which paper is fed to the
printer.

Bin is the output bin on printers that support them. This is where the printer puts the
paper after the page has been printed.

Gary Guthrie

unread,
Oct 21, 1998, 3:00:00 AM10/21/98
to
> So Tray and Drawer are interchangeable terms... meaning the source for the paper,
> onto which the printing will occur for a certain page; and the Bin <aka Output Bin>
> is where to stack the paper?


By Golly, I think he's got it! :)

Gary

Charles R. Pence

unread,
Oct 21, 1998, 3:00:00 AM10/21/98
to
So the doc I quoted earlier, probably should have said 'bin' instead of 'tray' for the
offset stacking.

John Gojnich

unread,
Oct 22, 1998, 3:00:00 AM10/22/98
to
"Charles R. Pence" wrote:

> > <<SNIP>> source drawer and output bin from the printer file are put into the
> > Medium
> > Modification Control of the AFPDS (MODCA) datastream. Thus, they are not
> > changeable with CHGSPLFA.
>

> I'm still curious what Bin, Tray, and Drawers are... Anyone?

OK, here goes it ...

In the days before 30" (76cm) Flat Panel displays with 600 dpi resolution,
we had an IO device (or should I say source-sink from the paper's point of view)
called a printer.

You put the paper in a "Tray" or "Drawer" and in some highly advanced
models it would then go straight into a "Bin".

;)
John Gojnich

Kevin Vette

unread,
Oct 22, 1998, 3:00:00 AM10/22/98
to
Gary Guthrie wrote:

> Unless I'm terribly mistaken, spooled file APIs can indeed change the output bin for
> spooled files.
>
> I mention this because mention of CHGSPLF keeps popping up as though that's the only way
> to change information about spooled files.
>
> Spooled file APIs won't really "change" the existing spooled, rather they can create a new
> spooled file with the changed data. It sounds like the sort of thing the questioner is
> looking for - create a single spooled file and then duplicate it with slightly different
> attributes.
>

The point I was trying to make was that for SCS files (as long as they don't use the drawer
keyword), the spool apis could be used to create a new file that could have a different
source drawer or output bin. For AFPDS files, the user would have to parse the datastream in
order to change these attributes as they are imbedded in the inline formdef that is generated
into the spooled file when it is created.

--
Kevin Vette
AS/400 Spool/Print
IBM Rochester, Minnesota
Internet: vette @ us.ibm.com
Comments provided "as is" - no warranties provided


Charles M. Wilt

unread,
Oct 22, 1998, 3:00:00 AM10/22/98
to
I'll need to keep this in mind when we move away from *SCS printing.

--
Charles Wilt
Miami Luken, Inc.
Springboro, OH. 45066
e-mail: charle...@worldnet.no.spam.att.net
--remove the .no.spam

Kevin Vette <kjv...@worldnet.att.net> wrote in article
<362E409F...@worldnet.att.net>...


>
> For spooled files created using a printer file with a device type of
*SCS,
> nothing is stored in the datastream for either the source drawer or
output bin
> so it can normally be changed . The only time it cannot be changed for
this is
> if the DDS DRAWER keyword is used in the file (and thus the drawer is put
into
> the datastream). For spooled files created with a device type of *AFPDS,
the

tho...@inorbit.com

unread,
Oct 23, 1998, 3:00:00 AM10/23/98
to
Bernd:

I don't have printers to test this thought, but you might be able to create
additional *devds for the same physical printer, specifying different
workstation customizing objects for each. The WSCSTs could perform drawer/bin
swapping. You could send the same spoolfile to three different outqs, but each
would give a different print result on the same physical printer through
different logical printer definitions.

Tom Liotta

In article <6v2vme$enk$1...@news01.btx.dtag.de>,


BTron...@t-online.de (Bernd Tronsberg) wrote:
> Hi everybody,
>
> Here my problem in two sentences:
>
> I have a spoolfile which is linked to tray 1 of my printer
> I would need one copy of that spoolfile which should be printed out from
> tray 2, and another one which goes to tray 3.
>
> Some more explanation:
>
> I have the problem that our standard application program on the AS400 is not
> able to separate the copies we need into different trays of our Lexmark
> Optra S printer without going deep into the source of the application.
>
> The only option I have is to select the number of copies, but all into the
> same tray with one type of paper.
>
> We would like to have the origin version of the document out from tray
> number 1, a second copy with a different colored paper out of tray number 2,
> a third copy out of tray 3 and so on.
>
> My idea was to copy the origin spool file, just after it was created, and
> than to copy it into a new spoolfile which now could be printed out from the
> next tray.
> Now I learned from our specialist that print information file of the origin
> spoolfile is also a part of the copied spoolfiles and that the number of
> tray could no be changed easily or maybe by a simple CL-program
>
> Is there a tool available, which could help me?
>
> Thanks in advance,
> Bernd
>
>

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own

0 new messages