MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How can we display only the integer part?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
hisabarish
Beginner


Joined: 21 Jun 2005
Posts: 38
Topics: 11

PostPosted: Wed Jul 27, 2005 1:04 am    Post subject: How can we display only the integer part? Reply with quote

In my report Qty is (43.00). I want to display only the integer part ie., 43 only. How can i display the integer part , with out using the Rounded Option and Editing clauses. Any one pls. give me an logic.
_________________
Sabari
Madras
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Wed Jul 27, 2005 6:05 am    Post subject: Reply with quote

Quote:

How can i display the integer part , with out using the Rounded Option and Editing clauses. Any one pls. give me an logic.

hisabarish,

Why do you need a logic when it accomplished by editing characters or defining another variable?

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
slade
Intermediate


Joined: 07 Feb 2003
Posts: 266
Topics: 1
Location: Edison, NJ USA

PostPosted: Sat Jul 30, 2005 11:41 pm    Post subject: Reply with quote

If it's a display data type you can use reference modification:

DISPLAY RPT-QTY(1:2)

Assuming the PIC was 99V99.
_________________
Regards, Jack.

"A problem well stated is a problem half solved" -- Charles F. Kettering
Back to top
View user's profile Send private message
hisabarish
Beginner


Joined: 21 Jun 2005
Posts: 38
Topics: 11

PostPosted: Mon Aug 01, 2005 12:40 am    Post subject: Reply with quote

Hi slade

I used ur logic , Thank for your reply.


Pls. Make sure that is it correct or not.

01 a pic 99v99.
01 b pic 99.

Move a to b. Now the integer part will be stored in "b" right?
_________________
Sabari
Madras
Back to top
View user's profile Send private message
Cogito-Ergo-Sum
Advanced


Joined: 15 Dec 2002
Posts: 637
Topics: 43
Location: Bengaluru, INDIA

PostPosted: Mon Aug 01, 2005 1:14 am    Post subject: Reply with quote

Yes.
_________________
ALL opinions are welcome.

Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group