Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Rexx Variables

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

New User


Joined: 25 Sep 2013
Posts: 2
Location: INDIA

PostPosted: Fri Sep 27, 2013 9:59 pm    Post subject: Rexx Variables
Reply with quote

I am using rexx to calculate sum of numbers from input files. The input file have 8 digits and I have assigned a variable to get these numbers. So when I try to display this sum of numbers I am getting the error message saying that "IRX0041I Error running SMSNEW, line 50: Bad arithmetic conversion"

Actually my program struk in addition of below two numbers,

3.01187304E+9 2.97038453E+9

How to handle this? Is there any datatype in rexx to store big numbers instead of assigning to this in variables?
Back to top
View user's profile Send private message

Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1770
Location: Bloomington, IL

PostPosted: Fri Sep 27, 2013 10:16 pm    Post subject:
Reply with quote

Rexx is a typeless language. Use the NUMERIC instruction to choose your desired form. Use TRACE I to examine the flow of execution and ensure that adding those two numbers is really the problem; I have my doubts.
Back to top
View user's profile Send private message
sam nura

New User


Joined: 25 Sep 2013
Posts: 2
Location: INDIA

PostPosted: Sat Sep 28, 2013 1:14 am    Post subject: Reply to: Rexx Variables
Reply with quote

Thanks, I have used NUMERIC DIGITS and its working for me.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1770
Location: Bloomington, IL

PostPosted: Sat Sep 28, 2013 1:24 am    Post subject:
Reply with quote

Thank you for letting us know icon_smile.gif
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 REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts How system know which REXX to excute? jackzhang75 CLIST & REXX 14 Thu Jul 06, 2017 1:09 am
No new posts REXX - Dynamic file Creation d_sarlie CLIST & REXX 7 Tue Jun 27, 2017 7:30 pm
No new posts REXX WTO for console message bipinpeter CLIST & REXX 6 Tue Jun 27, 2017 3:56 pm
No new posts Convert CLIST to REXX cvnlynn CLIST & REXX 12 Tue Jun 27, 2017 2:06 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us