Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 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
No new posts comparing comp-3 and unpacked numbers juares castro COBOL Programming 3 Mon May 30, 2016 6:46 pm
No new posts SIGNED DECIMAL TO COMP-3 using cobol ... ram_vizag COBOL Programming 1 Tue Mar 01, 2016 11:32 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us