× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I seem to remember having a single field in a single format, SPACEB(0). You
set the field to the string you want to send. You can fill it with hex
strings as well as regular strings. Maybe put the various pieces into a
file and just read it. Where I used to work we had an extensive system like
this that built PCL on the fly - sorry, no code.

DDS to define the format in a PRTF. And, optionally, a PF to contain the codes.
RPG to set the field value and WRITE to the PRTF

HTH

Vern

At 04:24 PM 8/19/02 -0700, you wrote:
>How do I send these type of commands, to a printer connected to the as/400
>via tcp/ip
>
>Is it via a CL? RPG?  DDS?  PRTF?
>
>Could someone please help, with a sample piece of code?
>
>Thanks...  Tim
>
>
>%-12345X@PJL JOB NAME="Book2"
>@PJL SET RET=ON
>@PJL SET DUPLEX=OFF
>@PJL SET ECONOMODE=OFF
>@PJL SET OUTBIN=UPPER
>@PJL SET FINISH=NONE
>@PJL SET PAGEPROTECT=AUTO
>@PJL SET PAPER=LETTER
>@PJL SET HOLD=ON
>@PJL SET JOBNAME="PRINTTEST1234567"
>@PJL SET RESOLUTION=600
>@PJL SET BITSPERPIXEL=2
>@PJL SET EDGETOEDGE=NO
>@PJL ENTER LANGUAGE=PCLXL
>) HP-PCL XL;2;0;Comment Copyright Hewlett-Packard Company 1989-2000. Version
>4.0.2.0
>XX? ?A ^'H (& Plain' LETTER%C Ttd d *u
>)v  EUR?  EUR?+w Np Kzj      yj  cT^
>YB Sh-x-|,{... -x -| Arial           
>BuorGLk Line 1 ....-x-|T^d
>B Sh... -x -|rLk Line 2 ....-x-|T^
>'B Sh... -x -|rLk Line 3 ....-x-|
>1DIB%-12345X@PJL EOJ NAME="Book2"
>%-12345X
> >



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2024 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].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.