IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Rexx Variables


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
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
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: 1788
Location: Bloomington, IL

PostPosted: Fri Sep 27, 2013 10:16 pm
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
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: 1788
Location: Bloomington, IL

PostPosted: Sat Sep 28, 2013 1:24 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
Search our Forums:

Back to Top