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

Size for 'USAGE IS POINTER'?


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

Active User


Joined: 15 Dec 2005
Posts: 271

PostPosted: Wed Nov 04, 2009 8:11 pm
Reply with quote

Hi all,

What is the size of the variable declared as usage is POINTER?

05 WS-VAR USAGE IS POINTER.

Please suggest.

Thanks,
Murali.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Nov 04, 2009 8:19 pm
Reply with quote

There is a link to manuals at the top of the page. Click on it, find the COBOL Language Reference manual, and navigate to section 5.3.17.8 which talks about USAGE POINTER and explicitly tells you how big it is. You would do yourself a lot of good by spending enough time in this manual to learn how to use it for yourself -- and you could answer questions such as this much faster.
Back to top
View user's profile Send private message
pkmurali
Warnings : 1

Active User


Joined: 15 Dec 2005
Posts: 271

PostPosted: Wed Nov 04, 2009 8:30 pm
Reply with quote

Thanks Robert.

It' 4 byte. I viewed it in xped, it seems to be character data type.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Nov 04, 2009 8:35 pm
Reply with quote

it is a binary word; datatype is BINARY or COMP.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Nov 04, 2009 8:41 pm
Reply with quote

Character data type is not right -- check the manual.
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 Using Java/C/C++ to retrieve dataset ... Java & MQSeries 6
No new posts Find the size of a PS file before rea... COBOL Programming 13
No new posts Moving Or setting POINTER to another ... COBOL Programming 2
No new posts STEM usage in REXX CLIST & REXX 14
No new posts Masking variable size field - min 10 ... DFSORT/ICETOOL 4
Search our Forums:

Back to Top