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

Need to suppress zeros.


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
balukanna

New User


Joined: 09 Apr 2008
Posts: 41
Location: USA

PostPosted: Thu May 29, 2008 5:49 pm
Reply with quote

If there are values
0000004822
and i want it in output as 4822 then how can i suppress these zeroes..
Back to top
View user's profile Send private message
ashimer

Active Member


Joined: 13 Feb 2004
Posts: 551
Location: Bangalore

PostPosted: Thu May 29, 2008 5:53 pm
Reply with quote

declare your variable as zzzzzzz9999 or -------99999 as per the size required. Z is used for zero suppression....
Back to top
View user's profile Send private message
ashimer

Active Member


Joined: 13 Feb 2004
Posts: 551
Location: Bangalore

PostPosted: Thu May 29, 2008 5:56 pm
Reply with quote

for more details pls refer

[url]

publib.boulder.ibm.com/infocenter/iadthelp/v7r0/index.jsp?topic=/com.ibm.etools.iseries.langref.doc/c0925395267.htm

[/url]
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts How to display the leading zeros of a... DB2 7
This topic is locked: you cannot edit posts or make replies. Suppressing only leading zeros (not s... DFSORT/ICETOOL 9
No new posts Suppress messages from being written ... All Other Mainframe Topics 6
No new posts Convert Numeric to Packed decimal and... DFSORT/ICETOOL 5
This topic is locked: you cannot edit posts or make replies. Issue in suppressing leading zeros &a... COBOL Programming 21
Search our Forums:

Back to Top