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

how to solve problem space is coming in place of 0 in total?


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
subramanianup
Warnings : 1

New User


Joined: 18 May 2005
Posts: 46
Location: Bangalore, INDIA

PostPosted: Fri Sep 21, 2007 12:40 pm
Reply with quote

Hi

i have declared total variable as follows
WS-TOT-Dr S 11 N 2 VALUE 0
WS-TOT-CR S 11 N 2 VALUE 0

While calculating total for all CR amts and DR amts,
total is coming as follows when 0 it is coming space

================
12,800.2
================

if it is other than zero means coming value as follows
================
12,888.52
================
i need to display 0 instead of space in the total. as like below

================
12,800.20
================

Pls anybody help to resolve this issue? Thanks in advance
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Fri Sep 21, 2007 12:51 pm
Reply with quote

Subbu,

Use MASK.
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 -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Null values are considered in Total c... DFSORT/ICETOOL 6
No new posts z/vm installation problem All Other Mainframe Topics 0
No new posts Merge 2 lines based on Space from a S... DFSORT/ICETOOL 5
Search our Forums:

Back to Top