Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Regarding Usage of All COMP

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Regarding Usage of All COMP
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    Post subject: Re: Regarding Usage of All COMP
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    Post subject: comp-1 variables
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts )SEL and )ENDSEL usage cvnlynn TSO/ISPF 4 Thu Jun 15, 2017 1:15 am
No new posts Need inputs on Space requirement and... ashek15 IMS DB/DC 0 Sat Apr 01, 2017 8:26 am
No new posts Protection Exception while move 0 to ... Kevin Vaz CICS 10 Tue Oct 18, 2016 4:19 pm
No new posts How can we create a flat file in JAVA... rakesh.v18 Java & MQSeries 7 Fri Sep 23, 2016 10:46 pm
No new posts Need help to populate date in COMP-3 ... chetanambi DFSORT/ICETOOL 3 Tue Jun 21, 2016 12:25 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us