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
 

 

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: 10202
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 Is the 'prompt' data for the DSLIST p... Willy Jensen TSO/ISPF 2 Tue Dec 06, 2016 4:38 am
This topic is locked: you cannot edit posts or make replies. How to move a long alphanumeric data ... lind sh COBOL Programming 8 Mon Dec 05, 2016 7:51 pm
No new posts ODPP(Optim Data privacy Provider) Iss... Rama kishore IBM Tools 1 Mon Nov 07, 2016 5:46 pm
No new posts Can sending 5 MB data between cobol p... Kevin Vaz CICS 12 Tue Oct 18, 2016 4:50 pm
No new posts output data in CSV Format janmejay COBOL Programming 8 Sat Oct 15, 2016 2:20 pm


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