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

Geting Integer and decimal part of a numeric field


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
chavansu

New User


Joined: 20 Nov 2008
Posts: 14
Location: California USA

PostPosted: Mon May 11, 2009 10:57 am
Reply with quote

Hi,

I have a AMT field defined as
WS-LK-MON-STMT-CHARGE PIC S9(9)V99
I want to process its ineteger part (S9(9)) and decimal part v99 seperately. Is there any fucntion which will return integer and decimal part seperately ?

Thanks.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon May 11, 2009 11:30 am
Reply with quote

Reference Modificaion(s)?
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Mon May 11, 2009 11:35 am
Reply with quote

If USAGE is DISPLAY, WS-LK-MON-STMT-CHARGE can be redefined as having an integer part and a decimal part. If not, move it to a DISPLAY field, then redefine the DISPLAY field. See the PICTURE clause and USAGE clause in the Language Reference manual for more detail.
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Join 2 files according to one key field. JCL & VSAM 3
No new posts Need Help with Packed Decimal Signs DFSORT/ICETOOL 4
Search our Forums:

Back to Top