MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Conversion of binary value to Readable value

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
Venkat2006
Beginner


Joined: 19 Sep 2006
Posts: 4
Topics: 1

PostPosted: Tue Sep 19, 2006 4:16 am    Post subject: Conversion of binary value to Readable value Reply with quote

Hi,

Flat file is having a 4 bytes value in binary format as shown below in quotes.

"(
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12385
Topics: 75
Location: San Jose

PostPosted: Tue Sep 19, 2006 5:02 am    Post subject: Reply with quote

Venkat2006,

Please post your query in the approriate forum. Please search before posting. Check this link

http://www.mvsforums.com/helpboards/viewtopic.php?t=2965&highlight=binary

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Venkat2006
Beginner


Joined: 19 Sep 2006
Posts: 4
Topics: 1

PostPosted: Tue Sep 19, 2006 5:22 am    Post subject: Reply with quote

Hi Kolusu,

Thanks for your reply.

Some how I could find required syntax when I accessed the link you mentioned in your reply. I need to use this syntax in COBOL program.

Can you please provide me the syntax in this posting?

Thanks.
Venkat2006
Back to top
View user's profile Send private message
Venkat2006
Beginner


Joined: 19 Sep 2006
Posts: 4
Topics: 1

PostPosted: Tue Sep 19, 2006 5:34 am    Post subject: Reply with quote

Sorry..Kolusu. I mistyped in previous response.

Some how I could not find required syntax when I accessed the link you mentioned in your reply. I need to use this syntax in COBOL program.

Can you please provide me the syntax in this posting?

Thanks,
Venkat2006
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12385
Topics: 75
Location: San Jose

PostPosted: Tue Sep 19, 2006 5:39 am    Post subject: Reply with quote

Venkat2006,

can you just post all your details in one post? A simple move statement will give you the results.
Code:

ws-a  pic s9(09) comp.
ws-b  pic 9(10).

move ws-a to ws-b


Is this an interview question?

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Venkat2006
Beginner


Joined: 19 Sep 2006
Posts: 4
Topics: 1

PostPosted: Tue Sep 19, 2006 6:07 am    Post subject: Reply with quote

Thank you Kolusu.

It's not an interview question. I am testing one COBOL module in my work. I am getting expected results with the move statement you have given in your reply.

Regards,
Venkat2006
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group