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
 
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: 1783
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: 1783
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 Looping REXX - unable to interrupt RAVISANKAR07 CLIST & REXX 3 Wed Dec 06, 2017 1:08 pm
No new posts The same REXX program doesnt work for... jackzhang75 CLIST & REXX 5 Wed Dec 06, 2017 2:51 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
This topic is locked: you cannot edit posts or make replies. Rexx to Grab ISMF Information. upendrasri All Other Mainframe Topics 16 Sun Nov 26, 2017 12:35 am
No new posts Rexx to send an email without SMTP Se... upendrasri All Other Mainframe Topics 12 Sun Nov 19, 2017 7:59 pm

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