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

what is the use of comp, comp-1,comp-2


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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
Reply with quote

hi please check the following link

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
Reply with quote

Try this also:

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

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
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
Reply with quote

Hi,
If you want to know details about COMP variable see the following link
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
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 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 Converting ASCII values to COMP-3 (ZD... JCL & VSAM 2
No new posts Interviewers are surprised with my an... Mainframe Interview Questions 6
No new posts Cobol COMP-2 fields getting scrambled... Java & MQSeries 6
No new posts convert alphanumeric PIC X(02) to hex... COBOL Programming 3
Search our Forums:

Back to Top