IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Regarding Usage of All COMP


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sudhee_rb

New User


Joined: 29 Mar 2006
Posts: 34

PostPosted: Sat Aug 05, 2006 8:37 pm
Reply with quote

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
View user's profile Send private message
Sridevi_C

Active User


Joined: 22 Sep 2005
Posts: 104
Location: Concord, New Hampshire, USA.

PostPosted: Thu Aug 17, 2006 2:07 am
Reply with quote

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
View user's profile Send private message
leenakrupa

New User


Joined: 28 Aug 2006
Posts: 1
Location: india

PostPosted: Mon Aug 28, 2006 7:41 pm
Reply with quote

hi,
can u please give me the internal structure of comp-1 & comp-2 variables.
Back to top
View user's profile Send private message
john vijay

New User


Joined: 09 Mar 2006
Posts: 8
Location: hyderabad

PostPosted: Wed Aug 30, 2006 5:29 pm
Reply with quote

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
View user's profile Send private message
saladjonk

New User


Joined: 08 Sep 2006
Posts: 2
Location: China

PostPosted: Wed Sep 13, 2006 8:08 pm
Reply with quote

In the book "COBOL PROGRAMMING including MS-COBOL and COBOL-85"
on page 127,there is a detailed explanationi.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts COBOL - Move S9(11)v9(7) COMP-3 to -(... COBOL Programming 5
No new posts STEM usage in REXX CLIST & REXX 14
No new posts Converting ASCII values to COMP-3 (ZD... JCL & VSAM 2
No new posts z/OS Modules Usage report using SMF 42 DFSORT/ICETOOL 2
No new posts Interviewers are surprised with my an... Mainframe Interview Questions 6
Search our Forums:

Back to Top