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
 

 

Need help to suppress zeros in easytrive

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
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    Post subject: Need help to suppress zeros in easytrive
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: 8593
Location: Back in jolly old England

PostPosted: Tue Nov 22, 2011 1:28 pm    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Tue Nov 22, 2011 2:36 pm    Post subject: Re: Need help to suppress zeros in easytrive
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

Site Director


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

PostPosted: Wed Nov 23, 2011 1:26 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to suppress retun code of partil ... mkk157 DB2 9 Fri May 27, 2016 6:59 am
No new posts Join key - Populate Zeros when Unpair... rexx77 DFSORT/ICETOOL 6 Thu May 12, 2016 12:22 am
No new posts Zero suppress and shift left Bryant Shearin DFSORT/ICETOOL 10 Sat Oct 31, 2015 9:28 pm
No new posts Removing Leading Spaces and Removing ... rahulpala COBOL Programming 4 Fri Sep 04, 2015 4:58 am
No new posts Can you suppress NULLIF char for DSNT... HammerTime DB2 1 Tue Dec 09, 2014 10:00 pm


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