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

Decimal conversion


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

New User


Joined: 15 Apr 2005
Posts: 8

PostPosted: Fri May 26, 2006 9:28 pm
Reply with quote

PVPR-WGT PIC 9(05).

MAP-WGT PIC X(05).
FILLER REDEFINES MAP-WGT.
15 MAP-WGT-EDT PIC ZZZZZ.

MOVE PVPR-WGT TO MAP-WGT-EDT
INSPECT MAP-WGT-EDT REPLACING LEADING ZEROS BY SPACES

When the value of PVPR-WGT is 544.8 after the above statement, the value of MAP-WGT-EDT becomes 5448 but if PVPR-WGT is 54.48 then abend (decimal exception) why?
Back to top
View user's profile Send private message
DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Fri May 26, 2006 11:39 pm
Reply with quote

saipv,

I'm a little confused about your question.

with PVPR-WGT defined as a PIC 9(05), how does it have a value of 544.8?

Dave
Back to top
View user's profile Send private message
prasadvrk

Active User


Joined: 31 May 2006
Posts: 200
Location: Netherlands

PostPosted: Thu Jun 01, 2006 4:57 pm
Reply with quote

Are you sure about the data type of PVPR-WGT , is it PIC 9(05). or S9(05).9.
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 Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts 10 byte RBA conversion DB2 2
No new posts 10 byte RBA conversion -non applicati... JCL & VSAM 1
No new posts file manager is doing string conversion IBM Tools 3
No new posts Need Help with Packed Decimal Signs DFSORT/ICETOOL 4
Search our Forums:

Back to Top