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

COBOL EDIT charecters


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

Active User


Joined: 22 May 2009
Posts: 160
Location: Bangalore

PostPosted: Thu Jul 10, 2014 12:37 pm
Reply with quote

Hi,
I have a requirement where to show an amount with a sign suppressing the zeroes in it.

The field has been defined as
Code:

05 EDIT-FIELD        PIC  +ZZZ,ZZ9.99  VALUE ZERO.


when i move an amount of 993.91 in it the value displayed is
Code:

+   993.91


with first 3 bytes as spaces.

Would there be any fields where i could have display as +993.91
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: Thu Jul 10, 2014 12:47 pm
Reply with quote

Code:
05 EDIT-FIELD        PIC  ++++,+9.99.


What's with the VALUE clause? If used, that'd show you 0000000000.
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 Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top