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

$ masking with Signed bit in front


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

New User


Joined: 16 Oct 2008
Posts: 37
Location: chennai

PostPosted: Wed Feb 13, 2013 12:45 pm
Reply with quote

Hi

I have requirement to have a $ masking with Signed bit in front of the variable.

WS 5 N 2 is my vairable declaration.

i need the output like this

-$100.22

Can you pleas help
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: Wed Feb 13, 2013 12:53 pm
Reply with quote

It would be nice of you to say "with Easytrieve Plus".

Your requirement is very standard, so what have you tried? 30 seconds with the manual should get you there. Look at other programs. Ask you colleagues. Try something. All will get you there faster than the time to post here, then wait.
Back to top
View user's profile Send private message
gayathrinag

New User


Joined: 16 Oct 2008
Posts: 37
Location: chennai

PostPosted: Wed Feb 13, 2013 2:28 pm
Reply with quote

Thanks for replying.

Before i posting here, i tried with -$$$9.99. But when the field is having the value as 1000.44 and its displaying as -1$000.44.

I could see that most of the examples or the programs are coded the signed bit at the last position.

But i will try to explore. It would be great if you could guide me or assit me.
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: Wed Feb 13, 2013 2:56 pm
Reply with quote

When posting, it is best to show what you have already tried.

Now that you've discovered that Easytrieve Plus MASKs are not like Cobol editing PICture strings, you have two choices.

You either get the user "on board" with the way Easytrieve Plus works, and put the minus in a fixed position to the right of the number, or...

You write a sub-program which does the editing for you, into an "A", which you then use on the report.
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 Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
No new posts Masking variable size field - min 10 ... DFSORT/ICETOOL 4
No new posts Numeric check on packed signed and un... COBOL Programming 4
No new posts Signed Count in Trailer SYNCSORT 7
No new posts Cobol redefines for Signed pictured c... COBOL Programming 4
Search our Forums:

Back to Top