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
 
what is the use of comp, comp-1,comp-2

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
greek

New User


Joined: 28 Apr 2005
Posts: 3

PostPosted: Tue May 03, 2005 7:30 pm    Post subject: what is the use of comp, comp-1,comp-2
Reply with quote

hi all,
what is the use of comp, comp-1,comp-2.





thanks in advance
Back to top
View user's profile Send private message

kanak

Moderator


Joined: 12 Mar 2005
Posts: 252
Location: India

PostPosted: Tue May 03, 2005 7:44 pm    Post subject:
Reply with quote

hi please check the following link

http://www.ibmmainframes.com/viewtopic.php?t=2282&highlight=
hope this help you.If not please let us know, i think some of experts can reply more better way
Back to top
View user's profile Send private message
priya

Moderator


Joined: 24 Jul 2003
Posts: 568
Location: Bangalore

PostPosted: Wed May 04, 2005 7:51 am    Post subject:
Reply with quote

Try this also:

http://www.ibmmainframes.com/viewtopic.php?t=274

http://www.ibmmainframes.com/viewtopic.php?t=241
Back to top
View user's profile Send private message
dearhari2155

New User


Joined: 23 May 2005
Posts: 2

PostPosted: Mon May 23, 2005 5:38 pm    Post subject:
Reply with quote

For better Storage apce utilization
Back to top
View user's profile Send private message
subhasis_50

Moderator


Joined: 09 Mar 2005
Posts: 363
Location: Earth

PostPosted: Mon May 23, 2005 5:50 pm    Post subject: Re: what is the use of comp, comp-1,comp-2
Reply with quote

Hi,
If you want to know details about COMP variable see the following link
http://www.discinterchange.com/TechTalk_COBOL_comp_.html
Back to top
View user's profile Send private message
eashwar

New User


Joined: 21 May 2005
Posts: 26
Location: Bangalore

PostPosted: Tue May 24, 2005 2:37 am    Post subject: Re: what is the use of comp, comp-1,comp-2
Reply with quote

there are usage classes like this

display
comp-1
comp-2
comp-3 or packed-decimal
comp-4 or binary or comp
comp-5

comp is internal binary representation
comp-1 is one word floating poin representation with no pic clause
comp-2 is two word floating point repr with no pic clause
comp is used for loop variables, indexes and variables used in arithmetic calculations
for others refer links
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 COMP Variables Mismatch gayu7 COBOL Programming 5 Wed Dec 20, 2017 5:06 pm
No new posts Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm
No new posts CONDITIONAL USING COMP-2 WITH PROBLEMS. JOSUEGENTIL COBOL Programming 7 Wed Nov 08, 2017 11:13 pm
No new posts how can i move s9(9) to s9(9) usage comp HARENDRA CHOUDHARY COBOL Programming 3 Mon Nov 06, 2017 12:10 am
No new posts Protection Exception while move 0 to ... Kevin Vaz CICS 10 Tue Oct 18, 2016 4:19 pm

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