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

Displaying Special Char & sign with numeric field


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

New User


Joined: 30 May 2006
Posts: 10
Location: Pune

PostPosted: Fri Jan 09, 2009 9:36 am
Reply with quote

Hi
I am facing a problem
i am having a value -$999,999.99
I have presently declared it as
10 DETAIL-X-COMM-AMT PIC -$999,999.99.
it looks like this when displayed in report
-$000,999.99
but i want to suppress the leading zeros , can you please suggest a solution
one solution which i tried was using -$$$,$$9.99
but this gives the display like this - $999.99
which creates a gap betn the sign and $ value , i dont want that
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: Fri Jan 09, 2009 9:50 am
Reply with quote

Hello,

Suggest you move the sign to the right-side of the value (rather than leadinig).

Most (if not all) business users do not want a leading minus sign.
Back to top
View user's profile Send private message
nitesh.mulay

New User


Joined: 30 May 2006
Posts: 10
Location: Pune

PostPosted: Fri Jan 09, 2009 10:04 am
Reply with quote

ya
previously i had coded with trailing sign but the user wants a leading sign
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: Fri Jan 09, 2009 10:38 am
Reply with quote

This thread looks suspiciously like ibmmainframes.com/viewtopic.php?t=35185
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Fri Jan 09, 2009 10:46 am
Reply with quote

Hello,
Quote:
which creates a gap betn the sign and $ value , i dont want that
So what do you want actually ?
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: Fri Jan 09, 2009 11:12 am
Reply with quote

Hi Anuj,

The current desired output is -$123.55.

I suspect that when this is delivered (especially if there is a column of numbers), it will need to be changed.
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 SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Exclude rows with > than x occurre... DFSORT/ICETOOL 6
No new posts IBM OnDemand Folders displaying to al... IBM Tools 6
Search our Forums:

Back to Top