Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Displaying Special Char & sign with numeric field

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Displaying Special Char & sign with numeric field
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

Site Director


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

PostPosted: Fri Jan 09, 2009 9:50 am    Post subject:
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    Post subject: Reply to: Displaying Special Char & sign with numeric fi
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    Post subject:
Reply with quote

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

Senior Member


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

PostPosted: Fri Jan 09, 2009 10:46 am    Post subject:
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

Site Director


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

PostPosted: Fri Jan 09, 2009 11:12 am    Post subject:
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    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 Subtract the ZD fields to provide neg... Balaryan DFSORT/ICETOOL 4 Wed Oct 11, 2017 10:51 pm
No new posts display the sign only if the value is... useit DFSORT/ICETOOL 3 Wed Oct 04, 2017 5:53 pm
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Partial color change of a field in CI... waseem0424 CICS 5 Fri Sep 29, 2017 7:56 pm
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us