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

Numeric editing characters not to suppress zero


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

New User


Joined: 12 Jan 2009
Posts: 9
Location: chennai

PostPosted: Wed Dec 14, 2011 11:22 am
Reply with quote

if i have input 12325
what should be picture clause to get value : 00123.25
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Wed Dec 14, 2011 11:29 am
Reply with quote

You'd need two pictures. One for the input data and one for your output.
Code:

PIC 999V99

PIC 9(5).99
[/code]
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Wed Dec 14, 2011 11:43 am
Reply with quote

You also need to read the manual re numeric editing characters
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Wed Dec 14, 2011 3:10 pm
Reply with quote

Perhaps clearer for output, since you only have max of 999.99 for input:

Code:
PIC 00999.99.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Dec 15, 2011 10:52 am
Reply with quote

Hello,

Quote:
if i have input 12325
How is this defined in the program?

The better informatoin you provide initially, the quicker replies you can use directly will appear.

When we guess (and many of us will icon_smile.gif ) it is likely that we will not have the same focus as you and so start away from the actual question. . .
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 Substring number between 2 characters... DFSORT/ICETOOL 2
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
No new posts Convert HEX to Numeric DB2 3
No new posts Count the number of characters in a f... CA Products 1
Search our Forums:

Back to Top