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
 

 

Numeric editing characters not to suppress zero

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Numeric editing characters not to suppress zero
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Wed Dec 14, 2011 11:29 am    Post subject: Reply to: not to suppress zero
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: 1788
Location: UK

PostPosted: Wed Dec 14, 2011 11:43 am    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Wed Dec 14, 2011 3:10 pm    Post subject: Reply to: not to suppress zero
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

Site Director


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

PostPosted: Thu Dec 15, 2011 10:52 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts Converting decimal to numeric using I... Balaryan DFSORT/ICETOOL 4 Thu Feb 02, 2017 11:27 pm
No new posts Remove junk values in a file and rite... KP1125 DFSORT/ICETOOL 2 Wed Jan 25, 2017 9:58 pm
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm
No new posts Casting a Binary Number to Numeric in... Bob Steinkraus Java & MQSeries 6 Tue Aug 09, 2016 5:58 pm


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