View previous topic :: View next topic
|
Author |
Message |
mf_karthik
New User
Joined: 26 Jul 2005 Posts: 55
|
|
|
|
In a file when i am moving value of 12345 to comp-3. When i am opening a file how it will be displayed?. |
|
Back to top |
|
|
iknow
Active User
Joined: 22 Aug 2005 Posts: 411 Location: Colarado, US
|
|
|
|
Hi mf_karthik,
It depends on the size of your comp-3 variable.
let us assume that your Comp-3 variable is 9(5). So when you move 12345 to comp-3 it will be displayed as "2345+" because always LSB will be replaced by "+" in case of comp-3.
Correct me if I am wrong. |
|
Back to top |
|
|
mf_karthik
New User
Joined: 26 Jul 2005 Posts: 55
|
|
|
|
thanks for your answer.how it appear in mainframe ie(vs-cobol) |
|
Back to top |
|
|
iknow
Active User
Joined: 22 Aug 2005 Posts: 411 Location: Colarado, US
|
|
|
|
Hi mf_karthik,
As a follow up to my previous post, check the correct answer.
When you move '12345' to comp-3 variable , the result will be "12345+".
Sorry for the inconvenience. |
|
Back to top |
|
|
|