View previous topic :: View next topic |
Author |
Message |
Venkat2006 Beginner
Joined: 19 Sep 2006 Posts: 4 Topics: 1
|
Posted: Tue Sep 19, 2006 4:16 am Post subject: Conversion of binary value to Readable value |
|
|
Hi,
Flat file is having a 4 bytes value in binary format as shown below in quotes.
"( |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12385 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
Venkat2006 Beginner
Joined: 19 Sep 2006 Posts: 4 Topics: 1
|
Posted: Tue Sep 19, 2006 5:22 am Post subject: |
|
|
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 |
|
 |
Venkat2006 Beginner
Joined: 19 Sep 2006 Posts: 4 Topics: 1
|
Posted: Tue Sep 19, 2006 5:34 am Post subject: |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12385 Topics: 75 Location: San Jose
|
Posted: Tue Sep 19, 2006 5:39 am Post subject: |
|
|
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 |
|
 |
Venkat2006 Beginner
Joined: 19 Sep 2006 Posts: 4 Topics: 1
|
Posted: Tue Sep 19, 2006 6:07 am Post subject: |
|
|
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 |
|
 |
|
|