Re: How to work with hex in REXX

2010-05-04 Thread Wayne Bickerdike
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. L

Re: How to work with hex in REXX

2010-04-30 Thread Chip Davis
U>] On Behalf Of Horlick, Michael Sent: Friday, April 30, 2010 9:37 AM To: IBMVM@LISTSERV.UARK.EDU <mailto: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 DAT

Re: How to work with hex in REXX

2010-04-30 Thread Kris Buelens
e 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 H

Re: How to work with hex in REXX

2010-04-30 Thread Bruce Roy
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 ’. I want to replace

Re: How to work with hex in REXX

2010-04-30 Thread Romanowski, John (OFT)
try String = x2c('0001A735') 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 exampl

Re: How to work with hex in REXX

2010-04-30 Thread Rich Smrcina
On 04/30/2010 08:37 AM, Horlick, Michael wrote: Greetings, I have a character field for example 0001A735 (PRK) I have record like this ‘DATA DATA ’. I want to replace ‘’ with x’0001A735’. Tried : String = "'"||PRK||"'x" JCL.J = Overlay(String,Record,WORK,4) Where work = position

Re: How to work with hex in REXX

2010-04-30 Thread Horlick, Michael
:46 AM To: IBMVM@LISTSERV.UARK.EDU Subject: Re: How to work with hex in REXX Michael, Use... string = x2c(PRK) JCL.J = Overlay(String,Record,WORK,4) Mark Wheeler UnitedHealth Group Date: Fri, 30 Apr 2010 09:37:15 -0400 From: michael.horl...@cgi.com

Re: How to work with hex in REXX

2010-04-30 Thread Mark Wheeler
Michael, Use... string = x2c(PRK) JCL.J = Overlay(String,Record,WORK,4) Mark Wheeler UnitedHealth Group Date: Fri, 30 Apr 2010 09:37:15 -0400 From: michael.horl...@cgi.com Subject: How to work with hex in REXX To: IBMVM@LISTSERV.UARK.EDU Greetings, I have a character field

How to work with hex in REXX

2010-04-30 Thread Horlick, Michael
Greetings, I have a character field for example 0001A735 (PRK) I have record like this 'DATA DATA '. I want to replace '' with x'0001A735'. Tried : String = "'"||PRK||"'x" JCL.J = Overlay(String,Record,WORK,4) Where work = position of '' in record Not workin