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 with Signed bit in front

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
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    Post subject: $ masking with Signed bit in front
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7251

PostPosted: Wed Feb 13, 2013 12:53 pm    Post subject: Reply to: $ masking with Signed bit in front
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    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7251

PostPosted: Wed Feb 13, 2013 2:56 pm    Post subject: Reply to: $ masking with Signed bit in front
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    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 Masking Db2 data kishpra DB2 3 Fri Sep 02, 2016 9:23 pm
No new posts SIGNED DECIMAL TO COMP-3 using cobol ... ram_vizag COBOL Programming 1 Tue Mar 01, 2016 11:32 pm
No new posts Need help on Best approach for IMS Ke... Kiran.Kumar IMS DB/DC 1 Tue Mar 31, 2015 6:41 am
No new posts How to convert unsigned numeric to si... mftechie123 SYNCSORT 7 Thu Jan 29, 2015 4:54 pm
No new posts Issue in Comparing 2 Signed Comp Vari... elango Paulraj COBOL Programming 4 Thu Jan 08, 2015 1:55 pm


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