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

Difference between COMP and USAGE COMP


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

New User


Joined: 28 Feb 2006
Posts: 91
Location: Chennai

PostPosted: Wed Mar 01, 2006 5:31 pm
Reply with quote

Hi,


What is the difference between the following two lines of code :

05 WS-EXAMPLE1 PIC S9(9) USAGE COMP and
05 WS-EXAMPLE2 PIC S9(9) USAGE COMP


Thanks,
KS
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 463

PostPosted: Wed Mar 01, 2006 5:59 pm
Reply with quote

HI,

Both teh line are same except the variable name icon_lol.gif

Regards
Rupesh
Back to top
View user's profile Send private message
DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Wed Mar 01, 2006 7:56 pm
Reply with quote

Quote:

What is the difference between the following two lines of code :

05 WS-EXAMPLE1 PIC S9(9) USAGE COMP and
05 WS-EXAMPLE2 PIC S9(9) USAGE COMP


Did you mean to say

Quote:

What is the difference between the following two lines of code :

05 WS-EXAMPLE1 PIC S9(9) USAGE COMP and
05 WS-EXAMPLE2 PIC S9(9) COMP

in which case the difference between the two lines are:
Quote:

Both teh line are same except the variable name icon_lol.gif



The 'USAGE' is optional and has no effect

Dave
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 Timestamp difference and its average ... DB2 11
No new posts Difference when accessing dataset in ... JCL & VSAM 7
No new posts STEM usage in REXX CLIST & REXX 14
No new posts Converting ASCII values to COMP-3 (ZD... JCL & VSAM 2
Search our Forums:

Back to Top