Skip to Content
0
Former Member
Dec 07, 2006 at 10:17 PM

How to add HEX values in a Report.

200 Views

I have a special requirement. I need to add hex values in a report. To be specific, the special HEX characters: 0D 0A 0C 0C, has to be added to TOP of PAGE event.

Drawing What I want will be something like that:

CR/LF FF/FF

ABCDEFHGIJKLMNOZVCXC

This is a Report that has to be send to the spool. Once in the spool will be converted to TXT file. I created a small code using print control function but still It is doesn’t working.

I defined a print control ZPAGE as ‘0D 0A 0C 0C’.

Any idea how to do this?.

** This report doesn’t include the Top-of Page event.
** Example Report.
REPORT  ZCAPRTHEX2 NO STANDARD PAGE HEADING.
Data: String1(120) type c value 'ABCDEFHGIJKLMNOZVCXC'.
WRITE : /.
PRINT-CONTROL FUNCTION 'ZPAGE'.
WRITE : string1.

This is what I see in SP01 as HEX View

ABCDEFHGIJKLMNO ZVCXC #ZPAGE