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
 
Using Selcopy can be round off a data

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: Using Selcopy can be round off a data
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10350
Location: italy

PostPosted: Wed Dec 23, 2009 6:35 pm    Post subject: Reply to: Using Selcopy can be round off a data
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Extract Record using range of Data scorp_rahul23 DFSORT/ICETOOL 3 Wed Nov 15, 2017 11:54 pm
No new posts Updating data from one file to other!!! Vignesh Sid SYNCSORT 1 Mon Nov 06, 2017 2:42 pm
This topic is locked: you cannot edit posts or make replies. Can a alphanumeric data be moved to a... nico_neoz COBOL Programming 10 Mon Oct 30, 2017 8:28 am
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm

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