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

Need help to suppress zeros in easytrive


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
omprakash.mf

New User


Joined: 06 Jul 2010
Posts: 12
Location: hyderabad

PostPosted: Tue Nov 22, 2011 1:23 pm
Reply with quote

Hi,

I'm generating a report. In that report one value is dispalying in 1,051 format.

I want it to be displayed in 1051 format. Need to avoid the comma.

For this I moved the actual variable to an alphanumeric variable. Now I can see the value 1051 but with preceeding zero.
I need to suppress zero.

I used the below code to suppress. Its not working.

Could any one please help me in this regard.

WS-CORP-CELL-NO W 4 A MASK('Z9999')
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Nov 22, 2011 1:28 pm
Reply with quote

What does it say in the manual regarding this.

CA manuals are not internet available to all and sundry, so if your site is lisenced you will have access to the manuals. I suggest that you read them.

Even as a non easytrieve programmer your posted code has given me at least one topic to go read up on.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Tue Nov 22, 2011 2:36 pm
Reply with quote

omprakash.mf wrote:
[...]WS-CORP-CELL-NO W 4 A MASK('Z9999')


Why make it alpha? I don't know what the MASK will do, I'm even surprised it compiles.

Code:
WS-CORP-CELL-NO  W      5       N MASK ( 'Z9999' )


If that doesn't give you what you want, you will have to be clearer.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Nov 23, 2011 1:26 am
Reply with quote

Hello,

It may not. . . icon_smile.gif

Unfortunately TS was not willing to post what was wrong - only that "it didn't work" (probably the most worthless post that can be made when looking for help and a waste of everyone's time) icon_sad.gif
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 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