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
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
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
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
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
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
: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
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
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