Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
to find hexadecimal equivalent of 15digit number

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
Ajay Baghel

Active User


Joined: 25 Apr 2007
Posts: 205
Location: Bangalore

PostPosted: Mon Jun 23, 2008 6:56 pm    Post subject: to find hexadecimal equivalent of 15digit number
Reply with quote

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
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Mon Jun 23, 2008 7:26 pm    Post subject: Reply to: to find hexadecimal equivalent of 15digit number
Reply with quote

NUMERIC DIGITS
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


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

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

enrico-sorichetti wrote:
NUMERIC DIGITS


As opposed to NON-NUMERIC digits (those that are less then 0 or greater than 9). icon_confused.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

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

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
Back to top
View user's profile Send private message
Ajay Baghel

Active User


Joined: 25 Apr 2007
Posts: 205
Location: Bangalore

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

Code:
numeric digits 15
say d2x(123456789012345)


is working fine.

Thank you Enrico and Craq for your prompt replies.


-Ajay
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Command to find TMEMBER name for a TPIPE Siva NKK Kothamasu IMS DB/DC 0 Wed Aug 16, 2017 6:08 pm
No new posts Profile changed to NUMBER ON STD (fro... Martylin TSO/ISPF 1 Thu Aug 03, 2017 9:14 am
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts SMTP the current generation number of... Jyothi Kulunde JCL & VSAM 4 Thu May 04, 2017 4:08 pm
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us