Have you considered Translate and Pack?

________________________________________
From: IBM Mainframe Discussion List <[email protected]> on behalf of 
Ituriel do Neto <[email protected]>
Sent: Tuesday, June 13, 2023 3:16 PM
To: [email protected]
Subject: Re: Char to Hex

Hi,

Sorry, i was not clear.
I mean in assembler, not Rexx or any other language.


Best Regards

Ituriel do Nascimento Neto
z/OS System Programmer






Em terça-feira, 13 de junho de 2023 às 16:10:46 BRT, Radoslaw Skorupka 
<[email protected]> escreveu:





W dniu 13.06.2023 o 21:05, Ituriel do Neto pisze:
> Hi all,
>
> I don't want to reinvent the wheel, so I would be grateful for your advice.
> I need to convert C'123AB' to X'0123AB'
>
> Any ideas?

Did you check REXX functions like X2C and C2X?

--
Radoslaw Skorupka
Lodz, Poland


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to