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

Using Selcopy can be round off a data


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
adutta24

New User


Joined: 07 Aug 2007
Posts: 13
Location: London

PostPosted: Wed Dec 23, 2009 1:31 pm
Reply with quote

Hi All,

Can we round off a data using Selcopy.

I am dividing a data now I need to round it off. For Divide we can use the DIV command. Do we have something like that for Rounding that off.

Please help.
Back to top
View user's profile Send private message
adutta24

New User


Joined: 07 Aug 2007
Posts: 13
Location: London

PostPosted: Wed Dec 23, 2009 3:17 pm
Reply with quote

I was searching for a command like DIV. So it seems there is nothing like that.

And I have already gone thru the above material but was looking for soemthing else if present icon_confused.gif .

For the given reply we have to do some manual calculations to make the quotient rounded off.

Anyways thanks for your reply.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Wed Dec 23, 2009 6:35 pm
Reply with quote

what is that You do not understand in this statement ( from the manual icon_evil.gif icon_question.gif

Quote:
Remainder
If a REM parameter is supplied on a DIV operation, the remainder is stored there, otherwise the remainder is lost because the quotient (the result) is always returned as a whole number. The REM field need not be initialised.


looks like a good path to pursue for rounding ... or not
icon_eek.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 -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
No new posts JCL EXEC PARM data in C Java & MQSeries 2
Search our Forums:

Back to Top