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
 

 

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 Convert CLIST to REXX cvnlynn CLIST & REXX 12 Tue Jun 27, 2017 2:06 am
No new posts Sorting of hex values Saurabh_mi DFSORT/ICETOOL 11 Thu May 25, 2017 3:49 pm
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Compare two files and subtract values ameetmund DFSORT/ICETOOL 7 Fri Mar 31, 2017 3:35 pm
No new posts Check Binary Values for symbols gandikk CA Products 3 Tue Mar 21, 2017 5:11 am


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