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
 
How to convert COMP (binary) values to displayable?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
saidharrao
Warnings : 1

New User


Joined: 19 Feb 2005
Posts: 27
Location: hyderabad-ap-india

PostPosted: Tue Apr 03, 2007 9:41 pm    Post subject: How to convert COMP (binary) values to displayable?
Reply with quote

Hi all,
Can you please help me in converting Comp values to displayable(decimal).

Eg. 01 WS-TEMP-VALUE 9(4) comp and I need to convert this to
01 WS-TEMP-VALUE 9(8).
Can you please tell me is there any way that can be handled in the program.

Thanks and regards,
Back to top
View user's profile Send private message

cooldebi

New User


Joined: 19 Apr 2006
Posts: 18
Location: mumbai

PostPosted: Tue Apr 03, 2007 10:00 pm    Post subject: Re: How to convert COMP (binary) values to displayable?
Reply with quote

What is the purpose of conversion???

If you want to display it , u can just move the binary variable to the display variable.

Regards
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Tue Apr 03, 2007 10:26 pm    Post subject: Re: How to convert COMP (binary) values to displayable?
Reply with quote

saidharrao wrote:
Can you please help me in converting Comp values to displayable(decimal).
Eg. 01 WS-TEMP-VALUE 9(4) comp and I need to convert this to
01 WS-TEMP-VALUE 9(8).
Can you please tell me is there any way that can be handled in the program.
To do this conversion in a COBOL program, use the MOVE verb.
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 -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm
No new posts Can EDCICONV convert EBCDIC to ASCII... natt.sut IBM Tools 3 Fri Nov 17, 2017 8:46 pm
No new posts CONDITIONAL USING COMP-2 WITH PROBLEMS. JOSUEGENTIL COBOL Programming 7 Wed Nov 08, 2017 11:13 pm
No new posts how can i move s9(9) to s9(9) usage comp HARENDRA CHOUDHARY COBOL Programming 3 Mon Nov 06, 2017 12:10 am
No new posts Extend the decimal values in DIVISION Balaryan DFSORT/ICETOOL 3 Thu Oct 05, 2017 4:05 pm

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