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
 

 

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 )SEL and )ENDSEL usage cvnlynn TSO/ISPF 4 Thu Jun 15, 2017 1:15 am
No new posts Need inputs on Space requirement and... ashek15 IMS DB/DC 0 Sat Apr 01, 2017 8:26 am
No new posts Difference between TWALENG and TWASIZE Arunkumar Chandrasekaran CICS 3 Tue Jan 03, 2017 12:57 pm
No new posts Protection Exception while move 0 to ... Kevin Vaz CICS 10 Tue Oct 18, 2016 4:19 pm
No new posts Sticky: difference between ... DUMMY ... and ... enrico-sorichetti JCL & VSAM 0 Mon Oct 17, 2016 4:31 pm


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