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 resume binary ftp in z/os meykh2014 All Other Mainframe Topics 5 Sun Jan 22, 2017 10:01 am
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts Convert +9999999999999.99 to S9(12)V9(3) vnktrrd DFSORT/ICETOOL 8 Thu Nov 17, 2016 8:15 pm
This topic is locked: you cannot edit posts or make replies. Db2 SQL query to convert rows into co... subratarec DB2 5 Thu Nov 17, 2016 4:51 pm


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