View previous topic :: View next topic
|
Author |
Message |
ismail.hasan
New User
Joined: 28 Mar 2007 Posts: 21 Location: India
|
|
|
|
hi all,
i want to calculate the length of the COMP with assumed decimal i.e for S9(04)v99.
Could any one explain how to calculate the length of the COMP1,COMP2,COMP3 variables which has assumed decimal
Thanks in Advance |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
The assumed decimal point takes no space in the comp or comp-3 field, S9(04)v99 is the same length as S9(04)99 or s9(06).
I do not believe comp2 allows decimals, implied or not. |
|
Back to top |
|
|
cooldebi
New User
Joined: 19 Apr 2006 Posts: 18 Location: mumbai
|
|
|
|
Hi,
For COMP -- It will be same as s9(6) comp --that is 4 bytes
We never declare PIC clause for COMP1 and COMP2.
COMP1 takes 4 bytes of storage and COMP2 takes 8 bytes whatever be the size of data.
Please correct me if I am wrong anywhere.
Thanks
__________________ |
|
Back to top |
|
|
|