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
 

 

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: 1239
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 INVALID FIELD OR CONSTANT IN SORTOF ?? Ron Klop DFSORT/ICETOOL 8 Wed Jan 11, 2017 3:44 pm
No new posts Performing arithmetic on input field zh_lad DFSORT/ICETOOL 31 Tue Dec 06, 2016 8:04 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts How to split the records using the am... vnktrrd DFSORT/ICETOOL 24 Fri Oct 28, 2016 7:33 pm
No new posts Comparing Decimal and CHAR columns rakesh17684 DB2 7 Thu Oct 20, 2016 2:33 am


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