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
 
Difference between COMP and USAGE COMP

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Difference between COMP and USAGE COMP
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: 464

PostPosted: Wed Mar 01, 2006 5:59 pm    Post subject: Re: COMP and USAGE COMP
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    Post subject: Re: COMP and USAGE COMP
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    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 Usage/Utiliy of Plan in DB2 arijitS DB2 4 Thu Jun 21, 2018 8:16 pm
No new posts Program usage statistics? John Poulakos CICS 6 Wed May 16, 2018 2:22 am
This topic is locked: you cannot edit posts or make replies. Difference between EQUAL and EQUAL TO... jithinraghavan COBOL Programming 3 Thu Apr 19, 2018 2:22 am
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

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