Sorry. Forgot to mention in my previous reply that the protocol that the
Windows definition is using is "Raw". Not sure what that means, but there
it is.

Jerry C. Adams
IBM i Programmer/Analyst
The profits shall be equally divided and the residue goes to the governor. -
Irish Bank Bill, 1808
--
A&K Wholesale
Murfreesboro, TN
615-867-5070


-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Scott, Bill
Sent: Thursday, June 30, 2011 8:56 AM
To: Midrange Systems Technical Discussion
Subject: RE: Printer Configuration Not Working

Look at the Windows port configuration that you are successfully using. You
might be LPRing to the printer and not have an open port and/or it may not
be 9100.

Bill Scott
Océ North America, Inc.
Tel.: (561) 997-3256
e-mail: Bill.Scott@xxxxxxx
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Jerry C. Adams
Sent: Thursday, June 30, 2011 9:50
To: 'Midrange Systems Technical Discussion'
Subject: RE: Printer Configuration Not Working

Vern,

I didn't state it, but on my first try that is what I did; i.e., let the
CRTDEVD auto-create the output queue. Same results/problems.

Jerry C. Adams
IBM i Programmer/Analyst
Some quiet guys are inwardly outgoing. - Ralph Kiner, NY Mets announcer
--
A&K Wholesale
Murfreesboro, TN
615-867-5070

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Vern Hamberg
Sent: Thursday, June 30, 2011 8:32 AM
To: Midrange Systems Technical Discussion
Subject: Re: Printer Configuration Not Working

Hi Jerry

Since you are creating a true device, I'd say that you should not create
the remote OUTQ - the OUTQ will be created automatically, as when you
create a local device.

In fact, your OUTQ is only local - not a remote OUTQ - therefore, it is
probably deeply in conflict with the device. Get rid of the CRTOUTQ, my
friend!

HTH
Vern

On 6/30/2011 8:09 AM, Jerry C. Adams wrote:
I am having trouble getting a LAN printer configured and working as a
System
i printer. The information below may be overkill, but I'm at a loss as to
how to proceed. We are on V5R1, and I can print to the printer (HP
LaserJet
4050) from PC programs. So I thought we could use it as a System i
(AS/400)
printer. Maybe I'm in error, but.



I created the outq:



CRTOUTQ OUTQ(QUSRSYS/CR) AUTOSTRWTR(1) MFRTYPMDL(*IBM3812)



I created the device description:



PGM



DLTDEVD DEVD(CR)

MONMSG MSGID(CPF2105)



CRTDEVPRT DEVD(CR) DEVCLS(*LAN) TYPE(3812) MODEL(1) +

LANATTACH(*IP) PORT(9100) ATTACH(*DIRECT) +

ONLINE(*YES) FONT(011 *NONE) +

FORMFEED(*AUTOCUT) SEPDRAWER(*FILE) +

PRTERRMSG(*INQ) MSGQ(QUSRSYS/AJERRY) +

ACTTMR(170) INACTTMR(*SEC15) +

LINESPEED(19200) WORDLEN(8) PARITY(*NONE) +

STOPBITS(1) TRANSFORM(*YES) +

MFRTYPMDL(*HP4000) PPRSRC1(*LETTER) +

PPRSRC2(*MFRTYPMDL) ENVELOPE(*MFRTYPMDL) +

ASCII899(*NO) IMGCFG(*NONE) +

CHRID(*SYSVAL) RMTLOCNAME('10.1.10.199') +

SYSDRVPGM(*HPPJLDRV) PUBLISHINF(*UNKNOWN +

*UNKNOWN *UNKNOWN *UNKNOWN *BLANK) +

TEXT('Conference Room')



GRTOBJAUT OBJ(CR) OBJTYPE(*DEVD) USER(QTCP) AUT(*EXCLUDE)

CHGOBJOWN OBJ(CR) OBJTYPE(*DEVD) NEWOWN(AJERRY)



ENDPGM



iNav's Work Management for outqueue CR shows 1 writer started.



WRKWTR shows writer CR with a status of STR and the test print is visible
when I use option 8 (Work with output queue). Option 5 (Work with) shows:



Writer . . . . . . . : CR User . . . . . . . . : QSPLJOB

Number . . . . . . . : 025610



Started by user . . . . . . . . . . . : AJERRY

Status:

Writing . . . . . . . . . . . . . . : N

Waiting on message . . . . . . . . . : N

Held . . . . . . . . . . . . . . . . : N

End pending . . . . . . . . . . . . : N

Hold pending . . . . . . . . . . . . : N

Between files . . . . . . . . . . . : Y

Between copies . . . . . . . . . . . : N

Waiting for data . . . . . . . . . . : N

Waiting for device . . . . . . . . . : N

On job queue . . . . . . . . . . . . : N

File being written . . . . . . . . . . :

File number . . . . . . . . . . . . :

Job that created file . . . . . . . . :

User . . . . . . . . . . . . . . . :

Number . . . . . . . . . . . . . . :

Page being written . . . . . . . . . :

Total pages . . . . . . . . . . . . . :

Copies left to produce . . . . . . . :

Total copies . . . . . . . . . . . . :

Device . . . . . . . . . . . . . . . . : CR

Printer device type . . . . . . . . . : *SCS

Number of separators . . . . . . . . . : *FILE

Drawer for separators . . . . . . . . : *DEVD

Allow direct print . . . . . . . . . . : *NO

Align page . . . . . . . . . . . . . . : *WTR

Initialize Printer . . . . . . . . . . : *WTR

Output queue . . . . . . . . . . . . . : CR

Library . . . . . . . . . . . . . . : QUSRSYS

Output queue status . . . . . . . . . : RELEASED

Form type . . . . . . . . . . . . . . : *ALL

Message option . . . . . . . . . . . : *INQMSG

Automatically end writer . . . . . . . : *NO

Message queue . . . . . . . . . . . . : AJERRY

Library . . . . . . . . . . . . . . : QUSRSYS

Changes pending:

Next output queue . . . . . . . . . :

Library . . . . . . . . . . . . . . :

Next form type . . . . . . . . . . . :

Message option . . . . . . . . . . :

Next file separators . . . . . . . . :

Next separator drawer . . . . . . . :

Changes take effect . . . . . . . . :





WRKOUTQ shows:



Queue Library Files Writer Status

CR QUSRSYS 1 CR RLS



Option 5 (Work with) shows:



File User User Data Sts Pages Copies Form Type Pty

QPSUPRTF AJERRY RDY 1 1 *STD 5



Option 9 (Work with printing status) shows:



Status Description

This file is not associated with a started printer.

When I then use WRKWTR CR's status is END, whereas earlier it was STR. So
I
started it.

Then the Work with printing status shows (Status is pending).

While typing parts of this message, the writer's status went to END.



In the past all I have ever had to do was create a device description.
The
output queue mysteriously (to me, anyway) gets created and everything
(usually) works fine (with a little fine tuning on some rare occasions).



Thanks.



Jerry C. Adams

IBM i Programmer/Analyst

--

A&K Wholesale

Murfreesboro, TN

615-867-5070




This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].