REXX has hex constants so you could just set up the variable with the correct HEX value.
str = ’0001A735’X /* PRK */ I often assign the quote value using this method, saves confusion when embedding quotes into strings. QUOTE = '7D'X /* EBCDIC single quote */ DSN = QUOTE || MYDSN || QUOTE. Lots of nice explanations for the various functions too. But I also like simple solutions. Regards, On Fri, Apr 30, 2010 at 11:37 PM, Horlick, Michael <[email protected]> wrote: > Greetings, > > > > I have a character field for example 0001A735 (PRK) > > > > I have record like this ‘DATA DATA YYYY’. I want to replace ‘YYYY’ with > x’0001A735’. > > > > 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 > > -- Wayne V. Bickerdike
