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
 

 

Masking problem in Easytrieve

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
abhay pratap singh

New User


Joined: 22 Nov 2007
Posts: 77
Location: noida

PostPosted: Sun Jan 31, 2010 1:54 pm    Post subject: Masking problem in Easytrieve
Reply with quote

Hi All,

I have a numeric data which is defined as
W-AMOUNT W 14 N 2 Mask '$$$$$$$$$$$9.99-'

In this case '-' sign is coming at end of the field in report. When I tried using Mask '-$$$$$$$$$$$9.99' to get '-' sign in the beginning of the field it is giving me error.

Please let me know is there any method to display '-' sign in the begining of data with '$' sign.
Back to top
View user's profile Send private message

PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2431
Location: Netherlands, Amstelveen

PostPosted: Sun Jan 31, 2010 2:04 pm    Post subject:
Reply with quote

Because you use a currency mask, the sign will always be appended.
So there is no way to prefix the sign.
Thats normal i never saw something like this :

-$1000.00
Back to top
View user's profile Send private message
abhay pratap singh

New User


Joined: 22 Nov 2007
Posts: 77
Location: noida

PostPosted: Sun Jan 31, 2010 5:32 pm    Post subject: Re: Masking problem in Easytrieve
Reply with quote

abhay pratap singh wrote:
Hi All,

I have a numeric data which is defined as
W-AMOUNT W 14 N 2 Mask '$$$$$$$$$$$9.99-'



When I am using this field in LINE statement for report like

LINE COL 42 W-AMOUNT

it gets displayed from column 45 instead of 42.

Do I need to do some special processing for starting amount at 42 column.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2431
Location: Netherlands, Amstelveen

PostPosted: Sun Jan 31, 2010 5:35 pm    Post subject:
Reply with quote

Maybe some spaces are prepended as filler?
Prepended means something like "put in front of"
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 Strings with double quotes having pro... raja Arumugam All Other Mainframe Topics 3 Thu Mar 30, 2017 10:34 am
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts Easytrieve report shalem CA Products 4 Sun Feb 26, 2017 9:08 am
No new posts ROUNDED Problem with COMPUTE statement shalem COBOL Programming 11 Thu Feb 09, 2017 8:16 pm
No new posts SYMNAMES problem jacobdng DFSORT/ICETOOL 7 Thu Dec 22, 2016 7:47 am


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