PCL5 to PCL6 Escape code changes

Bharath kumar

Junior Member
Sep 2, 2014
1
0
0
Hello...
My cobol code that prints a signature on HP PCL5 printer has to be changed in such a way that it should print now on PCL6 printer. Vendor says they designed the signature box in the same manner as did for PCL5. But we are still not able to print the signature.

Existing code for PCL5:
03 PRINTLINE
05 ESC-12 PIC X(02) VALUE '|`'
05 ESC-34 PIC X(02) VALUE '1B'
05 ESC-5 PIC X(01) VALUE '$'
05 ESC-CHAR PIC X(03) VALUE '(0Y'.
05 ESC-67 PIC X(02) VALUE '|`'
05 ESC-89 PIC X(02) VALUE '1B'
05 ESC-10 PIC X(01) VALUE '$'
05 PRINT-SIGN PIC X(23) VALUE
'(s0p 1.18h61.v0s0b220T '.

We tried passing escapse characters as EDCDIC and Hexadecimals but it didnt work.

Can someone please advise

- Bharath
 

ArtShapiro

Member
May 6, 2011
123
0
71
My understanding is that PCL6 is downward compatible with PCL5. I have some dealings with mainframe print drivers (Algol, not Cobol) and we did not need to make any changes when qualifying newer HP PCL6 printers.

Is it possible that you need to send a specific control sequence to put the printer into PCL mode? I think those HP printers speak multiple PDLs.

Art