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

How to convert COMP (binary) values to displayable?


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
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
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
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: 3156
Location: Tucson AZ

PostPosted: Tue Apr 03, 2007 10:26 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts Keep leading zero(s) after convert fl... SYNCSORT 7
No new posts Null values are considered in Total c... DFSORT/ICETOOL 6
Search our Forums:

Back to Top