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

how to modify user data field of a spool file?

550 views
Skip to first unread message

Mitch Gallman

unread,
Feb 5, 1997, 3:00:00 AM2/5/97
to

I am looking for information on how to change the user data field of a
spool file within a RPG program. I know how to change it using ovrprtf but
I would rather change it internally. Any help would be much appreciated.

Mitch Gallman

Scott Klement

unread,
Feb 5, 1997, 3:00:00 AM2/5/97
to

I don't know of a way to do this using RPG directly, but you could do it
easily using the QCMDEXC API.

Example:

eval Command='OVRDBF FILE(QSYSPRT) USRDTA(xxxx)'
eval Length = 128
call 'QCMDEXC'
parm Command 128
parm Length 15 5

Thomas A. Covey

unread,
Feb 5, 1997, 3:00:00 AM2/5/97
to

Don't forget to open the file after the override (put it under programmer
control or
close before override).

Scott Klement <klem...@orion.ods.net> wrote in article
<32F8AA...@orion.ods.net>...

Scott Klement

unread,
Feb 6, 1997, 3:00:00 AM2/6/97
to

Thomas A. Covey wrote:
>
> Don't forget to open the file after the override (put it under programmer
> control or
> close before override).

Heh... not only that, but I put "OVRDBF" instead of "OVRPRTF" in
my source. You'd be amazed how often I do that :)

Thomas A. Covey

unread,
Feb 7, 1997, 3:00:00 AM2/7/97
to

Great pick up dude - I missed it completely! Sorry Mitch - Thanks Scott

Scott Klement <klem...@orion.ods.net> wrote in article

<32FA44...@orion.ods.net>...

Jaime Padreny i Rubí

unread,
Feb 9, 1997, 3:00:00 AM2/9/97
to

You can try with CHGSPLF

Mitch Gallman <ow...@voyageronline.net> escribió en artículo
<01bc1377$34afbe60$157683d0@pc89>...

Francis Lapeyre

unread,
Feb 19, 1997, 3:00:00 AM2/19/97
to Mitch Gallman

Mitch:

You need to declare the printer file as user controlled in the F-spec,
perform the override within the RPG (via a call to QCMDEXC), then you
can open the printer file with an OPEN opcode. The default, if you don't
do any of that, is the name of the program.

--
Francis Lapeyre flap...@communique.net
--------------------------------------------------------
Opinions are my own. Otherwise, they are someone else's.
--------------------------------------------------------

0 new messages