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

Cobol Copybook - Pointers


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

New User


Joined: 09 Jun 2006
Posts: 2

PostPosted: Fri Jun 09, 2006 6:25 pm
Reply with quote

Hi,

does anybody know what's the size/lengh of a pointer into a cobol copybook?
I know that I have to declare it using the clause "USAGE AS POINTER", but I need to know in what position (in bytes) the following field begins. For example:

01 BOOK0001.

05 FIELD_1 PIC 9(05).
* 001
05 FIELD_2 PIC X(02).
* 006
05 PT_1 USAGE AS POINTER
* 008 - ???

THANK YOU VERY MUCH!
Back to top
View user's profile Send private message
ap_mainframes

Active User


Joined: 29 Dec 2005
Posts: 181
Location: Canada

PostPosted: Fri Jun 09, 2006 6:32 pm
Reply with quote

It is a 4 byte field used for base addressing.
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 Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top