Try using the X2C REXX builtin function. For example, String = X2c(PRK)
If the value of PRK will ever have a length different than 4 (which seems to be required by your logic), check the X2c documentation for the length operand. ----------------------------- From: The IBM z/VM Operating System [mailto:ib...@listserv.uark.edu] On Behalf Of Horlick, Michael Sent: Friday, April 30, 2010 9:37 AM To: IBMVM@LISTSERV.UARK.EDU Subject: How to work with hex in REXX Greetings, I have a character field for example 0001A735 (PRK) I have record like this DATA DATA YYYY. I want to replace YYYY with x0001A735. Tried : String = "'"||PRK||"'x" JCL.J = Overlay(String,Record,WORK,4) Where work = position of YYYY in record Not working. Mike Horlick Conseiller CGI Gestion Intégrée des Technologies 1350 Boul. René-Lévesque Ouest Montréal, Qc, H3G 1T4