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: 1753
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: 1753
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 cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm
No new posts REXX compiled via RXTCOMP sergeyken CLIST & REXX 7 Tue Feb 07, 2017 9:41 pm
No new posts DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 8 Wed Jan 25, 2017 8:24 pm
No new posts DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 0 Wed Jan 25, 2017 8:23 pm


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