Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Need to suppress zeros.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL
Author Message
balukanna

New User


Joined: 09 Apr 2008
Posts: 30
Location: chennai

PostPosted: Thu May 29, 2008 5:49 pm    Post subject: Need to suppress zeros.
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
References
ashimer

Senior Member


Joined: 13 Feb 2004
Posts: 360
Location: Bangalore

PostPosted: Thu May 29, 2008 5:53 pm    Post subject:
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

Senior Member


Joined: 13 Feb 2004
Posts: 360
Location: Bangalore

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

for more details pls refer

[url]

http://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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL All times are GMT + 6 Hours
Page 1 of 1