View previous topic :: View next topic
|
Author |
Message |
sudhee_rb
New User
Joined: 29 Mar 2006 Posts: 34
|
|
|
|
hi,
can anybody clear doubts abot comp values
1)for which purpose we use comp,1,2,3 usage?
2)how it will store in files and V--data sets? Give The examples.
Thanks In Advance. |
|
Back to top |
|
|
Sridevi_C
Active User
Joined: 22 Sep 2005 Posts: 104 Location: Concord, New Hampshire, USA.
|
|
|
|
1. Comp is used to save memory and time.
2. Comp field can be moved to "display usage" field on the file layout.
For more info, please refer manual.
Thanks. |
|
Back to top |
|
|
leenakrupa
New User
Joined: 28 Aug 2006 Posts: 1 Location: india
|
|
|
|
hi,
can u please give me the internal structure of comp-1 & comp-2 variables. |
|
Back to top |
|
|
john vijay
New User
Joined: 09 Mar 2006 Posts: 8 Location: hyderabad
|
|
|
|
hey friend,
comp-1 and comp-2 dont have picture clause and they have predefined.
i thnk internal structure comp-1 and comp-2 are SV9(8)ES99 and SV9(17)ES99 respectively.
S indicates sign, V indicates implicit decimal place and E indicates exponent.
as this question is already answered by our friends i m just recalling it. i dont want to tell u go n search
---- john vijay |
|
Back to top |
|
|
saladjonk
New User
Joined: 08 Sep 2006 Posts: 2 Location: China
|
|
|
|
In the book "COBOL PROGRAMMING including MS-COBOL and COBOL-85"
on page 127,there is a detailed explanationi. |
|
Back to top |
|
|
|