Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref

Author Message
Ajay Baghel

Active User

Joined: 25 Apr 2007
Posts: 205
Location: Bangalore

 Posted: Mon Jun 23, 2008 6:56 pm    Post subject: to find hexadecimal equivalent of 15digit number Hi, My requirement is to convert 15digit decimal nuumber into its equivalent hexadecimal no. I am trying D2X function, but it is working only till the decimal no is in 9 digits. For eg: SAY D2X(19852881001,20) is giving the below error: IRX0040I error running the DECTOHEX. Incorrect call to routine. Is it possible to find hexadecimal equivalent of 15digit number? It is working when no is in 9 digits. Thanks, Ajay

enrico-sorichetti

Global Moderator

Joined: 14 Mar 2007
Posts: 10457
Location: italy

 Posted: Mon Jun 23, 2008 7:26 pm    Post subject: Reply to: to find hexadecimal equivalent of 15digit number NUMERIC DIGITS
Craq Giegerich

Senior Member

Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

Posted: Mon Jun 23, 2008 8:01 pm    Post subject: Re: Reply to: to find hexadecimal equivalent of 15digit numb

 enrico-sorichetti wrote: NUMERIC DIGITS

As opposed to NON-NUMERIC digits (those that are less then 0 or greater than 9).
enrico-sorichetti

Global Moderator

Joined: 14 Mar 2007
Posts: 10457
Location: italy

Posted: Mon Jun 23, 2008 8:09 pm    Post subject: Reply to: to find hexadecimal equivalent of 15digit number

sorry for my cryptic reply, ( finger check )

what I meant was "numeric digits" will set the number of digits for REXX decimal arithmetic

 Code: say "d2x(123456789012345) ==>" || d2x(123456789012345) ||"<=="

will fail, but
 Code: numeric digits 15 say "d2x(123456789012345) ==>" || d2x(123456789012345) ||"<=="

will work
Ajay Baghel

Active User

Joined: 25 Apr 2007
Posts: 205
Location: Bangalore

Posted: Wed Jun 25, 2008 7:14 pm    Post subject: Reply to: to find hexadecimal equivalent of 15digit number

 Code: numeric digits 15 say d2x(123456789012345)

is working fine.

Thank you Enrico and Craq for your prompt replies.

-Ajay
 All times are GMT + 6 Hours
 Page 1 of 1

Search our Forum:

 Topic Author Forum Replies Posted Similar Topics Find & Replace string in CA-SORT mrgnndhmk CA Products 1 Fri Mar 30, 2018 12:58 am Repeat Sequence Number Until change i... rahulabvp DFSORT/ICETOOL 6 Thu Mar 29, 2018 12:51 pm Find a string in PS file opened in br... mukkas CLIST & REXX 3 Sat Feb 24, 2018 2:15 pm add sequence number for duplicate rec... SRUTHI DRAVIDAMANI COBOL Programming 11 Thu Feb 22, 2018 5:37 pm PARSE GDG name to separate generation... Abid Hasan SYNCSORT 2 Sun Feb 11, 2018 3:40 pm

 © 2003-2017 IBM MAINFRAME Software Support Division
 Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us