View previous topic :: View next topic
|
Author |
Message |
pallavi_vibhute
New User
Joined: 04 Dec 2006 Posts: 4 Location: hyderabad
|
|
|
|
Hi all..
Is there any POINTER clause exists & if yes wht is the use of tht ..
I wil be thankfull if u ppl help me out..
thanks
pallavi. |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Hii
Pointers are data items that contain virtual storage addresses. You define them either explicitly with the USAGE IS POINTER clause in the DATA DIVISION or implicitly as ADDRESS OF special registers.
You can perform the following operations with pointer data items:
Pass them between programs by using the CALL . . . BY REFERENCE statement.
Move them to other pointers by using the SET statement.
Compare them to other pointers for equality by using a relation condition.
Initialize them to contain an invalid address by using VALUE IS NULL.
Thanks
Arun |
|
Back to top |
|
|
cobolunni
Active User
Joined: 07 Aug 2006 Posts: 127 Location: kerala,india
|
|
|
|
Also i think pointer will take a storage space of 4 bytes .
is i am right |
|
Back to top |
|
|
pallavi_vibhute
New User
Joined: 04 Dec 2006 Posts: 4 Location: hyderabad
|
|
|
|
Thnaks Arun for ur reply
regards,
pallavi. |
|
Back to top |
|
|
neelesht
New User
Joined: 24 Jul 2006 Posts: 99 Location: Los Angeles
|
|
|
|
Hi Pallavi/Arun
Is this Pointer function available in COBOL, since I know this is one of the main features of PL1, but never knew that its available in COBOL as well .
Thanks,
Neelesh |
|
Back to top |
|
|
pallavi_vibhute
New User
Joined: 04 Dec 2006 Posts: 4 Location: hyderabad
|
|
|
|
hiii
im very new to mainframe & dont know PL/1 ... so better ask to Arun abt this pointer clause...
thanks
pallavi |
|
Back to top |
|
|
neelesht
New User
Joined: 24 Jul 2006 Posts: 99 Location: Los Angeles
|
|
|
|
Hi Pallavi,
Thanks alot.
Arun,
Could you please let me know something more about this Pointer in COBOL.
Thanks,
Neelesh |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
Back to top |
|
|
neelesht
New User
Joined: 24 Jul 2006 Posts: 99 Location: Los Angeles
|
|
|
|
Thanks Priyesh.
Neelesh |
|
Back to top |
|
|
|