|
Tim You probably want hex - those look like HP's output where <CR><LF> is x0D0A in ASCII. You might need to use a WSCST (workstation customization) object to handle converting the ESC (x1B). That code wreaked havoc with our printers, as I recall. The origginal solution used a 2-char sequence that was converted at a DecisionData workstation to the ASCII ESC. But that did not work when we moved to IP printing. Then we ran RTVWSCST against the printer manufacturer/model (see the prompt of the command for a match with your HP). Then I added an EBCDIC-ASCII translation section that used a seldom-used character in ASCII to convert to the ESC. I used x9E, I think - it was the character that looks like 'a' and 'e' stuck to each other. - Æ . An example can be seen at <http://www-912.ibm.com/s_dir/slkbase.NSF/acf2ee1e9d64b16e8625680b00020389/4a3112207b82f0ae862565c2007d0dbf?OpenDocument&Highlight=0,ebcasctbl>. You can find the values you need for the other code points in the WRKTBL command - find the table that corresponds to the EBCDIC->ASCII translation, display it , and build the DATA section of the WSCST accordingly. Good luck Vern At 10:50 AM 8/20/02 -0700, you wrote: >Thanks for the reply... But I have a question concerening this.. >Ec%-12345X@PJL <CR> <LF> @PJL SET COPIES = 3 <CR> <LF> Ec%-12345X >the Ec% is that straight text? Or do I need a hex value to emulate the >escape sequence? > >Thanks, tim > > > -----Original Message----- > > From: Vernon Hamberg [SMTP:vhamberg@attbi.com] > > Sent: Monday, August 19, 2002 9:51 PM > > To: midrange-l@midrange.com > > Subject: Re: pjl help, once again... > > > > 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
As an Amazon Associate we earn from qualifying purchases.
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.