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: 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 SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm
No new posts outrec field outside range Danielle.Filteau SYNCSORT 10 Sat Mar 04, 2017 2:37 am
No new posts 2 byte YEAR from Y'DATE2' field tecnokrat DFSORT/ICETOOL 2 Tue Feb 07, 2017 12:05 pm
No new posts Converting decimal to numeric using I... Balaryan DFSORT/ICETOOL 4 Thu Feb 02, 2017 11:27 pm


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