What instruction should I used.
Ed.
----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions,
send email to LIST...@VM.MARIST.EDU with the message: INFO TSO-REXX
/* rexx */
rba = "X'000557F1CF63'"
parse var rba "X'" newrba "'"
say rba '=' newrba
Carefully watch the ' versus the " in this code. Copy and paste it...
Rob
In a message dated 10/15/2009 1:21:28 P.M. US Mountain Standard Time,
PARSE VAR ICSTARBA "X'" NEWRBA "'"
SAY ICSTARBA '=' NEWRBA
NEWRBA GIVE ME UNPRINTERABLE CHARACTERS
Ed
--------------------------------------------------
From: "Ed Benoit" <Ibm...@AOL.COM>
Sent: Thursday, October 15, 2009 5:11 PM
To: <TSO-...@VM.MARIST.EDU>
Subject: Re: [TSO-REXX] REXX Question about a Hex number
----- Original Message -----
From: "Ed Benoit" <Ibm...@AOL.COM>
To: <TSO-...@VM.MARIST.EDU>
Sent: Thursday, October 15, 2009 11:11 PM
Subject: Re: [TSO-REXX] REXX Question about a Hex number
ICSTARBA N X'000557F1CF63'
124 *-* PARSE VAR ICSTARBA "X'" NEWRBA "'"
>>> ""
125 *-* SAY 'ICSTARBA =' NEWRBA
>>> "ICSTARBA = "
ICSTARBA =
126 *-* /**/
128 *-* ADDRESS ISPEXEC
129 *-* 'TBADD' TBLNAMEB
>>> "TBADD IBMUSERB"
Any ideas?
Ed.
/* rexx */
say 'Variable value includes the "X"'
rba = "X'000557F1CF63'"
parse var rba "X'" newrba "'"
say rba '=' newrba
say
say 'Variable already contains the hex value'
rba = '000557F1CF63'X
newrba = c2x(rba)
say 'RBA =' newrba
Rob
In a message dated 10/15/2009 3:43:48 P.M. US Mountain Standard Time,