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 How to include a particular field val... sakrat DFSORT/ICETOOL 8 Fri Apr 06, 2018 8:27 pm
No new posts Sort numeric fields with trailing spaces sancraig16 SYNCSORT 7 Tue Apr 03, 2018 1:21 am
No new posts Extract the records with a PD field's... sudhakar84 DFSORT/ICETOOL 11 Mon Apr 02, 2018 7:26 pm
No new posts Searching a table for the field name? socker_dad COBOL Programming 8 Sat Mar 31, 2018 2:57 am
No new posts Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm

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