Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Display variable in report with Decimal sign

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
RM0C13920

New User


Joined: 16 Dec 2009
Posts: 6
Location: bbbd

PostPosted: Mon Apr 05, 2010 7:44 pm    Post subject: Display variable in report with Decimal sign
Reply with quote

one varaible is defined as S9(9)V99 and I want to display it in report with decimal sign.

How to do that??
Back to top
View user's profile Send private message

Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Mon Apr 05, 2010 7:54 pm    Post subject: Re: Display variable in report with Decimal sign
Reply with quote

RM0C13920 wrote:
one varaible is defined as S9(9)V99 and I want to display it in report with decimal sign.

How to do that??


1. Display is a very poor way of creating reports.

2. Define an edit numeric field (pic ----,---,--9.99.), move the variable to to edited numeric field and "DISPLAY" the editted field.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Mon Apr 05, 2010 9:26 pm    Post subject:
Reply with quote

RM0C13920,
look up edit mask in the cobol manual, links at the top of the page.

this is not supposed to be a roooooooooooooooooookie,
i don't want to read the manual forum
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Subtract the ZD fields to provide neg... Balaryan DFSORT/ICETOOL 4 Wed Oct 11, 2017 10:51 pm
No new posts Extend the decimal values in DIVISION Balaryan DFSORT/ICETOOL 3 Thu Oct 05, 2017 4:05 pm
No new posts display the sign only if the value is... useit DFSORT/ICETOOL 3 Wed Oct 04, 2017 5:53 pm
No new posts Binary to display characters Roy Ware SYNCSORT 3 Tue Sep 19, 2017 8:46 pm
No new posts Hardcoded negative sign value in output scdinesh SYNCSORT 8 Fri Sep 08, 2017 5:28 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us