lexmark2390

30 pts.
Tags:
AS/400 printing
Lexmark 2390
WRKOUTQD
We had configured lexmark printer model 2390 to our AS400 as a remote writer using comd of crtoutq. However no print is output. Is there somebody who can assist and let me know the parameter in wrkoutqd cmd for connecting lexmark 2390 printer to as400. Thanking you

Answer Wiki

Thanks. We'll let you know when a new response is added.

Hi

It’s probably a silly question, but have you started the remote writer? Also, how is the physical printer attached to the network? Is it a network printer with its own IP address or is it attached as a local printer to a PC on your network? If the latter, do you have an LPD service running on the PC?

I don’t know about Lexmark 2390′s, but I have a Canon MP600 attached to my PC which I can print to from the AS/400. On the AS/400 I have an output queue called CANON and this has a Remote System (RMTSYS) parameter of *INTNETADR and a Remote Output Queue of “Canon”. The Connection Type (CNNTYPE) is *IP and the Internet Address (INTNETADR) is that of the PC.

On the PC I run a copy of SDI’s LPD service which has a “Canon” queue pointing to the installed Windows printer and the queue is configured as an SNA Character String (SCS) printer.

To start the output queue I use a home built command:

<pre>
CMD PROMPT(‘Start LPD Writer’)

PARM KWD(OUTQ) TYPE(*NAME) LEN(10) DFT(CANON) +
PROMPT(‘Output queue’)

PARM KWD(INTNETADR) TYPE(*CHAR) LEN(15) +
DFT(*SAME) PROMPT(‘IP address’)
</pre>

Which has the following CPP:

<pre>
PGM PARM(&OUTQ &IP)

DCL VAR(&OUTQ) TYPE(*CHAR) LEN(10)
DCL VAR(&IP) TYPE(*CHAR) LEN(15)

MONMSG MSGID(CPF0000)

/* 0010 – First end the writer if it is already running… */
ENDWTR WTR(&OUTQ) OPTION(*PAGEEND)

/* 0020 – Change the IP address on the output queue… */
CHGOUTQ: CHGOUTQ OUTQ(&OUTQ) INTNETADR(&IP)
MONMSG MSGID(CPF3319) EXEC(DO)
DLYJOB DLY(2)
GOTO CMDLBL(CHGOUTQ)
ENDDO

/* 0030 – And then start the writer again… */
STRRMTWTR OUTQ(&OUTQ)

ENDPGM
</pre>

Sometimes it takes a little while for the printer to start, and sometimes it takes two attempts at running the command before the printer starts. Not sure if I’m just too impatient or not up to date on PTF’s for TCP/IP.

Anyway, I hope it helps.

Best regards

Jonathan

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • djac
    Could you cut&paste your outq description into this page? We can then take a look and see if you may have missed something.
    900 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following