Hi Kolusu,

Actually I need to generate X'0123AB' from X'F1F2F3C1C2'


Best Regards

Ituriel do Nascimento Neto
z/OS System Programmer






Em terça-feira, 13 de junho de 2023 às 16:19:11 BRT, Sri h Kolusu 
<skol...@us.ibm.com> escreveu: 





> I need to convert C'123AB' to X'0123AB'

Ituriel,

HEX of 123AB is  F1F2F3C1C2

Sort can convert character to hex and vice versa.

//SYSIN    DD *
  OPTION COPY
  INREC BUILD=(01,05,HEX)
/*

Looks like you just want to pad leading zero?

Thanks,
Kolusu



----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to