View previous topic :: View next topic
|
Author |
Message |
Raghu navaikulam
Active User
Joined: 27 Sep 2008 Posts: 193 Location: chennai
|
|
|
|
Hi all,
I have a variable defined in the following form.
77 VAR1 PIC ABAB(8).
And moving a value of 'PITFALL' to VAR1.
At display it shows only "P I".
But the storage allocated is 11 bytes.
How the length is calculated by compiler?
Your comments are expected.
Regards
Raghu |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Your picture-string contains two characters, separated by a blank, and followed by eight blanks. That adds up to 11 bytes. |
|
Back to top |
|
|
Raghu navaikulam
Active User
Joined: 27 Sep 2008 Posts: 193 Location: chennai
|
|
|
|
Thanks for your quick replay. |
|
Back to top |
|
|
|